[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F3EJ1RQWBXTK0M3H0N45KP":3,"skill-same:01M6F3EJ1RQWBXTK0M3H0N45KP":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6F3EJ1RQWBXTK0M3H0N45KP","docs-finalize-and-commit",null,"Finalize documentation changes for production readiness by discovering existing conventions, verifying code-doc alignment, reviewing format\u002Fterminology\u002Ftone consistency, and structuring clean commits. Counterpart of finalize-and-commit for documentation projects.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fcomsky\u002Fremy-skill-recipes\u002Fdocs-finalize-and-commit\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"commit","docs finalize and commit","docs","cursor","readiness","tone","conventions","production readiness","terminology","clean","alignment","documentation","format","projects","commits","doc","execution","Production","code","2026-11-10 10:12:30",false,"---\nname: docs-finalize-and-commit\ndescription: >\n  Finalize documentation changes for production readiness by discovering\n  existing conventions, verifying code-doc alignment, reviewing\n  format\u002Fterminology\u002Ftone consistency, and structuring clean commits.\n  Counterpart of finalize-and-commit for documentation projects.\nlicense: MIT\ncompatibility:\n  - Claude Code\n  - Cursor\nmetadata:\n  type: execution\n  category: documentation\n  maturity: stable\n  estimated_time: 15 min\n---\n\n# Skill: Finalize Documentation and Commit (Review, Consistency, Alignment)\n\n**Type:** Execution\n\n## Purpose\n\nFinalize documentation changes for production readiness in a documentation\nproject that coexists with the product source code in the same workspace.\nWorks with any documentation framework (Docusaurus, VitePress, MkDocs, Nextra,\nplain Markdown, etc.).\n\nTasks:\n\n- Discover conventions from existing documentation\n- Verify code-documentation alignment when source code changed\n- Review format, terminology, tone, and completeness consistency\n- Validate framework-specific syntax and build integrity\n- Prepare structured commits separated by change type\n\n---\n\n## When to Use\n\n- Before committing documentation changes to a shared branch\n- Before submitting a pull request that includes documentation updates\n- After completing a documentation session that touched multiple pages\n- When source code and documentation were both modified in the same session\n- When preparing a clean commit history from messy documentation edits\n\n---\n\n## When NOT to Use\n\n- Work-in-progress drafts still actively being written\n- Trivial single-line typo fixes that need no consistency review\n- Initial documentation scaffolding or exploratory writing phases\n- Changes already reviewed and approved through another skill\n- Standalone Markdown files outside a documentation project structure\n\n---\n\n## Inputs Required\n\nDo not run this skill without:\n\n- [ ] Working tree with uncommitted or staged `.md`\u002F`.mdx` file changes\n- [ ] Access to the documentation project build command (if the framework\n  provides one)\n- [ ] Existing documentation files to derive conventions from (at least 3 pages)\n\nOptional but recommended:\n\n- [ ] Target branch context (e.g., main, release)\n- [ ] List of intended change scope (files or directories)\n- [ ] Known glossary or style guide (if any)\n\n---\n\n## Output Format\n\n1. Convention Reference (discovered patterns)\n2. Code-Documentation Alignment Report\n3. Quality Review Findings\n4. Actions Taken (auto-fixes applied)\n5. Build Verification Results\n6. Commit Plan\n7. Final Commit Messages\n\n---\n\n## Procedure\n\n### Gate 0 – Working Set Validation\n\n> **CRITICAL:** The working tree may contain changes from other agent sessions\n> or manual edits. This gate must isolate *only* the current session's changes\n> without disturbing anything else.\n\n**Step 0-1: Identify current session scope**\n\n- Review the conversation history and edit history of this session.\n- Build an explicit list of `.md`\u002F`.mdx` files that were created, modified,\n  or deleted *by this session*.\n- Separately identify source code files changed in this session (needed for\n  Gate 2).\n- If the user provided a scope list, use that as the authoritative source.\n\n**Step 0-2: Inspect full working tree state**\n\n- Run `git status` and `git diff --name-only` to enumerate all uncommitted\n  changes in the working tree.\n\n**Step 0-3: Classify changes**\n\n- **Doc-scope:** `.md`\u002F`.mdx` files that appear in both the session scope\n  (Step 0-1) and the working tree (Step 0-2).\n- **Code-scope:** Source code files changed by this session (input for Gate 2).\n- **Out-of-scope:** Files in the working tree NOT modified by this session.\n\n**Step 0-4: Protect out-of-scope changes**\n\n- **NEVER** revert, restore, checkout, stash, or discard out-of-scope changes.\n- Out-of-scope files must be left exactly as they are in the working tree.\n- The only correct action is to *exclude* them from staging (`git add`).\n\n**Step 0-5: Confirm with the user**\n\n- Present a summary:\n  - Documentation files to be reviewed and committed (doc-scope)\n  - Source code files to cross-reference (code-scope)\n  - Files left untouched (out-of-scope), if any\n- Proceed only after the user confirms the target set.\n\n---\n\n### Gate 1 – Convention Discovery\n\n> **PURPOSE:** Since no formal style guide exists, infer conventions from\n> existing documentation to use as the review baseline.\n\n**Step 1-1a: Scan documentation headers**\n\n- Read **frontmatter + first 30 lines** of 10–15 representative\n  `.md`\u002F`.mdx` files from the docs directory\n  (prioritize recently modified, high-traffic pages).\n- If fewer than 10 documentation files exist, read all available files.\n- Exclude files in the current session's change set to avoid circular\n  reference.\n- From this scan, extract: frontmatter field names, heading structure,\n  first paragraph tone\u002Fspeech level.\n\n**Step 1-1b: Deep read divergent samples**\n\n- Compare patterns extracted in Step 1-1a across all samples.\n- Identify files where patterns diverge or are ambiguous\n  (e.g., inconsistent frontmatter fields, mixed heading levels).\n- Full-read only the divergent files (typically 2–5 files) to resolve\n  ambiguity.\n- If all samples show consistent patterns in Step 1-1a, skip this step.\n\n**Step 1-2: Extract structural patterns**\n\n- Frontmatter fields and their value patterns (title, sidebar_position,\n  sidebar_label, description, tags, etc.)\n- Heading level conventions (e.g., `#` for page title only, `##` for\n  top-level sections, `###` for subsections)\n- Common section ordering patterns (e.g., Overview → Usage → Configuration\n  → Troubleshooting)\n\n**Step 1-3: Build terminology glossary**\n\n- Collect UI element names, feature names, and technical terms used\n  consistently across existing pages.\n- Note the canonical form for each term (e.g., \"저장\" not \"저장하기\",\n  \"Dashboard\" not \"대시보드\" — or vice versa, depending on existing pattern).\n- Record bilingual term pairs if the documentation uses a mixed-language\n  convention (e.g., Korean prose with English UI labels).\n\n**Step 1-4: Identify tone and style**\n\n- Determine the dominant speech level (e.g., 합쇼체 `~합니다`, 해요체\n  `~해요`, 하십시오체 `~하십시오`).\n- Identify person\u002Fvoice conventions (e.g., \"사용자는 ~합니다\" vs\n  \"~하세요\" imperative).\n- Note active vs passive voice preference.\n\n**Step 1-5: Identify documentation framework and catalog its conventions**\n\n- Detect the documentation framework in use by examining configuration files\n  (e.g., `docusaurus.config.js`, `.vitepress\u002Fconfig.*`, `mkdocs.yml`,\n  `next.config.*` for Nextra, or none for plain Markdown).\n- Catalog framework-specific syntax patterns found in existing documentation:\n  - Admonition\u002Fcallout syntax (e.g., `:::note` in Docusaurus\u002FVitePress,\n    `!!! note` in MkDocs, `> [!NOTE]` in GitHub-flavored Markdown).\n  - Component patterns (e.g., `\u003CTabs>`\u002F`\u003CTabItem>` in Docusaurus,\n    custom MDX components in Nextra).\n  - Code block language tags and annotation conventions.\n  - Custom component or shortcode usage patterns.\n\n**Step 1-6: Compile Convention Reference**\n\n- Produce a structured summary to use as the review baseline in Gates 2–3.\n- Present the Convention Reference to the user for confirmation before\n  proceeding.\n\n---\n\n### Gate 2 – Code-Documentation Alignment\n\n> **ACTIVATION:** This gate runs only if code-scope files were identified in\n> Gate 0. If no source code changed, skip to Gate 3.\n\n**Step 2-1: Analyze source code changes**\n\n- Run `git diff` on code-scope files.\n- Extract changed items: API endpoints, function signatures, component props,\n  configuration keys, CLI commands, environment variables.\n\n**Step 2-2: Map code changes to documentation**\n\n- Search across all documentation files (not just in-scope) for references to\n  the changed items using filename, import path, and keyword matching.\n- Build a mapping: `changed code item → documentation section(s) referencing it`.\n\n**Step 2-3: Identify alignment gaps**\n\nProduce an alignment report with three categories:\n\n- **Already updated:** Documentation section was modified in this session and\n  reflects the code change.\n- **Needs update:** Documentation references the changed code but was NOT\n  updated in this session.\n- **No documentation found:** Code change has no corresponding documentation\n  (flag for user decision).\n\nPresent the report to the user. \"Needs update\" items must be resolved before\nproceeding — resolution means either updating the documentation OR the user\nexplicitly acknowledging that no documentation change is needed (with reason).\n\n---\n\n### Gate 3 – Documentation Quality Review\n\nApply the Convention Reference from Gate 1 to all doc-scope files.\n\n**3a) Structural consistency**\n\n- Heading levels follow the discovered convention.\n- Frontmatter contains all expected fields with valid values.\n- Section ordering matches the established pattern.\n- No orphan headings (e.g., jumping from `##` to `####`).\n\n**3b) Terminology consistency**\n\n- Terms match the glossary from Gate 1.\n- No mixed usage of the same concept (e.g., \"저장\" vs \"저장하기\", \"Save\"\n  vs \"세이브\").\n- Proper nouns, product names, and feature names are cased consistently.\n\n**3c) Tone and style consistency**\n\n- Speech level matches the discovered convention (no mixing 합쇼체 and\n  해요체 within the same page).\n- Person\u002Fvoice is consistent (imperative vs descriptive).\n- No abrupt tone shifts between sections.\n\n**3d) Content completeness**\n\n- No TODO, TBD, FIXME, placeholder, or Lorem ipsum markers.\n- No empty sections (heading followed immediately by another heading or EOF).\n- No untranslated placeholder text if the documentation is localized.\n\n**3e) Framework-specific syntax validity**\n\n- Admonitions\u002Fcallouts properly opened and closed per the framework's syntax.\n- Framework-specific components have matching open\u002Fclose tags and required\n  attributes (if applicable).\n- Code blocks have language tags and are properly fenced.\n- MDX\u002Fcomponent imports resolve to existing components (if applicable).\n- Frontmatter YAML is valid (no syntax errors, no duplicate keys).\n\n**3f) Image and screenshot references**\n\n> **SKIP CONDITION:** Skip if no image references (`![`, `\u003Cimg`) exist\n> in any doc-scope file. Verify with a quick text search before skipping.\n\n- Every image reference (`![alt](path)` or `\u003Cimg src=\"path\">`) points to a\n  file that exists in the repository.\n- All images have non-empty alt text.\n- No stale images (referenced file was deleted or moved).\n\n**3g) Link validity**\n\n- Internal document links (relative paths) resolve to existing files.\n- Anchor links (`#section-name`) match actual heading slugs in the target\n  document.\n- No broken cross-references between documentation pages.\n\n**3h) Sidebar and navigation alignment**\n\n> **SKIP CONDITION:** Skip if no files were added or deleted in this\n> session (only modifications). Sidebar\u002Fnav changes are only relevant\n> when the file set changes.\n\n- Identify the sidebar\u002Fnavigation configuration mechanism (e.g.,\n  `sidebars.js` in Docusaurus, `_meta.json` in Nextra, `nav` in\n  `mkdocs.yml`, auto-generated from directory structure in VitePress).\n- New documentation files added in this session are registered in the\n  navigation configuration.\n- Deleted documentation files are removed from the navigation configuration.\n- Ordering metadata (e.g., `sidebar_position` in frontmatter, file ordering\n  in config) does not conflict with other pages in the same category.\n\n**Produce a Quality Review Report** organized by severity:\n\n- **Error:** Must fix before commit (broken syntax, missing images, dead links).\n- **Warning:** Should fix (terminology inconsistency, tone drift, missing\n  alt text).\n- **Info:** Optional improvement (section ordering, heading level suggestion).\n\n---\n\n### Gate 4 – Auto-Fix\n\n**Step 4-1: Apply automatic fixes**\n\nFix items that require no judgment:\n\n- Terminology standardization (replace variant forms with canonical term)\n- Heading level corrections\n- Broken relative link path repair (if the correct target is deterministic)\n- Missing frontmatter field population (using Convention Reference defaults)\n- Admonition\u002Fcode block syntax repair\n- Remove TODO\u002Fplaceholder markers in completed sections\n\n**Step 4-2: Present judgment-required items**\n\nItems that need user input:\n\n- Content gaps identified in Gate 2 (code-doc alignment)\n- Ambiguous terminology choices (when two forms are equally common)\n- Tone corrections that alter meaning\n- Missing images that need creation or replacement\n\n**Step 4-3: Summarize changes**\n\n- Present a before\u002Fafter diff summary of all auto-fixes.\n- Get user confirmation before proceeding.\n\n---\n\n### Gate 5 – Build Verification\n\n**Step 5-1: Run documentation build**\n\n- Detect the build command from the project configuration (e.g.,\n  `package.json` scripts, `Makefile`, or framework CLI).\n- Execute the build command from the documentation project root.\n- Capture full output including warnings.\n\n**Step 5-2: Evaluate results**\n\n- **Build succeeds with no warnings:** Proceed to Gate 6.\n- **Build succeeds with warnings:** Report warnings to user. Fix if they\n  relate to in-scope files; proceed if warnings are pre-existing.\n- **Build fails:** Analyze error, apply fix, return to Gate 4 Step 4-1.\n\n**Step 5-3: Record evidence**\n\n- Build pass = final proof that documentation syntax and link references are\n  valid.\n- Save build exit code and relevant output lines for the commit record.\n\n---\n\n### Gate 6 – Commit Structuring\n\n**Staging rule:** Stage only doc-scope files confirmed in Gate 0.\nUse `git add \u003Cspecific-file>` for each file individually.\nNever use `git add .`, `git add -A`, or `git add --all`.\n\n**Step 6-1: Categorize changes**\n\nGroup in-scope files by change type:\n\n| Change Type | Commit Prefix | Description |\n|---|---|---|\n| Error fixes | `docs(fix):` | Broken links, syntax errors, missing images |\n| Style\u002Fformat | `docs(style):` | Terminology, tone, heading, frontmatter normalization |\n| Content update | `docs(content):` | New sections, rewritten paragraphs, expanded explanations |\n| Code-sync | `docs(sync):` | Documentation updates reflecting source code changes |\n\n**Step 6-2: Structure commits**\n\n- Create separate commits for each change type present.\n- If a file has changes spanning multiple types, split by type where possible;\n  otherwise, assign to the dominant change type.\n- Ordering: `docs(fix)` → `docs(style)` → `docs(content)` → `docs(sync)`.\n\n**Step 6-3: Write commit messages**\n\nUse Conventional Commits format. Each message must include:\n\n- What changed (affected pages\u002Fsections)\n- Why it changed (convention alignment, code-sync, error fix)\n- Scope of review (mention Convention Discovery and build verification)\n\n---\n\n## Guardrails\n\n- Do not invent or fabricate documentation content not supported by the source\n  code or existing documentation.\n- Do not silence or bypass documentation build errors.\n- Do not modify documentation tone or style without Convention Reference\n  backing.\n- Do not alter existing screenshots or images — only flag broken references.\n- If context is insufficient to determine the correct term or phrasing, ask\n  for clarification.\n- Respect existing project conventions for commit messages and structure.\n- **NEVER** use `git checkout -- \u003Cfile>`, `git restore`, `git stash`,\n  `git reset --hard`, or any other command that discards or reverts uncommitted\n  changes to files outside the current session's scope.\n- **NEVER** use `git add .`, `git add -A`, or `git add --all`. Always stage\n  files individually with `git add \u003Cspecific-file>`.\n- Working tree changes from other sessions, agents, or manual edits must be\n  left completely untouched.\n- Convention Discovery must sample from existing documentation only — never\n  use in-scope changed files as convention sources.\n- Do not auto-fix items that require content judgment (ambiguous terminology,\n  meaning-altering tone changes) without user approval.\n\n---\n\n## Failure Patterns\n\nCommon bad outputs:\n\n- Applying conventions from only 1–2 sample files, producing biased standards\n- Skipping Convention Discovery and inventing arbitrary style rules\n- Ignoring code-documentation alignment when source code was also changed\n- Lumping all documentation changes into a single undifferentiated commit\n- Fixing terminology inconsistencies without checking which form is canonical\n  in the existing corpus\n- Running build verification in the wrong directory (product root instead of\n  docs project root)\n- Auto-fixing tone in a way that changes technical meaning\n- Flagging pre-existing issues in files not modified by this session\n- Reverting or discarding uncommitted changes that belong to other sessions\n- Using `git add .` which accidentally stages out-of-scope changes\n- Treating \"ensure no unintended changes\" as \"revert unrelated files\" instead\n  of \"exclude from staging\"\n- Reporting Convention Reference without getting user confirmation, then\n  applying incorrect standards\n\n---\n\n## Example 1 (Minimal Context)\n\n**Input:**\n\n2 documentation files changed: a new \"Getting Started\" page was added, and an\nexisting \"Configuration\" page had a section rewritten. No source code changes.\n\n**Output:**\n\n1. Convention Reference: frontmatter requires `title`, `sidebar_position`,\n   `description`; headings use `##` for top-level sections; tone is 합쇼체\n   (`~합니다`); admonitions use `:::note` and `:::tip`\n2. Code-Documentation Alignment Report: skipped (no source code changes)\n3. Quality Review Findings:\n   - Error: new page missing `sidebar_position` in frontmatter\n   - Warning: \"Configuration\" page mixes \"설정값\" and \"설정 값\" (spacing)\n   - Info: \"Getting Started\" section order differs from convention\n4. Actions Taken: added `sidebar_position: 1` to frontmatter, standardized\n   \"설정값\" (no space, matching 80% of existing usage)\n5. Build Verification: `npm run build` exit 0, no warnings\n6. Commit Plan: 2 commits — (a) style fix, (b) new content\n7. Final Commit Messages:\n   - `docs(style): standardize terminology and frontmatter in configuration page`\n   - `docs(content): add getting started guide`\n\n---\n\n## Example 2 (Realistic Scenario)\n\n**Input:**\n\n8 documentation files changed across 3 categories (guides, API reference,\ntroubleshooting). 4 source code files also changed, including a renamed API\nendpoint and a new configuration option. Sidebar configuration was not updated.\n\n**Output:**\n\n1. Convention Reference: frontmatter fields `title`, `sidebar_position`,\n   `sidebar_label`, `description`, `tags`; 합쇼체 tone; features referenced\n   with English name first then Korean in parentheses (e.g., \"Dashboard\n   (대시보드)\"); `:::warning` for breaking changes, `:::tip` for best practices\n2. Code-Documentation Alignment Report:\n   - Already updated: API reference page for renamed endpoint\n   - Needs update: troubleshooting page still references old endpoint name;\n     configuration guide missing new `MAX_RETRY_COUNT` option\n   - No documentation: new internal helper function (no user-facing docs needed)\n3. Quality Review Findings:\n   - Error: 2 broken internal links (target files were reorganized last sprint)\n   - Error: 1 image reference to deleted screenshot (`old-dashboard.png`)\n   - Warning: API reference uses \"대시보드\" without English name (convention\n     violation)\n   - Warning: new guide page uses 해요체 (\"~해요\") while convention is 합쇼체\n   - Info: 3 pages missing `tags` frontmatter field\n4. Actions Taken: fixed 2 broken links, updated old endpoint references,\n   added `MAX_RETRY_COUNT` documentation, standardized bilingual term format,\n   corrected speech level to 합쇼체, added missing `tags` fields, registered\n   new pages in `sidebars.js`, flagged missing screenshot for user replacement\n5. Build Verification: `npm run build` exit 0, 1 warning (pre-existing, out\n   of scope)\n6. Commit Plan: 4 commits\n7. Final Commit Messages:\n   - `docs(fix): repair broken links and remove stale image reference`\n   - `docs(style): standardize terminology format and speech level across guides`\n   - `docs(content): add MAX_RETRY_COUNT configuration documentation`\n   - `docs(sync): update API reference and troubleshooting for endpoint rename`\n\n---\n\n## Notes\n\n**FAST MODE** (only if explicitly requested):\n\n- Gate 1 Convention Discovery limited to 5 most recent files\n- Gate 3 performs only 3a (structural) and 3d (completeness) checks\n- Gate 5 build verification skipped\n\n**Relationship with `finalize-and-commit`:**\n\nWhen both source code and documentation changed in the same session, run\n`finalize-and-commit` for source code first, then `docs-finalize-and-commit`\nfor documentation. Gate 2 of this skill reads source code diffs but does not\nmodify or commit source code files.\n\n","# Skill: Finalize Documentation and Commit (Review, Consistency, Alignment)\n\n**Type:** Execution\n\n## Purpose\n\nFinalize documentation changes for production readiness in a documentation\nproject that coexists with the product source code in the same workspace.\nWorks with any documentation framework (Docusaurus, VitePress, MkDocs, Nextra,\nplain Markdown, etc.).\n\nTasks:\n\n- Discover conventions from existing documentation\n- Verify code-documentation alignment when source code changed\n- Review format, terminology, tone, and completeness consistency\n- Validate framework-specific syntax and build integrity\n- Prepare structured commits separated by change type\n\n---\n\n## When to Use\n\n- Before committing documentation changes to a shared branch\n- Before submitting a pull request that includes documentation updates\n- After completing a documentation session that touched multiple pages\n- When source code and documentation were both modified in the same session\n- When preparing a clean commit history from messy documentation edits\n\n---\n\n## When NOT to Use\n\n- Work-in-progress drafts still actively being written\n- Trivial single-line typo fixes that need no consistency review\n- Initial documentation scaffolding or exploratory writing phases\n- Changes already reviewed and approved through another skill\n- Standalone Markdown files outside a documentation project structure\n\n---\n\n## Inputs Required\n\nDo not run this skill without:\n\n- [ ] Working tree with uncommitted or staged `.md`\u002F`.mdx` file changes\n- [ ] Access to the documentation project build command (if the framework\n  provides one)\n- [ ] Existing documentation files to derive conventions from (at least 3 pages)\n\nOptional but recommended:\n\n- [ ] Target branch context (e.g., main, release)\n- [ ] List of intended change scope (files or directories)\n- [ ] Known glossary or style guide (if any)\n\n---\n\n## Output Format\n\n1. Convention Reference (discovered patterns)\n2. Code-Documentation Alignment Report\n3. Quality Review Findings\n4. Actions Taken (auto-fixes applied)\n5. Build Verification Results\n6. Commit Plan\n7. Final Commit Messages\n\n---\n\n## Procedure\n\n### Gate 0 – Working Set Validation\n\n> **CRITICAL:** The working tree may contain changes from other agent sessions\n> or manual edits. This gate must isolate *only* the current session's changes\n> without disturbing anything else.\n\n**Step 0-1: Identify current session scope**\n\n- Review the conversation history and edit history of this session.\n- Build an explicit list of `.md`\u002F`.mdx` files that were created, modified,\n  or deleted *by this session*.\n- Separately identify source code files changed in this session (needed for\n  Gate 2).\n- If the user provided a scope list, use that as the authoritative source.\n\n**Step 0-2: Inspect full working tree state**\n\n- Run `git status` and `git diff --name-only` to enumerate all uncommitted\n  changes in the working tree.\n\n**Step 0-3: Classify changes**\n\n- **Doc-scope:** `.md`\u002F`.mdx` files that appear in both the session scope\n  (Step 0-1) and the working tree (Step 0-2).\n- **Code-scope:** Source code files changed by this session (input for Gate 2).\n- **Out-of-scope:** Files in the working tree NOT modified by this session.\n\n**Step 0-4: Protect out-of-scope changes**\n\n- **NEVER** revert, restore, checkout, stash, or discard out-of-scope changes.\n- Out-of-scope files must be left exactly as they are in the working tree.\n- The only correct action is to *exclude* them from staging (`git add`).\n\n**Step 0-5: Confirm with the user**\n\n- Present a summary:\n  - Documentation files to be reviewed and committed (doc-scope)\n  - Source code files to cross-reference (code-scope)\n  - Files left untouched (out-of-scope), if any\n- Proceed only after the user confirms the target set.\n\n---\n\n### Gate 1 – Convention Discovery\n\n> **PURPOSE:** Since no formal style guide exists, infer conventions from\n> existing documentation to use as the review baseline.\n\n**Step 1-1a: Scan documentation headers**\n\n- Read **frontmatter + first 30 lines** of 10–15 representative\n  `.md`\u002F`.mdx` files from the docs directory\n  (prioritize recently modified, high-traffic pages).\n- If fewer than 10 documentation files exist, read all available files.\n- Exclude files in the current session's change set to avoid circular\n  reference.\n- From this scan, extract: frontmatter field names, heading structure,\n  first paragraph tone\u002Fspeech level.\n\n**Step 1-1b: Deep read divergent samples**\n\n- Compare patterns extracted in Step 1-1a across all samples.\n- Identify files where patterns diverge or are ambiguous\n  (e.g., inconsistent frontmatter fields, mixed heading levels).\n- Full-read only the divergent files (typically 2–5 files) to resolve\n  ambiguity.\n- If all samples show consistent patterns in Step 1-1a, skip this step.\n\n**Step 1-2: Extract structural patterns**\n\n- Frontmatter fields and their value patterns (title, sidebar_position,\n  sidebar_label, description, tags, etc.)\n- Heading level conventions (e.g., `#` for page title only, `##` for\n  top-level sections, `###` for subsections)\n- Common section ordering patterns (e.g., Overview → Usage → Configuration\n  → Troubleshooting)\n\n**Step 1-3: Build terminology glossary**\n\n- Collect UI element names, feature names, and technical terms used\n  consistently across existing pages.\n- Note the canonical form for each term (e.g., \"저장\" not \"저장하기\",\n  \"Dashboard\" not \"대시보드\" — or vice versa, depending on existing pattern).\n- Record bilingual term pairs if the documentation uses a mixed-language\n  convention (e.g., Korean prose with English UI labels).\n\n**Step 1-4: Identify tone and style**\n\n- Determine the dominant speech level (e.g., 합쇼체 `~합니다`, 해요체\n  `~해요`, 하십시오체 `~하십시오`).\n- Identify person\u002Fvoice conventions (e.g., \"사용자는 ~합니다\" vs\n  \"~하세요\" imperative).\n- Note active vs passive voice preference.\n\n**Step 1-5: Identify documentation framework and catalog its conventions**\n\n- Detect the documentation framework in use by examining configuration files\n  (e.g., `docusaurus.config.js`, `.vitepress\u002Fconfig.*`, `mkdocs.yml`,\n  `next.config.*` for Nextra, or none for plain Markdown).\n- Catalog framework-specific syntax patterns found in existing documentation:\n  - Admonition\u002Fcallout syntax (e.g., `:::note` in Docusaurus\u002FVitePress,\n    `!!! note` in MkDocs, `> [!NOTE]` in GitHub-flavored Markdown).\n  - Component patterns (e.g., `\u003CTabs>`\u002F`\u003CTabItem>` in Docusaurus,\n    custom MDX components in Nextra).\n  - Code block language tags and annotation conventions.\n  - Custom component or shortcode usage patterns.\n\n**Step 1-6: Compile Convention Reference**\n\n- Produce a structured summary to use as the review baseline in Gates 2–3.\n- Present the Convention Reference to the user for confirmation before\n  proceeding.\n\n---\n\n### Gate 2 – Code-Documentation Alignment\n\n> **ACTIVATION:** This gate runs only if code-scope files were identified in\n> Gate 0. If no source code changed, skip to Gate 3.\n\n**Step 2-1: Analyze source code changes**\n\n- Run `git diff` on code-scope files.\n- Extract changed items: API endpoints, function signatures, component props,\n  configuration keys, CLI commands, environment variables.\n\n**Step 2-2: Map code changes to documentation**\n\n- Search across all documentation files (not just in-scope) for references to\n  the changed items using filename, import path, and keyword matching.\n- Build a mapping: `changed code item → documentation section(s) referencing it`.\n\n**Step 2-3: Identify alignment gaps**\n\nProduce an alignment report with three categories:\n\n- **Already updated:** Documentation section was modified in this session and\n  reflects the code change.\n- **Needs update:** Documentation references the changed code but was NOT\n  updated in this session.\n- **No documentation found:** Code change has no corresponding documentation\n  (flag for user decision).\n\nPresent the report to the user. \"Needs update\" items must be resolved before\nproceeding — resolution means either updating the documentation OR the user\nexplicitly acknowledging that no documentation change is needed (with reason).\n\n---\n\n### Gate 3 – Documentation Quality Review\n\nApply the Convention Reference from Gate 1 to all doc-scope files.\n\n**3a) Structural consistency**\n\n- Heading levels follow the discovered convention.\n- Frontmatter contains all expected fields with valid values.\n- Section ordering matches the established pattern.\n- No orphan headings (e.g., jumping from `##` to `####`).\n\n**3b) Terminology consistency**\n\n- Terms match the glossary from Gate 1.\n- No mixed usage of the same concept (e.g., \"저장\" vs \"저장하기\", \"Save\"\n  vs \"세이브\").\n- Proper nouns, product names, and feature names are cased consistently.\n\n**3c) Tone and style consistency**\n\n- Speech level matches the discovered convention (no mixing 합쇼체 and\n  해요체 within the same page).\n- Person\u002Fvoice is consistent (imperative vs descriptive).\n- No abrupt tone shifts between sections.\n\n**3d) Content completeness**\n\n- No TODO, TBD, FIXME, placeholder, or Lorem ipsum markers.\n- No empty sections (heading followed immediately by another heading or EOF).\n- No untranslated placeholder text if the documentation is localized.\n\n**3e) Framework-specific syntax validity**\n\n- Admonitions\u002Fcallouts properly opened and closed per the framework's syntax.\n- Framework-specific components have matching open\u002Fclose tags and required\n  attributes (if applicable).\n- Code blocks have language tags and are properly fenced.\n- MDX\u002Fcomponent imports resolve to existing components (if applicable).\n- Frontmatter YAML is valid (no syntax errors, no duplicate keys).\n\n**3f) Image and screenshot references**\n\n> **SKIP CONDITION:** Skip if no image references (`![`, `\u003Cimg`) exist\n> in any doc-scope file. Verify with a quick text search before skipping.\n\n- Every image reference (`![alt](path)` or `\u003Cimg src=\"path\">`) points to a\n  file that exists in the repository.\n- All images have non-empty alt text.\n- No stale images (referenced file was deleted or moved).\n\n**3g) Link validity**\n\n- Internal document links (relative paths) resolve to existing files.\n- Anchor links (`#section-name`) match actual heading slugs in the target\n  document.\n- No broken cross-references between documentation pages.\n\n**3h) Sidebar and navigation alignment**\n\n> **SKIP CONDITION:** Skip if no files were added or deleted in this\n> session (only modifications). Sidebar\u002Fnav changes are only relevant\n> when the file set changes.\n\n- Identify the sidebar\u002Fnavigation configuration mechanism (e.g.,\n  `sidebars.js` in Docusaurus, `_meta.json` in Nextra, `nav` in\n  `mkdocs.yml`, auto-generated from directory structure in VitePress).\n- New documentation files added in this session are registered in the\n  navigation configuration.\n- Deleted documentation files are removed from the navigation configuration.\n- Ordering metadata (e.g., `sidebar_position` in frontmatter, file ordering\n  in config) does not conflict with other pages in the same category.\n\n**Produce a Quality Review Report** organized by severity:\n\n- **Error:** Must fix before commit (broken syntax, missing images, dead links).\n- **Warning:** Should fix (terminology inconsistency, tone drift, missing\n  alt text).\n- **Info:** Optional improvement (section ordering, heading level suggestion).\n\n---\n\n### Gate 4 – Auto-Fix\n\n**Step 4-1: Apply automatic fixes**\n\nFix items that require no judgment:\n\n- Terminology standardization (replace variant forms with canonical term)\n- Heading level corrections\n- Broken relative link path repair (if the correct target is deterministic)\n- Missing frontmatter field population (using Convention Reference defaults)\n- Admonition\u002Fcode block syntax repair\n- Remove TODO\u002Fplaceholder markers in completed sections\n\n**Step 4-2: Present judgment-required items**\n\nItems that need user input:\n\n- Content gaps identified in Gate 2 (code-doc alignment)\n- Ambiguous terminology choices (when two forms are equally common)\n- Tone corrections that alter meaning\n- Missing images that need creation or replacement\n\n**Step 4-3: Summarize changes**\n\n- Present a before\u002Fafter diff summary of all auto-fixes.\n- Get user confirmation before proceeding.\n\n---\n\n### Gate 5 – Build Verification\n\n**Step 5-1: Run documentation build**\n\n- Detect the build command from the project configuration (e.g.,\n  `package.json` scripts, `Makefile`, or framework CLI).\n- Execute the build command from the documentation project root.\n- Capture full output including warnings.\n\n**Step 5-2: Evaluate results**\n\n- **Build succeeds with no warnings:** Proceed to Gate 6.\n- **Build succeeds with warnings:** Report warnings to user. Fix if they\n  relate to in-scope files; proceed if warnings are pre-existing.\n- **Build fails:** Analyze error, apply fix, return to Gate 4 Step 4-1.\n\n**Step 5-3: Record evidence**\n\n- Build pass = final proof that documentation syntax and link references are\n  valid.\n- Save build exit code and relevant output lines for the commit record.\n\n---\n\n### Gate 6 – Commit Structuring\n\n**Staging rule:** Stage only doc-scope files confirmed in Gate 0.\nUse `git add \u003Cspecific-file>` for each file individually.\nNever use `git add .`, `git add -A`, or `git add --all`.\n\n**Step 6-1: Categorize changes**\n\nGroup in-scope files by change type:\n\n| Change Type | Commit Prefix | Description |\n|---|---|---|\n| Error fixes | `docs(fix):` | Broken links, syntax errors, missing images |\n| Style\u002Fformat | `docs(style):` | Terminology, tone, heading, frontmatter normalization |\n| Content update | `docs(content):` | New sections, rewritten paragraphs, expanded explanations |\n| Code-sync | `docs(sync):` | Documentation updates reflecting source code changes |\n\n**Step 6-2: Structure commits**\n\n- Create separate commits for each change type present.\n- If a file has changes spanning multiple types, split by type where possible;\n  otherwise, assign to the dominant change type.\n- Ordering: `docs(fix)` → `docs(style)` → `docs(content)` → `docs(sync)`.\n\n**Step 6-3: Write commit messages**\n\nUse Conventional Commits format. Each message must include:\n\n- What changed (affected pages\u002Fsections)\n- Why it changed (convention alignment, code-sync, error fix)\n- Scope of review (mention Convention Discovery and build verification)\n\n---\n\n## Guardrails\n\n- Do not invent or fabricate documentation content not supported by the source\n  code or existing documentation.\n- Do not silence or bypass documentation build errors.\n- Do not modify documentation tone or style without Convention Reference\n  backing.\n- Do not alter existing screenshots or images — only flag broken references.\n- If context is insufficient to determine the correct term or phrasing, ask\n  for clarification.\n- Respect existing project conventions for commit messages and structure.\n- **NEVER** use `git checkout -- \u003Cfile>`, `git restore`, `git stash`,\n  `git reset --hard`, or any other command that discards or reverts uncommitted\n  changes to files outside the current session's scope.\n- **NEVER** use `git add .`, `git add -A`, or `git add --all`. Always stage\n  files individually with `git add \u003Cspecific-file>`.\n- Working tree changes from other sessions, agents, or manual edits must be\n  left completely untouched.\n- Convention Discovery must sample from existing documentation only — never\n  use in-scope changed files as convention sources.\n- Do not auto-fix items that require content judgment (ambiguous terminology,\n  meaning-altering tone changes) without user approval.\n\n---\n\n## Failure Patterns\n\nCommon bad outputs:\n\n- Applying conventions from only 1–2 sample files, producing biased standards\n- Skipping Convention Discovery and inventing arbitrary style rules\n- Ignoring code-documentation alignment when source code was also changed\n- Lumping all documentation changes into a single undifferentiated commit\n- Fixing terminology inconsistencies without checking which form is canonical\n  in the existing corpus\n- Running build verification in the wrong directory (product root instead of\n  docs project root)\n- Auto-fixing tone in a way that changes technical meaning\n- Flagging pre-existing issues in files not modified by this session\n- Reverting or discarding uncommitted changes that belong to other sessions\n- Using `git add .` which accidentally stages out-of-scope changes\n- Treating \"ensure no unintended changes\" as \"revert unrelated files\" instead\n  of \"exclude from staging\"\n- Reporting Convention Reference without getting user confirmation, then\n  applying incorrect standards\n\n---\n\n## Example 1 (Minimal Context)\n\n**Input:**\n\n2 documentation files changed: a new \"Getting Started\" page was added, and an\nexisting \"Configuration\" page had a section rewritten. No source code changes.\n\n**Output:**\n\n1. Convention Reference: frontmatter requires `title`, `sidebar_position`,\n   `description`; headings use `##` for top-level sections; tone is 합쇼체\n   (`~합니다`); admonitions use `:::note` and `:::tip`\n2. Code-Documentation Alignment Report: skipped (no source code changes)\n3. Quality Review Findings:\n   - Error: new page missing `sidebar_position` in frontmatter\n   - Warning: \"Configuration\" page mixes \"설정값\" and \"설정 값\" (spacing)\n   - Info: \"Getting Started\" section order differs from convention\n4. Actions Taken: added `sidebar_position: 1` to frontmatter, standardized\n   \"설정값\" (no space, matching 80% of existing usage)\n5. Build Verification: `npm run build` exit 0, no warnings\n6. Commit Plan: 2 commits — (a) style fix, (b) new content\n7. Final Commit Messages:\n   - `docs(style): standardize terminology and frontmatter in configuration page`\n   - `docs(content): add getting started guide`\n\n---\n\n## Example 2 (Realistic Scenario)\n\n**Input:**\n\n8 documentation files changed across 3 categories (guides, API reference,\ntroubleshooting). 4 source code files also changed, including a renamed API\nendpoint and a new configuration option. Sidebar configuration was not updated.\n\n**Output:**\n\n1. Convention Reference: frontmatter fields `title`, `sidebar_position`,\n   `sidebar_label`, `description`, `tags`; 합쇼체 tone; features referenced\n   with English name first then Korean in parentheses (e.g., \"Dashboard\n   (대시보드)\"); `:::warning` for breaking changes, `:::tip` for best practices\n2. Code-Documentation Alignment Report:\n   - Already updated: API reference page for renamed endpoint\n   - Needs update: troubleshooting page still references old endpoint name;\n     configuration guide missing new `MAX_RETRY_COUNT` option\n   - No documentation: new internal helper function (no user-facing docs needed)\n3. Quality Review Findings:\n   - Error: 2 broken internal links (target files were reorganized last sprint)\n   - Error: 1 image reference to deleted screenshot (`old-dashboard.png`)\n   - Warning: API reference uses \"대시보드\" without English name (convention\n     violation)\n   - Warning: new guide page uses 해요체 (\"~해요\") while convention is 합쇼체\n   - Info: 3 pages missing `tags` frontmatter field\n4. Actions Taken: fixed 2 broken links, updated old endpoint references,\n   added `MAX_RETRY_COUNT` documentation, standardized bilingual term format,\n   corrected speech level to 합쇼체, added missing `tags` fields, registered\n   new pages in `sidebars.js`, flagged missing screenshot for user replacement\n5. Build Verification: `npm run build` exit 0, 1 warning (pre-existing, out\n   of scope)\n6. Commit Plan: 4 commits\n7. Final Commit Messages:\n   - `docs(fix): repair broken links and remove stale image reference`\n   - `docs(style): standardize terminology format and speech level across guides`\n   - `docs(content): add MAX_RETRY_COUNT configuration documentation`\n   - `docs(sync): update API reference and troubleshooting for endpoint rename`\n\n---\n\n## Notes\n\n**FAST MODE** (only if explicitly requested):\n\n- Gate 1 Convention Discovery limited to 5 most recent files\n- Gate 3 performs only 3a (structural) and 3d (completeness) checks\n- Gate 5 build verification skipped\n\n**Relationship with `finalize-and-commit`:**\n\nWhen both source code and documentation changed in the same session, run\n`finalize-and-commit` for source code first, then `docs-finalize-and-commit`\nfor documentation. Gate 2 of this skill reads source code diffs but does not\nmodify or commit source code files.\n\n",{"name":5,"license":15,"metadata":43,"description":46,"compatibility":47},{"type":35,"category":30,"maturity":44,"estimated_time":45},"stable","15 min","Finalize documentation changes for production readiness by discovering existing conventions, verifying code-doc alignment, reviewing format\u002Fterminology\u002Ftone consistency, and structuring clean commits. Counterpart of finalize-and-commit for documentation projects.\n",[48,49],"Claude Code","Cursor","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fcomsky\u002Fremy-skill-recipes\u002Fdocs-finalize-and-commit",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill docs-finalize-and-commit",{"tool":65,"command":66},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill docs-finalize-and-commit",{"tool":68,"command":69},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill docs-finalize-and-commit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fcomsky\u002Fremy-skill-recipes\u002Fdocs-finalize-and-commit\u002FSKILL.md",true,[],[74,83,92,101,107,113],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[80,81,82],"model","model hierarchy","model hierarchy skill",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[89,90,91],"MCP","zoom","zoom mcp",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[98,99,100,90],"sdk","zoom apps sdk","apps",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[103],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[109],{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[115]]