본문으로 건너뛰기
cccskills
무료GitHub에 공개

docs-audit

Audits Mastra documentation against repository source and canonical writing guidance. Checks examples in context, API reference coverage, and targeted automated results, then produces an evidence-based report with findings and limitations without editing files.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Autonomous, report-only documentation review for Mastra docs. Use when auditing changed docs against source, validating contextual code examples or API coverage, checking canonical mastra-docs guidance, or running narrow deterministic checks.

설치 방법 보기

이럴 때 유용합니다

  • Auditing every changed documentation page in a pull request
  • Checking code examples against source and surrounding explanations
  • Finding missing or incorrect API reference details
  • Reviewing writing compliance and automated check results

포함된 파일(4)

  • SKILL.md11.8 KB
  • references/AUDIT-REPORT.md5.4 KB
  • references/RUBRIC.md6.5 KB
  • scripts/run-checks.sh8.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Documentation audit

Audit Mastra documentation autonomously against source, the canonical mastra-docs guidance, and narrow deterministic checks. This skill is for report-only reviews. Do not edit documentation, ask the user to select jobs, or submit a fix plan unless the user separately requests implementation after the audit.

Load first

  1. Activate the mastra-docs skill. Its references are the canonical authoring policy; do not restate their rules.
  2. Read:
    • references/RUBRIC.md
    • references/AUDIT-REPORT.md
    • .claude/skills/mastra-docs/references/STYLEGUIDE.md
    • .claude/skills/mastra-docs/references/INFORMATION_ARCHITECTURE.md
    • .claude/skills/mastra-docs/references/AUTHORING_WORKFLOW.md
  3. Add the applicable canonical references:
    • /docs pages: DOC.md
    • /integrations pages: GUIDE_INTEGRATION.md
    • /reference pages: REFERENCE.md
    • pages using shared MDX or llms-txt-aware components: COMPONENTS.md
    • pages containing Mermaid or diagram assets: DIAGRAM.md

Apply the verification rules in AUTHORING_WORKFLOW.md to every audit. Apply its move, delete, and redirect sections only when those operations are part of the reviewed diff.

Autonomous workflow

1. Determine the complete audit scope

Use the explicit files, URL, topic, or PR named by the user. Otherwise inspect the current PR/diff and include every changed authored page under:

  • docs/src/content/en/docs
  • docs/src/content/en/integrations
  • docs/src/content/en/reference

Do not ask the user to choose pages or jobs. Do not silently sample or cap a large changed-page set. Exclude generated pages unless the diff changes their generator or generated contract. Record any unavailable or ambiguous scope as a report limitation instead of starting a question loop.

2. Classify every page and map canonical guidance

Use these classifications:

  • docs overview: /docs/**/overview.mdx and overview-shaped /docs/index.mdx
  • docs page: other authored /docs/** pages
  • deployment integration: /integrations/deploy/**
  • integration: other authored /integrations/**
  • reference: authored /reference/**

Prefer content and canonical ownership when a filename is misleading. For each page, record a compliance map with its classification and every canonical reference applied. Always include STYLEGUIDE.md, INFORMATION_ARCHITECTURE.md, and the verification guidance in AUTHORING_WORKFLOW.md, then add the page-type, component, and diagram references that apply.

3. Plan a bounded evidence pass

Keep the audit complete without repeating work:

  • Use one command over the three authored content directories to collect both the changed-file list and a focused diff. Treat changed hunks and their page-level consequences as the primary risk map; do not retry with glob variants or rerun equivalent diff commands per file.
  • Read each page once in the largest practical contiguous chunks and retain its line numbers for citations. Do not separately search for code fences or reread ranges for citations; reread only when tool truncation hid required evidence.
  • Do not inspect sidebars unless a sidebar changed or route ownership is genuinely ambiguous from the page path and content.
  • Load each canonical reference once. Batch independent canonical-reference and page reads with multi_tool_use.parallel, but keep each parallel batch to at most two files and 500 requested lines so results remain directly usable. Never batch all references or all pages into one response, issue every read serially, or reread a docs/styleguides symlink or another alias.
  • Do not create a task list for an audit-only review.
  • Build one batched alternation from exact imported/exported identifiers and disputed literals across all changed pages, then search the full repository once with no context and a small per-file match cap. Omit generic words, broad option names, and already-proven prose terms so the result identifies source paths without flooding the audit. Do not guess package subtrees, begin with one search per page or symbol, or use file discovery unless that full-repository search returns no usable path.
  • Group related pages, blocks, imports, and symbols into shared source reads. Once the batched search identifies source paths and line evidence, open independent implementation ranges together with multi_tool_use.parallel, keeping each range under 150 lines and each batch under 500 requested lines. Do not open full implementation files, issue serial source reads, or run discovery commands between the search and those reads.
  • After scope, guidance, and page reads, default to no more than two focused source lookup operations per changed page. Exceed that only to resolve a material ambiguity or complete a reference surface, and batch the additional evidence.
  • For guides and overviews, source-check changed claims and the code or behavior the page teaches; do not re-verify unrelated unchanged vendor behavior.
  • For references, still perform the complete declared-surface comparison required below.
  • Use current source and exports before history. Do not search tests or history after the exported implementation already proves the claim. Do not call an architecture expert during a docs audit: the report requires current file:line source evidence, and an expert response cannot replace it.
  • Never call conversation recall, web search, browser tools, or external search during a repository audit. If a tool result is truncated, rerun the same repository read with narrower line ranges instead of recalling prior tool output. Repository source is authoritative for Mastra APIs and components; record any genuinely unverifiable external claim as a limitation instead of browsing.

Complete source and guidance research before deterministic checks. After the checker finishes, synthesize the report immediately; do not start new research unless the checker exposes a new audited-target failure.

4. Establish source truth narrowly

For guides and overviews, collect the changed claims plus the minimum page-level context needed to judge their imports, commands, APIs, options, components, diagrams, and prerequisites. Do not inventory every unchanged API or vendor operation on the page. For references, collect the complete declared public surface, including parameters, defaults, optionality, errors, and returns.

Resolve packages through workspace package.json exports when package ownership is unclear. Inspect the narrow exported implementation or public type needed to verify each finding candidate, and stop once the claim is proven. Do not inspect tests, package manifests, or adjacent implementations unless the public implementation leaves a material gap. Use history only when current ownership or intended behavior cannot be established from current source. Existing docs are context, not proof.

Cite changed-doc file:line evidence for every finding. Accuracy findings also cite source file:line; guidance findings cite the canonical guide file:line that establishes the rule.

5. Verify every code block contextually

Classify each block as one of:

  • standalone
  • incremental
  • illustrative
  • configuration-only
  • shell
  • output

Judge completeness for that role and the surrounding page. Adjacent prose, imports, setup sections, or prior blocks may intentionally provide omitted context. Do not require every block to compile independently and do not flag a fragment merely because it is partial. Group unchanged blocks that share setup and API surfaces into one contextual outcome. Source-check changed blocks and unchanged blocks whose correctness is necessary to judge a changed claim; for other unchanged blocks, use the package/source evidence already established for the page instead of opening new source solely to re-audit unchanged code.

Verify what the relevant block set teaches against source:

  • package and relative imports
  • exported symbols and method names
  • options, required fields, defaults, and constraints
  • async/await and return behavior
  • prerequisites, credentials, services, and environment setup
  • consistency with adjacent blocks and stated expected results

Report a contextual block outcome for every changed page, including valid intentional omissions and why the surrounding context makes them sufficient.

6. Check page-specific completeness

Apply references/RUBRIC.md and the canonical page guide:

  • Docs overviews: verify broad orientation, canonical ownership, component-driven navigation, and next-step coverage without demanding an API catalog.
  • Docs pages: verify the concept or task taught, its prerequisites, sequence, expected results, and related navigation.
  • Integrations: verify installation/setup, imported package and provider behavior, recipes or task flow, and integration-specific prerequisites.
  • Deployment integrations: additionally verify authentication and exposure ordering, production prerequisites, commands, environment values, and operational verification.
  • References: compare the declared public surface with exported APIs. Check every claimed parameter, property, overload, default, optional field, constraint, error, return value, and example. Flag missing public surface within the page's declared scope, but not internal implementation details.

Guides and overviews still require source verification for APIs and behavior they teach; they are not forced into reference-page completeness.

7. Run narrow deterministic checks

Run the read-only docs-audit checker once for all changed pages:

bash .claude/skills/docs-audit/scripts/run-checks.sh \
  --docs <all-audited-files>

Invoke the documented command directly; do not inspect the checker source before or after running it. Use the diagnostics and five summary lines printed to stdout. Treat *-target entries as audited-page results. Report proven unrelated repository-wide failures separately and never count them against an audited page. Treat validate-target=warn as ambiguous attribution that needs report context, not as a target failure or a clean pass. Do not run write-formatting, package installation, temporary project setup, code-example eval projects, or ad hoc compiler/parser probes.

8. Report and stop

Produce one compact final report using references/AUDIT-REPORT.md. Use one row per page where possible, group code blocks that share a role and evidence, and keep each finding to the evidence, contradiction, impact, and bounded direction needed to act. Include:

  • complete scope and limitations
  • per-page classification and canonical-guidance compliance map
  • source paths inspected
  • contextual outcome for every code block or page-level code set
  • strict reference completeness outcomes where applicable
  • deterministic target results and separate repo-wide noise
  • uniquely identified, source-backed findings ordered by severity
  • an overall verdict

Do not ask follow-up questions, edit files, submit a plan, or run post-fix checks. Stop after the report. If the user later requests fixes, treat that as a separate implementation task under mastra-docs.

Rules

  • Audit every changed authored page in scope
  • Keep mastra-docs as the sole owner of authoring rules
  • Treat source and exported types as truth
  • Use narrow evidence-driven reads rather than broad source archaeology
  • Verify code in page context, not through blanket independent compilation
  • Keep reference completeness bounded by the page's declared public surface
  • Separate deterministic target failures from unrelated repository noise
  • Never modify the repository during an audit-only request

References

  • references/AUDIT-REPORT.md
  • references/RUBRIC.md

Scripts

  • scripts/run-checks.sh

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Design and audit an agent's system prompt, the instructions that guide its work. Define a concrete outcome, starting input, available tools, completion checks, fallback behavior, and final report so the prompt describes a complete run.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Designing the core instructions for a new agent
  • Auditing a prompt before saving it
  • Defining behavior when tools or permissions are missing
mastra-ai/mastra2.9만2026년 10월 20일 업데이트

Create a dedicated test project linked to the current worktree and check Agent Builder through APIs and browser interactions. It covers agent and skill management, permissions, defaults, and related features, with selectable test sections.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Validate an Agent Builder feature branch before review
  • Check role-based permissions and authentication
  • Test agent and skill management through APIs and the UI
mastra-ai/mastra2.9만2026년 10월 20일 업데이트

Reviews pull requests for bugs, error handling, code quality, and style consistency. Organizes feedback into an overview, must-fix issues with file locations, improvement suggestions, and positive notes so reviewers can distinguish urgent problems from refinements.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Finding bugs that must be fixed before merging
  • Reviewing TypeScript types and asynchronous code
  • Checking naming, imports, and leftover debug statements
mastra-ai/mastra2.9만2026년 10월 20일 업데이트

Design instructions for agents that write, fix, review, or refactor code. Define behavior based on file access, select suitable tools, and set clear verification and completion rules for repository changes or copyable code output.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Designing an agent for repository bug fixes
  • Defining a pull request review agent
  • Creating a code generator without workspace access
mastra-ai/mastra2.9만2026년 10월 20일 업데이트

Configure Factory board behavior and GitHub or Linear event handlers in deployment code. Adjust stage transitions, phase meanings, and tool-result handling, then check the changes with focused tests and versioned audit records.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add approval requirements to board transitions
  • Change GitHub or Linear event handling
  • Define custom board phases and tool-result rules
mastra-ai/mastra2.9만2026년 10월 20일 업데이트

Design agents that draft blog posts, social posts, newsletters, and marketing copy. Define the audience, brand voice, length, and required output so each agent delivers a complete draft with a headline and supporting notes.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Build a blog writing agent with a consistent brand voice
  • Design an agent for LinkedIn product posts
  • Define delivery rules for newsletter drafts
mastra-ai/mastra2.9만2026년 10월 20일 업데이트

mastra-ai의 스킬 모두 보기

이 스킬의 문제 신고