From codebase perspective
Contract
| Field |
Bound contract |
| Trigger |
User wants an answer only from the codebase seat (what existing code tolerates or punishes). |
| Authority |
Read-only. No file, VCS, credential, paid, published, deployed, or remote mutation. |
| Side effect |
Returns a codebase-perspective analysis in chat. |
| Done |
Returns a codebase-perspective answer without blending. |
Not for
- Rebuilding a design from primitives: use from-first-principle.
- Blended multi-seat analysis: run each from-*-perspective seat independently and compare after.
- Source or remote mutation: this skill is read-only.
Inputs
The question or proposal to analyze from the codebase seat. The codebase under analysis must be readable in the working tree; if it is not reachable, stop and report that the seat has no evidence.
Procedure
- Confirm the seat is codebase only. State that money, customers, timing, impact, career, breaking, rent-seeking, innovation, stability, moat, human, and skeptic perspectives are out of scope. Done when: the out-of-scope seats are named.
- Read the existing code, structure, conventions, and constraints that bear on the question. Done when: the relevant code is read and the evidence base is stated.
- Determine what the existing code tolerates: patterns, shapes, and directions it already accepts without friction. Done when: tolerates patterns are listed with code evidence.
- Determine what the existing code punishes: patterns, shapes, and directions that fight the current structure, require rework, or break invariants. Done when: punishes patterns are listed with code evidence.
- Emit the answer strictly from the codebase seat. Do not blend any other perspective; if another seat is relevant, name it as a separate lens to run independently. Done when: a codebase-perspective answer is emitted without blended content.
Failure and recovery
- Unreachable codebase: stop. Report that the codebase seat has no evidence and emit no analysis.
- Question outside the codebase seat: stop. Name the seat the question belongs to and emit no codebase answer.
- Pressure to blend lenses mid-answer: refuse. The non-blending rule is load-bearing; comparison happens only after independent outputs.
- Partial evidence: emit only the portion grounded in read code and label the rest as unverified. Never present inference as observed code behavior.
Output
One codebase-perspective analysis in chat: what the existing code tolerates, what it punishes, and the code evidence for each, no decision selected or recorded; comparison with other lenses happens after their independent outputs.
1---2name: from-codebase-perspective3description: Use when asked to answer only from the codebase seat: what existing code tolerates or punishes. Not for rebuilding from primitives: use from-first-principle.4---56# From codebase perspective78## Contract910| Field | Bound contract |11|---|---|12| Trigger | User wants an answer only from the codebase seat (what existing code tolerates or punishes). |13| Authority | Read-only. No file, VCS, credential, paid, published, deployed, or remote mutation. |14| Side effect | Returns a codebase-perspective analysis in chat. |15| Done | Returns a codebase-perspective answer without blending. |1617## Not for1819- Rebuilding a design from primitives: use from-first-principle.20- Blended multi-seat analysis: run each from-*-perspective seat independently and compare after.21- Source or remote mutation: this skill is read-only.2223## Inputs2425The question or proposal to analyze from the codebase seat. The codebase under analysis must be readable in the working tree; if it is not reachable, stop and report that the seat has no evidence.2627## Procedure28291. Confirm the seat is codebase only. State that money, customers, timing, impact, career, breaking, rent-seeking, innovation, stability, moat, human, and skeptic perspectives are out of scope. Done when: the out-of-scope seats are named.302. Read the existing code, structure, conventions, and constraints that bear on the question. Done when: the relevant code is read and the evidence base is stated.313. Determine what the existing code tolerates: patterns, shapes, and directions it already accepts without friction. Done when: tolerates patterns are listed with code evidence.324. Determine what the existing code punishes: patterns, shapes, and directions that fight the current structure, require rework, or break invariants. Done when: punishes patterns are listed with code evidence.335. Emit the answer strictly from the codebase seat. Do not blend any other perspective; if another seat is relevant, name it as a separate lens to run independently. Done when: a codebase-perspective answer is emitted without blended content.3435## Failure and recovery3637- Unreachable codebase: stop. Report that the codebase seat has no evidence and emit no analysis.38- Question outside the codebase seat: stop. Name the seat the question belongs to and emit no codebase answer.39- Pressure to blend lenses mid-answer: refuse. The non-blending rule is load-bearing; comparison happens only after independent outputs.40- Partial evidence: emit only the portion grounded in read code and label the rest as unverified. Never present inference as observed code behavior.4142## Output4344One codebase-perspective analysis in chat: what the existing code tolerates, what it punishes, and the code evidence for each, no decision selected or recorded; comparison with other lenses happens after their independent outputs.