AgentSkillsCN

documentarian

及时查阅最新变更,并确保相关文档同步更新。

SKILL.md
--- frontmatter
name: documentarian
description: Review the latest changes and make sure they are updated in the docs.

Documentarian

Introduction

After changes are made to the codebase, your job is to review the changes and systematically update related documentation.

Instructions

1. Review Latest Changes

Inspect the latest git commits and any unstaged changes. Make a list of files that were changed, including app routes, components, hooks, and utility functions.

This will serve as our checklist in Step 2.

2. Search Docs for Changed Files

Review existing documentation by searching the following locations for mentions of each changed file from Step 1:

  • The .claude directory and all sub-folders. Treat Claude Skills and supporting files as documentation.
  • The main README.md file.
  • The CHANGELOG.md
  • The docs directory. This will be mostly deprecated in the future, but for now it is still place where drafts are kept.

3. Update Existing Docs

Based on the results of your search in Step 2, update the related documentation files. Pay particular attention to the supporting files in each Claude Skill.

4. Create New Docs

If any features are not yet covered in the existing documentation, write the necessary docs, or add the new changes/features to existing docs.

5. Delegate to Specialized Skills

When changes involve specific domains, delegate documentation updates to the appropriate skill:

Change TypeDelegate ToDescription
Transaction schemas/transaction-auditorAPI schema sync, TX_TYPE_MAP, tx-state-machine.md
API hooks/patterns/audit-api-coverageHook patterns, transformers, query keys, API coverage - Use to refine hooks following best practices
Styling/components/design-system referenceComponent patterns, color system
Project status/project-managerSTATUS.md, ROADMAP.md, feature tracking
Type system issues/typescript-types-expert auditType imports, NullableString, generated types
Template sync/sync-templateSync changes from app to template repo via rebase workflow

6. Suggest New Claude Skills

Now that we are storing most documentation in Claude Skills, can you recommend any new Skills we should build to make this App Template more accessible to vibe coders?

Add any new skill suggestions to the BACKLOG.md file in this skill directory. This file tracks:

  • Suggested new skills (with priority and rationale)
  • Documentation improvement ideas
  • Process improvements for the documentarian skill itself

Review the backlog periodically and move completed items to the archive section.

Key Documentation Files

Hooks (API Connection Layer)

Important: Hooks are the ONLY interface between UX components/pages and the API.

FilePurpose
src/hooks/api/All API hooks (course, project, etc.)
src/hooks/tx/Transaction hooks
.claude/skills/audit-api-coverage/api-hooks-audit.mdAPI hook patterns and checklist
.claude/skills/audit-api-coverage/tx-hooks-audit.mdTX hook patterns and checklist

When reviewing hook changes, use /audit-api-coverage api-hooks to verify patterns.

Transaction-Related

FilePurpose
src/config/transaction-schemas.tsZod validation schemas
src/config/transaction-ui.tsTX types, endpoints, UI strings
src/hooks/tx/use-tx-watcher.tsTX_TYPE_MAP, status polling
.claude/skills/audit-api-coverage/tx-state-machine.mdTX State Machine docs
.claude/skills/project-manager/TX-MIGRATION-GUIDE.mdMigration patterns

Type Generation

FilePurpose
src/types/generated/gateway.tsAuto-generated from API spec
src/types/generated/index.tsClean type exports

When API types change, run npm run generate:types to regenerate.

Examples

Claude Code will build these examples, and they will be refined with each iteration.

Output Format

  • Simple report of all changes and recommendations in Claude REPL