AGENT SKILL

ag-docs

Trigger keywords: docs, README, document codebase, ADR, architectural decision, decision record, design doc, architecture record, RFC, request for comments, architectural proposal, system design. Skill for analyzing codebase, managing project documentation, creating/validating Architectural Decision Records (ADRs), Request for Comments (RFCs), and System Design Docs.

License 许可
MIT
最近更新
2026-08-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
ag-docs
layer
helper
description
Trigger keywords: docs, README, document codebase, ADR, architectural decision, decision record, design doc, architecture record, RFC, request for comments, architectural proposal, system design. Skill for analyzing codebase, managing project documentation, creating/validating Architectural Decision Records (ADRs), Request for Comments (RFCs), and System Design Docs.
trigger_keywords
docs

02 资源文件 12

03 SKILL.md 正文

Documentation, ADR, RFC & Design Management (ag-docs)

When to Apply

Use this skill when working with ag-docs workflows, tasks, or system specifications.

How to Use

Refer to the workflow instructions and command references detailed below. Analyze codebase and manage project documentation, Architectural Decision Records (ADRs), Request for Comments (RFCs), and System Design Specifications through scouting, structured doc generation, and automated validation.

Default (No Arguments)

If invoked without arguments, present available documentation operations:

Operation Description
init Analyze codebase & create initial docs
update Analyze changes & update docs
summarize Quick codebase summary
adr Create or validate Architectural Decision Records (ADRs)
rfc Create or validate Request for Comments (RFCs)
design Create or validate System Design Docs
workflow Create or validate SSOT Operational Workflows

Subcommands

Subcommand Reference Purpose
/ag-docs init references/init-workflow.md Analyze codebase and create initial documentation
/ag-docs update references/update-workflow.md Analyze codebase and update existing documentation
/ag-docs summarize references/summarize-workflow.md Quick analysis and update of codebase summary
/ag-docs adr references/adr-layout.md Create or validate Architectural Decision Records (ADRs)
/ag-docs rfc references/rfc-layout.md Create or validate Request for Comments (RFC proposals)
/ag-docs design references/design-doc-layout.md Create or validate System Design Specifications
/ag-docs workflow references/workflow-documentation-standard.md Create or validate SSOT Operational Workflows (WBS/Mermaid)

Routing

Parse $ARGUMENTS first word:

  • init → Load references/init-workflow.md
  • update → Load references/update-workflow.md
  • summarize → Load references/summarize-workflow.md
  • adr → Load references/adr-layout.md and manage ADRs under docs/adr/
  • rfc → Load references/rfc-layout.md and manage RFCs under docs/rfc/
  • design → Load references/design-doc-layout.md and manage Design Docs under docs/design/
  • workflow → Load references/workflow-documentation-standard.md and manage SSOT Workflow Specs under docs/design/

Automated Validation Scripts

To run all documentation validation suites (ADRs, RFCs, and Design/Workflow Docs) in parallel:

bun run .claude/skills/ag-docs/scripts/validate-docs.mjs

To validate individual documentation types for standard formatting, run:

bun run .claude/skills/ag-docs/scripts/validate-adrs.mjs

To validate all RFC files in the repository for standard formatting, run:

bun run .claude/skills/ag-docs/scripts/validate-rfcs.mjs

To validate all System Design Documents in the repository for standard formatting, run:

bun run .claude/skills/ag-docs/scripts/validate-design-docs.mjs

To validate all SSOT Workflow Documents (per workflow-documentation-standard.md) for standard formatting, run:

bun run .claude/skills/ag-docs/scripts/validate-workflow-docs.mjs

Shared Context

For this repo, durable agent-facing documentation lives in process/context/, not ./docs. Read process/context/all-context.md first to choose the relevant root file or context group. Use audit-context after adding, moving, splitting, or grouping context files.

Feature & Infrastructure Workflow Documentation

For generating feature workflow specifications or infrastructure audit guides (with WBS tables, sequence diagrams, and defense-in-depth security), load references/workflow-documentation-standard.md or use /ag-docs workflow.

References

04 同仓库更多 Skills

ngxccc
ngxccc/agent-skills-kit

zustand

Rules and standards for state management using Zustand in React and Next.js. Use when implementing client-side stores, persistence with localStorage, or preventing SSR hydration mismatch.

★ 0
ngxccc
ngxccc/agent-skills-kit

zod

Zod v4 schema validation best practices. Use when defining schemas, utilizing safeParse, or customizing error messages.

★ 0
ngxccc
ngxccc/agent-skills-kit

upstash-ratelimit

Rules, standards, and references for rate limiting in serverless environments using Upstash Ratelimit. Use when implementing rate limiting, configuring Upstash Redis, or handling request blocking.

★ 0
ngxccc
ngxccc/agent-skills-kit

ui-design

UI/UX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.

★ 0
ngxccc
ngxccc/agent-skills-kit

typescript

TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.

★ 0
ngxccc
ngxccc/agent-skills-kit

typescript-refactor

TypeScript and TSX refactoring and modernization guidelines from a principal specialist perspective, current to TypeScript 6.0 and React 19. This skill should be used when refactoring, reviewing, or modernizing TypeScript or React/TSX code for type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving type architecture, narrowing, generics, discriminated unions, error handling, React component and hook typing, or migration to modern TypeScript features (satisfies, using, const type parameters, inferred type predicates, isolatedDeclarations, erasable syntax, import attributes).

★ 0