skills/doom-doc-assistant/SKILL.md
Use when working in a Doom documentation repository to turn requirements into repository-aligned documentation diagnosis, plans, drafts, and AI-usability reviews. Supports modifying authoritative existing pages, adding focused scenario documents, separating user-facing docs from engineering-truth docs, planning doc-tree restructures, read-only convention or AI-usability reviews, and explicitly requested `yarn build` or `yarn translate` tasks. Explicit target repository rules override skill defaults; when the repository is silent, built-in product documentation standards govern new product docs.
npx skillsauth add alauda/agent-skills doom-doc-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Repository rules override the skill defaults here: ...yarn up @alauda/doom and then yarn install before handing the task back to a human reviewer.yarn dev. Human reviewers run yarn dev locally only after local preview prep completes successfully.yarn build or yarn translate. Only consider those commands when the user explicitly requests them as a separate task.Apply guidance in this order:
templates/*Never let a lower-priority source overrule a higher-priority source. Product documentation content language is a non-overridable skill rule: write English content only.
Activate this skill when the user asks for any of the following in a Doom or @alauda/doom documentation repository:
yarn build or yarn translate request for the same documentation repository without treating those commands as default validation stepsFollow this sequence. Do not skip steps.
Success criterion: the assistant knows whether to print its reports and questions in English or Chinese before starting repository analysis, while keeping documentation content English-only.
.mdx pages, Doom config files, or existing Doom MDX component usage.AGENTS.md file by itself as sufficient evidence that the current workspace is the target docs repository.AGENTS.md before applying any built-in rule when it exists.rg, ls, and file reads.weight values, optional metadata, or category values, sample 3-5 neighboring pages in the same directory or adjacent module.docs/zh, stop and explain that this skill only drafts English product documentation. Ask for the English target path or English content target.package.json, Yarn usage, a dev script, doom dev, or @alauda/doom.Success criterion: you can name the target repository root, the likely authoritative page or section, the local conventions you found, and whether standard Doom/Yarn preview preparation applies.
Classify the request before planning edits:
review/audit only: The user only asks to inspect, review, audit, lint, or check documentation conventions and does not ask for changes.documentation collaboration: The user asks to create, modify, restructure, or draft documentation.explicit command task: The user explicitly asks to run yarn build or yarn translate.If the request is review/audit only:
rules/ai-usable-docs.md whenever the user asks whether the docs are AI-usable, self-contained, complete enough for assistants, or ready for automated review or retrieval.yarn up @alauda/doom, run yarn install, or hand off yarn dev.If the request includes an explicit command task:
yarn build or yarn translate as a separate explicitly requested task.If the request is only documentation collaboration, continue to Phase 0.
Success criterion: review-only work stops with findings only, command-only work skips the documentation phases, mixed explicit-command work stays separate from default validation, and documentation collaboration continues through the phased workflow when requested.
user-facing product docengineering fact docversioned validation reportknown issue trackerevidence indexuser-facing product doc, also scan the source material (Jira description, internal test report, design doc, PR body, chat transcript) for internal-bookkeeping tokens — issue tracker IDs (AIT-, DBS-, DEVOPS-, MIDDLEWARE-, TC-, KI-, RUS-), internal test dates (Verified YYYY-MM-DD, Validated YYYY-MM-DD, on hcslab, release test), internal decision rationale (Path A / B / C, "Why we did not pick X"), internal repo / build / artifact references (gitlab-ce, build-harbor, package-minio, MR !N, BuildRun <name>). Produce a short translation list for each detected token: customer-facing replacement, or "drop". This is the input contract for user-facing product doc. See rules/common-pitfalls.md Pitfall 9a for the full pattern set and the bad / good examples.templates/diagnosis-report.md and output the diagnosis with all required sections.Success criterion: the user can see the requirement, relevant documents, the document layer, coverage, propagation risk, Path A/B/C definitions, the recommended path, and why other paths were not selected.
rules/core-conventions.md.rules/ai-usable-docs.md.index.mdx rule for any directory you will create or touch.modify existing authoritative docadd new scenario docrestructure doc treepackage.json, Yarn usage, a dev script, doom dev, or @alauda/doom.yarn up @alauda/doom and then yarn install.package.json, yarn.lock, or equivalent dependency files under Files to Modify.weight spacing and optional fields only when they do not conflict with explicit repository rules or built-in product documentation standards.category values from template file names.weight and English queries.queries cover user intent plus important platform terms, field names, or aliases when they materially improve retrieval.author or category unless explicit repository rules require them.queries, list a follow-up or planned completion item depending on the edit scope.Files to Modify or record the explicit follow-up debt. Do not silently localize a cross-workflow constraint to one page.None when a section is empty. Do not omit required sections.Should I proceed with generating or modifying the documentation based on this plan?Use this contract for the execution plan:
## Execution Plan
**Action Type**: [modify existing authoritative doc / add new scenario doc / restructure doc tree]
**Documentation Layer**: [user-facing product doc / engineering fact doc / versioned validation report / known issue tracker / evidence index]
### Files to Create
| File | Weight | Queries | Purpose |
|------|--------|---------|---------|
| [new lowercase_underscore path or `None`] | [weight] | [2-4 English queries] | [purpose] |
### Files to Modify
| File | Changes | Metadata Handling |
|------|---------|-------------------|
| [existing file, dependency file, or `None`] | [changes] | [preserve / add queries / follow-up / dependency update] |
### Directory Integrity Check Result
[List missing or verified `index.mdx` coverage]
### Local Preview Prep
**Applicability**: [Standard Doom/Yarn prep applies / Not applicable]
**AI Commands Before Manual Acceptance**:
- `yarn up @alauda/doom` / `None`
- `yarn install` / `None`
**Files That May Change**: [package.json / yarn.lock / equivalent files / `None`]
**Human Manual Acceptance**:
- If Local Preview Prep is `Completed`, human reviewer runs `yarn dev` locally.
- If Local Preview Prep is `Failed` or `Not applicable`, manual preview is blocked or unavailable; do not tell the human to run `yarn dev`.
**Default Prohibited Commands**:
- `yarn build`
- `yarn translate`
### Outline per Target Document
[One outline per document that will be created or materially reworked]
### Assumptions
[List assumptions or `None`]
### Acceptance Criteria
[Flat checklist or bullets]
Success criterion: the plan makes clear what will be created, what will be modified, which document layer it belongs to, whether cross-page propagation is required, whether manual preview handoff is available, and what a successful outcome looks like.
rules/ai-usable-docs.mdrules/metadata-rules.mdrules/language-style.mdrules/content-elements.mdrules/markdown-formatting.mdrules/core-conventions.mdrules/common-pitfalls.mdrules/mdx-components.mdrules/terminology-guide.mdrules/terminology-consistency.mdrules/best-practices.mdqueries, missing required index.mdx, or Chinese product documentation content.templates/howto-template.mdxtemplates/function-template.mdxtemplates/concept-template.mdxtemplates/arch-template.mdxtemplates/quickstart-template.mdxtemplates/installation-template.mdxtemplates/release-notes-template.mdxtemplates/troubleshooting-template.mdxtemplates/upgrade-template.mdxtemplates/intro-template.mdxcategory values.weight and English queries for new product documentation. Include other fields only when confirmed by explicit repository rules.yarn build or yarn translate as part of documentation collaboration. Those commands require an explicit separate user request.rules/ai-usable-docs.md:user-facing product doc, prefer stable operational guidance. State prerequisite inputs, value sources, mappings, controller-managed fields, and supported boundaries when they matter to successful execution.engineering fact doc, distinguish delivered capability, known gaps, ownership boundaries, and code paths that exist but are not formally accepted.versioned validation report, bind conclusions to explicit baseline identifiers such as ref, commit SHA, validation date, and promotion status.known issue tracker, record the symptom, impact scope, current guidance, and fix direction without pretending the issue is already solved.evidence index, reference external evidence and identifiers instead of inlining long raw logs.Success criterion: the generated or revised documentation follows the approved plan, matches repository conventions, and does not introduce template-driven fake standards.
When restructuring existing documents:
rules/mdx-components.md.::: directives except :::details.templates/spec-review-report.md.Success criterion: the user sees the current directive count, the observed local directive baseline, any compliance issues, the document-layer fit, the repository-specific frontmatter contract, and the proposed restructuring changes before execution.
rules/verification-checklist.md.user-facing product doc, grep the modified or newly created files for the internal-bookkeeping pattern set defined in rules/common-pitfalls.md Pitfall 9a. Suggested regex: (AIT-|DBS-|DEVOPS-|MIDDLEWARE-|TC-|KI-|RUS-)[0-9]+, [0-9]{4}-[0-9]{2}-[0-9]{2}, and the literal strings Path A, Path B, Path C, Verified, Validated, release test, hcslab, BuildRun, gitlab-ce, build-harbor, package-minio, MR !. Every match needs an explicit justification or removal before the draft is handed to the human reviewer.Success criterion: you can explicitly state that the output matches the approved plan, local metadata contract, and repository conventions, and that the customer-facing pages are free of internal-bookkeeping tokens.
package.json, Yarn usage, a dev script, doom dev, or @alauda/doom.yarn up @alauda/doom and then yarn install.yarn dev.yarn dev. Manual acceptance belongs to the human reviewer.yarn build or yarn translate. Only do so when the user explicitly requested that exact command as a separate task.yarn build, yarn translate, or another validation command.Success criterion: the assistant either finishes standard preview preparation and hands yarn dev to the human reviewer, or clearly reports why that handoff is blocked or unavailable.
Use this section only when the user explicitly requested yarn build or yarn translate.
yarn build or yarn translate after a failed or unavailable local preview prep unless the user explicitly requested that exact command anyway and understands it is separate.Success criterion: explicit build or translate output is clearly separate from the default manual-acceptance flow.
Always include:
RequirementDocumentation LayerRelated Documents FoundSource Material CoveragePropagation RiskAll Branching PathsRecommended PathReasoningFor review/audit only requests, use this structure and stop after the report unless the user asks for fixes:
## Review Findings Report
**Scope**: [documents, directories, or conventions reviewed]
**Review Lens**: [Doom conventions / AI usability / both]
**Repository Evidence Used**: [target AGENTS.md, sibling pages, component examples, rules loaded]
**Read-only Result**: No files modified. No local preview prep commands run.
## Findings
| Severity | Location | Finding | Recommendation |
|----------|----------|---------|----------------|
| P1/P2/P3 | [file or section] | [issue] | [actionable recommendation] |
## Non-Issues Or Confirmed Good Patterns
[List relevant passing checks or `None`]
## Suggested Next Step
[Ask whether the user wants a fix plan or implementation.]
For explicitly requested yarn build or yarn translate tasks, use this structure:
## Explicit Command Result
**Requested Command**: [`yarn build` / `yarn translate ...`]
**Explicit Request Evidence**: [Brief quote or summary of the user's explicit request]
**Scope**: [Repository root, package, docs path, or glob]
**Separation From Default Flow**: This command was run only because the user explicitly requested it. It is not part of default documentation verification and does not replace human `yarn dev` acceptance.
## Command Outcome
**Status**: [Succeeded / Failed / Not run]
**Output Summary**: [Short summary of relevant command output]
**Failure Handling**: [Blocking error and next step, or `None`]
After generating or revising documentation, use this structure:
## Documentation Summary
**Action Type**: [modify existing authoritative doc / add new scenario doc / restructure doc tree]
**Documentation Layer**: [user-facing product doc / engineering fact doc / versioned validation report / known issue tracker / evidence index]
**Execution Path**: [A / B / C]
**Evidence Used**: [Short summary]
**Repository Overrides**: [Any skill defaults that were overridden, or `None`]
## Generated Or Revised Content
[Draft, diff summary, or content]
## Local Preview Prep
**Status**: [Completed / Failed / Not applicable]
**AI Commands Run**:
- `yarn up @alauda/doom` / `None`
- `yarn install` / `None`
**Files Changed Or Potentially Changed**: [package.json / yarn.lock / equivalent files / `None`]
**Default Prohibited Commands Not Run**:
- `yarn build`
- `yarn translate`
## Manual Acceptance Handoff
- If Local Preview Prep status is `Completed`, human reviewer must run `yarn dev` locally.
- If Local Preview Prep status is `Failed` or `Not applicable`, manual preview is blocked or unavailable; do not tell the human to run `yarn dev`.
- The assistant does not run `yarn dev` automatically.
- If preview preparation failed or was not applicable, say so explicitly here and report the blocking reason.
## Verification Results
- [x] Plan consistency check
- [x] Repository metadata contract check
- [x] Structure and link check
- [x] Language and formatting check
## Technical Debt Or Follow-ups
[Optional]
yarn up @alauda/doom and then yarn install before manual acceptanceyarn dev locally only after local preview prep completes successfullyyarn build and yarn translate are never default validation commandsdevelopment
UI design system and visual identity tokens for Alauda Container Platform. Provides design tokens (TypeScript, CSS, JSON), dark mode support, and implementation guidelines for React and other frameworks.
tools
Automatically parse JIRA epic descriptions and create child stories. Use when user wants to generate stories from an epic.
development
Use when `doom lint` reports any `doom-lint:*` rule errors in markdown or MDX documentation files using @alauda/doom — routes to rule-specific fix guides in the rules/ subdirectory
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.