agentleFS
asterkinasterkin/claude-taew-py/.claude/skills/adr/SKILL.md

adr

Skill0 starsChanged 13 months agoMITView on GitHub

Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.

35 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use coverage, observability and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PydanticSkill

    coverage

    Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 5 projects that use this

  • SentrySkill

    agents-md

    This skill should be used when the user asks to "create AGENTS.md", "update AGENTS.md", "maintain agent docs", "set up CLAUDE.md", or needs to keep agent instructions concise. Guides discovery of local skills and enforces minimal documentation style.

    Also in 3 projects that use this

  • MongoDBSkill

    jira

    Use this skill for any Jira operation in the DOCSP project — creating, viewing, searching, updating, transitioning, commenting on, or linking tickets. Also handles follow-up ticket creation to manage scope creep. TRIGGER when: user mentions a DOCSP-XXXXX ticket number or any Jira ticket URL; user asks to view, open, check, update, transition, close, comment on, link, or search tickets; user references \"the ticket\", \"the Jira\", or \"open a ticket\". SKIP: GitHub issues; non-Jira platforms; questions unrelated to ticket operations.

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 6 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 5 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check existing ADRs in docs/adrs/ directory

    line 23
  2. Very specific:

    Use the template at .claude/skills/adr/templates/adr-template.md

    line 29
  3. Distinctive:

    Run the TOC update script:

    line 36
  4. Very specific:

    Add entry to docs/adrs/README.md table

    line 42
  5. Distinctive:

    Update CLAUDE.md if the decision affects AI context

    line 50
  6. Distinctive:

    Update README.md if the decision affects users/contributors

    line 51
  7. Distinctive:

    Acknowledge Trade-offs: Every decision has costs and benefits

    line 61
  8. Distinctive:

    Write Before/During Implementation: Don't wait until after

    line 62
  9. Distinctive:

    Not updating status when decisions change

    line 70
  10. Distinctive:

    When a decision changes:

    line 75
  11. Distinctive:

    Create a new ADR documenting the new decision

    line 76
  12. Distinctive:

    Update the old ADR's status to "Superseded by ADR-XXXX"

    line 77
  13. Distinctive:

    Don't delete or heavily modify old ADRs (history matters)

    line 79

“Common” is measured: kept by at least 6 in 10 of the 31 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

ADR Creation Skill

Guides the creation of Architecture Decision Records (ADRs) following project standards. Provides template, process guidance, and best practices for documenting architecturally significant decisions.

When to Use This Skill

Invoke this skill when:

  • Making decisions that affect system structure, quality attributes, or dependencies
  • Choosing between competing technical approaches with long-term implications
  • Establishing patterns or conventions for the project
  • Resolving technical uncertainty or debate
  • Making decisions that are expensive to change later

ADR Creation Process

Step 1: Determine Next ADR Number

  1. Check existing ADRs in docs/adrs/ directory
  2. Find the highest numbered ADR (e.g., adr-0005-...)
  3. Increment by 1 and zero-pad to 4 digits (e.g., adr-0006)

Step 2: Create ADR File

  1. Use the template at .claude/skills/adr/templates/adr-template.md
  2. Name the file: adr-NNNN-brief-descriptive-title.md
  3. Place in: docs/adrs/

Step 3: Update ADR Table of Contents

Option A (Automated - Preferred): Run the TOC update script:

.claude/skills/adr/scripts/update-adr-toc.py

Option B (Manual):

  1. Add entry to docs/adrs/README.md table
  2. Include: ADR number, title (linked), and status
  3. Maintain sequential order

The automated script saves tokens by handling mechanical TOC updates without AI assistance.

Step 4: Reference from Other Docs (if needed)

  • Update CLAUDE.md if the decision affects AI context
  • Update README.md if the decision affects users/contributors

Best Practices

Writing Good ADRs

  1. Be Concise: ADRs should be readable in 5-10 minutes
  2. Focus on "Why": Explain rationale, not just "what" was decided
  3. Capture Context: Future readers won't have the conversation context
  4. Include Alternatives: Briefly mention options considered and why they were rejected
  5. Acknowledge Trade-offs: Every decision has costs and benefits
  6. Write Before/During Implementation: Don't wait until after
  7. Keep Immutable: Rarely edit after acceptance; supersede instead

Common Pitfalls to Avoid

  • Writing ADRs after decisions are implemented (loses context)
  • Being too verbose (ADRs are not architecture documentation)
  • Omitting alternatives considered (loses decision rationale)
  • Not updating status when decisions change
  • Creating ADRs for trivial decisions (use judgment)

Updating and Superseding ADRs

When a decision changes:

  1. Create a new ADR documenting the new decision
  2. Update the old ADR's status to "Superseded by ADR-XXXX"
  3. Link between related ADRs
  4. Don't delete or heavily modify old ADRs (history matters)

Example Prompts for Common ADR Types

Technology Selection

Create an ADR for choosing [Technology X] over [Technology Y] for [purpose].

Context includes:
- Current requirements: [list]
- Evaluation criteria: [performance, community, licensing, etc.]
- Alternatives considered: [list]
- Key trade-offs: [describe]

Pattern Adoption

Create an ADR for adopting [Pattern Name] pattern for [specific use case].

Context includes:
- Problem it solves: [describe]
- Where it applies: [scope]
- Alternatives considered: [list]
- Migration strategy: [if applicable]

Deprecation Decision

Create an ADR for deprecating [feature/component/approach].

Context includes:
- Current state and limitations: [describe]
- Replacement approach: [describe]
- Migration path: [describe]
- Timeline: [if applicable]

Architectural Boundary

Create an ADR for establishing [boundary/interface/contract].

Context includes:
- Components involved: [list]
- Interaction patterns: [describe]
- Stability requirements: [describe]
- Evolution strategy: [describe]

Tooling or Process

Create an ADR for introducing [tool/process] to address [problem].

Context includes:
- Current pain points: [describe]
- How it addresses the problem: [describe]
- Integration approach: [describe]
- Evolution path: [if phased]

Evolution of This Skill

This skill is part of a phased approach to ADR tooling (see ADR-0001):

  • Phase 1 (Current): Skill provides template and process guidance
  • Phase 2 (Future): /adr-new slash command for quick invocation
  • Phase 3 (Future): Haiku sub-agent for drafting boilerplate
  • Phase 4 (Future): Hooks to detect architecture changes without ADRs

Status updates will be reflected in ADR-0001.

Usage Example

User: "I want to document the decision to use Context7 MCP for documentation access"

Claude (using this skill):

  1. Checks docs/adrs/ for existing ADRs (finds ADR-0000, ADR-0001)
  2. Determines next number: ADR-0002
  3. Creates docs/adrs/adr-0002-use-context7-mcp-for-documentation-access.md
  4. Fills template with provided context
  5. Updates docs/adrs/README.md table of contents
  6. Confirms completion with user

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.