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

update-vitepress-docs

VitePress documentation workflow for Software Metrics Machine docs under docs/vitepress. Use when creating, updating, reviewing, or restyling SMM documentation pages, especially feature docs that must keep CLI terminal examples and dashboard views/screenshots in sync. Covers Markdown style, VitePress tabs, command examples, dashboard screenshots, sidebar links, and docs validation. USE FOR: docs/vitepress, VitePress docs, documentation style, CLI docs, dashboard docs, screenshots, feature pages. DO NOT USE FOR: application code changes unless needed to verify documented behavior.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.3 KB

SKILL.md(원문)

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

Update VitePress Docs

Scope

Use this skill for documentation changes under docs/vitepress. The docs should teach the same feature from two angles:

  • CLI: how the behavior looks from the terminal, with copyable smm commands and realistic output or option context.
  • Dashboard: how the same behavior appears in the web UI, with route names, filter behavior, and screenshots when a visual exists.

Keep pages practical and user-facing. Prefer concrete workflows, exact commands, stable screenshots, and short explanations over broad marketing copy.

Documentation Map

  • docs/vitepress/features/*.md: dashboard feature pages and metric pages. These usually need CLI/dashboard parity.
  • docs/vitepress/github/*.md, docs/vitepress/codemaat/*.md, provider pages: data collection and integration flows. Keep CLI commands explicit and link to feature/dashboard pages for visualization.
  • docs/vitepress/tools/*.md: utility command docs.
  • docs/vitepress/features/dashboard.md: shared dashboard behavior, filters, saved views, date/timezone behavior, and URL format.
  • docs/vitepress/public/dashboard/**: dashboard screenshots used by feature pages.
  • docs/vitepress/.vitepress/config.mts: sidebar and navigation. Update it when adding or moving pages.

Workflow

  1. Inspect nearby docs before editing. Match the closest feature/provider page instead of inventing a new structure.
  2. Identify whether the change affects CLI, dashboard, or both. If both surfaces exist, document both in the same feature section.
  3. Verify command names and flags from source code or existing tests before writing examples.
  4. Verify dashboard routes, filters, screenshot paths, and terminology from the webapp or existing docs.
  5. Update sidebar links in docs/vitepress/.vitepress/config.mts when adding or renaming pages.
  6. Run the docs build as the final, mandatory step after every change (see Validation). This catches frontmatter errors, broken links, and malformed tabs before they reach CI.

Page Style

  • Use sentence-case headings after the page title, except product names and command names.
  • Keep introductions short: one paragraph that says what the page helps the reader do.
  • Use active voice and concrete nouns. Prefer "Run smm prs fetch" over "The command can be executed".
  • Use Software Metrics Machine or SMM consistently; use smm only for the CLI binary.
  • Do not over-explain obvious Markdown, UI controls, or command syntax.
  • Prefer stable examples with fixed dates, repository names, and project names.
  • Wrap commands in fenced bash blocks. Wrap dashboard URLs and API query examples in text blocks when they are not shell commands.
  • Use tables for option references only when the options are central to the page. Keep wide tables concise.
  • Link to shared dashboard behavior with [Dashboard](./dashboard.md) from feature pages or the correct relative path from other folders.

CLI and dashboard parity

For feature pages, keep each metric or workflow section synchronized:

  1. Name the user task or metric.
  2. Explain where it appears in the dashboard tab.
  3. Show the dashboard screenshot when one exists.
  4. Show the equivalent CLI command.
  5. Document shared filters once, then reference them from each metric section.

Use VitePress tabs when a section naturally compares visual and terminal usage. Always use the == title syntax inside :::tabs — never use the ::::tabs / :::tab nesting pattern.

:::tabs key:cli
== Dashboard
![Readable dashboard alt text](/dashboard/path/to-screenshot.png)

The dashboard card appears in the Feature tab and uses the shared date filters.

== CLI
```bash
smm feature command --start-date 2026-01-01 --end-date 2026-01-31

:::


### Tab rules (mandatory)

- **Open with `:::tabs key:cli` (3 colons)** and close with `:::` (3 colons). Never use `::::tabs` (4 colons) or `::::` closers.
- **Use `== Title` for inner tab panes.** Never use `:::tab Title` or `:::tab` directives.
- Do not mix `::::tabs` / `:::tab` with `:::tabs` / `== Title` in the same file. Every `:::tabs` block must use the `==` syntax throughout.
- The `key:cli` attribute synchronizes tab selection across blocks on the same page — always include it.
- No blank `:::` (3 colons) lines inside the block — the inner panes are delimited by `==` headings, not by closing `:::` directives.
- Verify with `rg ':::tab '` and `rg '::::tabs'` that no wrong patterns remain in any `.md` file under `docs/vitepress/`.

When no screenshot exists, still describe the dashboard location and route. Do not invent screenshots or image paths.

## Dashboard Screenshot Rules

- Store dashboard screenshots under `docs/vitepress/public/dashboard/**`.
- Reference screenshots with root-relative paths such as `/dashboard/pipelines/runs_in_minutes.png`.
- Use alt text that names the chart or page, not generic text like "screenshot".
- Keep screenshot names stable and descriptive with lowercase words separated by underscores or hyphens, following nearby files.
- If a documented dashboard state depends on filters, mention the relevant filters near the screenshot.

## CLI Example Rules

- Prefer command examples that can be copied as-is.
- Include `--project` when the example depends on a named repository or multi-project setup.
- Include `--start-date`, `--end-date`, and timezone context when date boundaries matter.
- Keep long commands readable with backslash line continuations.
- Do not document flags from memory. Confirm command names and options from CLI source, tests, or existing docs first.
- If showing output, keep it short and stable. Avoid transient IDs, local absolute paths, and machine-specific timings.

## Validation

Always finish by running the VitePress build — it is the authoritative check and catches YAML frontmatter errors (e.g. a missing closing `---`), broken relative links, bad image paths, and invalid VitePress tabs/sidebar config. Do not skip it, even for small edits.

Common docs commands:

```bash
cd docs/vitepress
npm run docs:build

If dependencies are missing or the build cannot run because network access is required, report that clearly and state which files were checked manually.

Use the smallest additional validation that covers the change:

  • Markdown-only edits: inspect rendered-sensitive syntax manually, especially tabs, fenced code blocks, tables, and links.
  • New or moved pages: verify docs/vitepress/.vitepress/config.mts sidebar entries.
  • Tab pattern audit: after any change that adds or modifies VitePress tabs, verify no wrong patterns exist:
rg ':::tab ' docs/vitepress/          # must return nothing
rg '::::tabs' docs/vitepress/         # must return nothing
rg '^:::$' docs/vitepress/ | wc -l   # must equal the count of ':::tabs key:cli' lines

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Acceptance testing workflow for the Software Metrics Machine CLI e2e suite. Use when writing, extending, debugging, or reviewing bashunit acceptance tests under apps/cli/e2e, including command help checks, cached fixture flows, GitHub MSW-backed flows, local git repository fixtures, SMM_STORE_DATA_AT workspaces, and pnpm run test:cli:acceptance. USE FOR: CLI acceptance tests, e2e tests, bashunit, apps/cli/e2e, command smoke tests, persisted CLI output tests. DO NOT USE FOR: unit tests or Vitest tests (use tdd skill), linting (use lint skill), webapp browser tests.

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

Side-Projects-4-Fun/software-metrics-machine152026년 10월 18일 업데이트

lint

무료

Linting and code quality workflow for Software Metrics Machine. Covers ESLint 9.x flat config, Prettier formatting, lint-staged (auto-fix on commit), per-workspace configs, TypeScript strict mode, and all lint commands. USE FOR: lint, eslint, prettier, format, code style, linting, lint fix, auto-fix, check style, code quality, lint-staged, typecheck, type-check, tsc noEmit. DO NOT USE FOR: writing tests (use tdd skill), building (use build commands), commit hooks setup.

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

Side-Projects-4-Fun/software-metrics-machine152026년 10월 18일 업데이트

tdd

무료

Test-Driven Development workflow for Software Metrics Machine. Covers test frameworks (Vitest 4.x for CLI/REST/core/utils, Jest 30.x for webapp), test patterns (describe/it, builder pattern, mocks via vi.fn), test commands, coverage requirements, and the Red-Green-Refactor cycle. USE FOR: write tests, run tests, test this, add tests, testing, coverage, TDD, test-driven development, vitest, jest, test pattern, test convention. DO NOT USE FOR: linting (use lint skill), building (use build commands directly), debugging production issues.

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

Side-Projects-4-Fun/software-metrics-machine152026년 10월 18일 업데이트

Side-Projects-4-Fun의 스킬 모두 보기

이 스킬의 문제 신고