agentleFS
MicrosoftKnown publishermicrosoft/devsquad-copilot/.github/plugins/devsquad/skills/reasoning/SKILL.md

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
  1. Distinctive:

    Use direct language, not academic jargon.

    line 55
  2. Distinctive:

    If there were no significant decisions, omit the section (do not force reasoning where none exists).

    line 70
  3. Distinctive:

    Keep it concise: 3-8 decisions per execution is expected.

    line 71
  4. Distinctive:

    When performing a handoff to another agent, include a structured context block along with the handoff prompt.

    line 75
  5. Distinctive:

    If there are no inherited assumptions or pending decisions, omit those subsections.

    line 96
  6. Distinctive:

    Do not use a separate section.

    line 113
  7. Distinctive:

    When the intent is not obvious (multiple agents could handle it), briefly document the rationale:

    line 119
  8. Distinctive:

    When the intent is clear, do not add overhead — delegate directly.

    line 126

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Reasoning Explainability

Guidelines for making SDD agent reasoning auditable and traceable.

Two complementary mechanisms:

  1. Reasoning Log: Structured record of decisions made by an agent during its execution.
  2. 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:

TypeExample
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.md or ADRs) take priority over generic industry principles.

Confidence Levels

LevelCriterionExpectation
HighBased on explicit requirement, concrete data, or validated decision (accepted ADR, approved spec)Does not require additional validation
MediumInferred from existing context (envisioning, project patterns) without explicit validationValidate with stakeholder before depending on this decision
LowReasonable assumption without direct evidence; industry standard applied due to lack of informationRequires 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.