reasoning
Skill50 starsChanged 16 days agoMITView on GitHub
Record decisions and justifications during SDD agent execution, and pass structured context between agents via handoff envelope. Use when an agent needs to document decisions made (Reasoning Log) or perform a handoff to another agent. Do not use for architecture documentation (use ADRs), complexity analysis (use complexity-analysis), or debug logs.
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 55
Use direct language, not academic jargon.
- Distinctive: line 70
If there were no significant decisions, omit the section (do not force reasoning where none exists).
- Distinctive: line 71
Keep it concise: 3-8 decisions per execution is expected.
- Distinctive: line 75
When performing a handoff to another agent, include a structured context block along with the handoff prompt.
- Distinctive: line 96
If there are no inherited assumptions or pending decisions, omit those subsections.
- Distinctive: line 113
Do not use a separate section.
- Distinctive: line 119
When the intent is not obvious (multiple agents could handle it), briefly document the rationale:
- Distinctive: line 126
When the intent is clear, do not add overhead — delegate directly.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reasoning Explainability
Guidelines for making SDD agent reasoning auditable and traceable.
Two complementary mechanisms:
- Reasoning Log: Structured record of decisions made by an agent during its execution.
- Handoff Envelope: Structured context passed from one agent to another during handoff.
Reasoning Log
Upon completing execution and before creating artifacts, present the user with a summary of decisions made.
Reasoning Log Format
## Reasoning
### Decisions
| # | Decision | Applied principle | Alternatives considered | Justification | Confidence |
|---|----------|-------------------|------------------------|---------------|------------|
| 1 | [what was decided] | [principle or heuristic that guided the choice] | [discarded options] | [why this choice] | [High/Medium/Low] |
### Assumptions
- [assumption made and basis for it]
### Missing information
- [data that was missing and how it impacts the decisions above]"Applied principle" column
Connects each decision to the reusable foundation that guided it. The goal is to make engineering judgment visible — not just what was decided, but what reasoning pattern was used.
Examples of principles:
| Type | Example |
| Design | "Separation of concerns", "Fail-fast", "Idempotency" |
| Trade-off | "Latency vs consistency", "Simplicity vs extensibility" |
| Operational | "Observability in production", "Graceful degradation" |
| Security | "Principle of least privilege", "Defense in depth" |
| Pragmatic | "YAGNI", "Rule of 3 uses before abstracting" |
Rules:
- Fill in only when the principle is not obvious from the justification. If the justification already contains the rationale, use "—".
- Use direct language, not academic jargon. "Fail-fast to detect errors early" is better than "Application of the rapid failure principle per the defensive paradigm".
- Project principles (defined in
coding-guidelines.mdor ADRs) take priority over generic industry principles.
Confidence Levels
| Level | Criterion | Expectation |
| High | Based on explicit requirement, concrete data, or validated decision (accepted ADR, approved spec) | Does not require additional validation |
| Medium | Inferred from existing context (envisioning, project patterns) without explicit validation | Validate with stakeholder before depending on this decision |
| Low | Reasonable assumption without direct evidence; industry standard applied due to lack of information | Requires validation before proceeding; mark what is needed to raise confidence |
Reasoning Log Rules
- Trivial decisions (formatting, already established conventions) do not need to be recorded.
- For Medium or Low confidence, include what is needed to raise the level.
- If there were no significant decisions, omit the section (do not force reasoning where none exists).
- Keep it concise: 3-8 decisions per execution is expected. If there are more, group related decisions.
Handoff Envelope
When performing a handoff to another agent, include a structured context block along with the handoff prompt.
Handoff Envelope Format
### Handoff Context
**Relevant artifacts**: [list of files the next agent should read]
**Inherited assumptions**:
- [assumption the upstream agent made that influences the downstream]
**Pending decisions** (for the next agent to resolve):
- [decision that was left open and why]
**Discarded information**:
- [context or alternative that was considered and discarded, with reason]Handoff Envelope Rules
- Include only information that impacts the next agent's work. Do not repeat what is already in the artifacts.
- If there are no inherited assumptions or pending decisions, omit those subsections.
- The envelope complements (does not replace) the user's original input.
Application by Agent Type
Agents that produce persistent artifacts
devsquad.envision, devsquad.kickoff, devsquad.specify, devsquad.plan, devsquad.decompose, devsquad.implement, devsquad.security
- Present Reasoning Log before creating/saving artifacts.
- The user can question decisions before they become artifacts.
Analysis agents (read-only)
devsquad.sprint, devsquad.refine
- Integrate reasoning inline in the analysis (e.g., "Classified as 'Not ready' because [evidence]").
- Do not use a separate section; the reasoning is the output itself.
Conductor
devsquad
When the intent is not obvious (multiple agents could handle it), briefly document the rationale:
Interpreted "[input]" as [intent] because [reason]. Delegating to [agent].- When the intent is clear, do not add overhead — delegate directly.
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- hajekim/agentic-design-patterns-skills★ 4same name
- ibahgat/oh-my-iflow★ 2same name
- Firekid-is-him/Reasoning-Skill-Claude★ 1same name
- hajekim/agentic-design-patterns-extension★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .github/plugins/devsquad/hooks/templates/.github/copilot-instructions.mdCopilot instructions
- adr-workflowSkill
- board-configSkill
- complexity-analysisSkill
- debugging-recoverySkill
- deep-clarificationSkill
- diagram-designSkill
- documentation-styleSkill
- domain-glossarySkill
- engineering-practicesSkill
- git-branchSkill
- git-commitSkill
- harness-learningsSkill
- init-configSkill
- init-docsSkill
- init-scaffoldSkill
- lsp-setupSkill
- next-taskSkill
- pull-requestSkill
- quality-gateSkill
- security-reviewSkill
- test-disciplineSkill
- triage-workflowSkill
- work-item-creationSkill
- work-item-workflowSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

