AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Docs

skill-yulonghe97-ystack-docs · by yulonghe97

>

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-yulonghe97-ystack-docs

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-yulonghe97-ystack-docs)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Docs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

/docs — Update Documentation

You update documentation to reflect completed, verified work. Docs describe what the system IS — never what's planned.

Phase 0: Detect What Changed

  1. Get the diff to understand what code changed:

``bash # Resolve the repo's default branch dynamically BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||' || echo main) git diff "$BASE"...HEAD --stat ``

  1. Read .context//DECISIONS.md to understand the feature intent.
  1. Read .context//PLAN.md for the success criteria — these tell you what was built.
  1. Read the progress file.ystack/progress/.md for the affected module. Features marked [x] are completed and may need doc updates. Features still [ ] must NOT be documented. The progress file is the gate between implementation and documentation.

Phase 1: Map Changes to Docs

Identify which documentation pages are affected.

  1. Read the module registry (.ystack/config.json) to find the module-to-doc mapping. Match changed file paths against module scope globs. If no registry exists, fall back to scanning docs/src/content/_meta.ts.
  1. Map changed code paths to doc pages:

| Code path pattern | Likely doc page | |-------------------|----------------| | packages// | docs/src/content// or docs/src/content/shared// | | apps// | docs/src/content// | | packages/db/src/schema* | Data model sections across affected modules | | apps/api/src/routes/ | API module + any module whose API changed |

  1. Read the affected doc pages before modifying them. Understand what's currently documented.

Phase 2: Update Affected Pages

For each affected doc page, update ONLY the sections impacted by the new feature.

What to update:

| Change type | Doc section to update | |-------------|----------------------| | New database column/table | Data Model section — add to table/columns/notes table | | New API endpoint or field | Dependencies section — update "Provides" list, or relevant sub-module page | | New UI component or page | Sub-modules table — add or update entry | | New module dependency | Dependencies section — update "Needs" table | | Changed flow or behavior | Flows section — update Mermaid diagram and numbered explanation | | New sub-module | Sub-modules table + create new sub-module page if significant |

What NOT to update:

  • Sections unrelated to the feature
  • "Purpose" section (unless the module's core responsibility changed)
  • "Team" section
  • "Scope" section (unless something moved in/out of scope)

Writing rules:

  • Present tense, active voice: "The gateway normalizes messages" not "Messages will be normalized"
  • Purpose over implementation: describe what it does and why, not how the code works
  • No version language: no "v1", "v2", "Phase 1", "new", "recently added"
  • No planning language: no "planned", "coming soon", "TODO", "will be", "in progress"
  • Link, don't recap: reference other pages instead of repeating their content
  • Use cross-references: [Module Name](/module-path) for every module mention

Diagram rules (if updating Mermaid diagrams):

  • Use the right type: sequenceDiagram for multi-actor flows, graph TB/LR for architecture, erDiagram for data models
  • Label edges: -->|"what flows"| not just -->
  • Keep under 20 nodes — split if bigger
  • Every diagram needs a text explanation below it

Phase 3: Update Navigation

If you created a new doc page, update the navigation config for the docs framework in use:

Nextra — add to _meta.ts:

// docs/src/content//_meta.ts
export default {
  index: "Overview",
  "existing-page": "Existing Page",
  "new-page": "New Page",        // ← add here, object key order = sidebar order
};

Fumadocs — add to meta.json or use frontmatter ordering:

// content/docs//meta.json
{
  "pages": ["index", "existing-page", "new-page"]
}

Check .ystack/config.json docs.framework to know which format to use.

Phase 4: Update Structural Files

If the feature changed module responsibilities, dependencies, or structure, also update:

  1. Root CLAUDE.md — if the Structure section or Commands changed
  2. Root AGENTS.md — mirror CLAUDE.md changes

Most features don't require root structural file updates. Only update these if the module's role or boundaries shifted.

Phase 5: Update Per-Package Context Files

For each module whose code changed in the current diff, update its AGENTS.md (and CLAUDE.md if .ystack/config.json has "runtime": "claude-code").

If the file doesn't exist yet, create it. If it exists, update it.

What to include

Read the package's actual code and populate:

  1. Key Files — list the important entry points with one-line descriptions:

```markdown ## Key Files

  • src/index.ts — public API surface
  • src/schema.ts — database schema (drizzle)
  • src/routes/payments.ts — HTTP handlers
  • src/errors.ts — domain error types

```

  1. Conventions — patterns observed in the code, stated as rules:

```markdown ## Conventions

  • All exports go through src/index.ts
  • Error types defined in src/errors.ts, re-thrown at API boundary
  • Tests colocated: src/__tests__/.test.ts
  • Zod schemas validate all external input

```

Rules

  • References, not explanations. Point to files and state patterns. Don't explain what the code does — that's what the docs site is for.
  • Max ~30 lines. If it's longer, you're writing too much.
  • Only update for changed modules. Don't rewrite every package's context file on every run.
  • No stale content. If a file was renamed or removed, update the reference. If a convention changed, update the rule.
  • CLAUDE.md mirrors AGENTS.md unless there are Claude-specific hints to add (e.g., "use Agent tool for parallel execution in /go").

Phase 6: Verify

  1. Check that all cross-reference links point to existing pages:

``bash # Extract links from updated docs and verify targets exist grep -oP '\[.*?\]\((/[^)]+)\)' docs/src/content//*.mdx ``

  1. Confirm no planning language leaked in:

``bash grep -i -E '(coming soon|planned|todo|will be|in progress|phase [0-9])' docs/src/content//*.mdx ``

  1. Present a summary of what was updated:

``` ## Documentation Updates

### Modified

  • docs/src/content/shared/payments/index.mdx
  • Added refundReason to Data Model table
  • Updated Refund Flow sub-module description

### Created

  • (none)

### Structural files

  • (no changes needed)

```


Delegating to Existing Skills

If the project has its own documentation skills (e.g., docs-update, docs-module, docs-page), prefer delegating to them. They know the project-specific conventions.

  • Updating existing pages → delegate to docs-update if available
  • Creating a new module's docs → delegate to docs-module if available
  • Writing a single new page → delegate to docs-page if available

If no project-specific doc skills exist, follow the process above.


What This Skill Does NOT Do

  • Does not document planned features. Only completed, verified work.
  • Does not rewrite entire pages. Updates only affected sections.
  • Does not create module scaffolds. That's /scaffold.
  • Does not create PRs. That's /pr.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.