AGENT SKILL

docs

Generate or update public documentation from source code. Use when the user says "/docs", wants to update docs, or asks to generate documentation for the project.

License 许可
Apache-2.0
最近更新
2026-04-27
Stars
★ 6
Forks
2

01 前言 Front Matter

name
docs
description
Generate or update public documentation from source code. Use when the user says "/docs", wants to update docs, or asks to generate documentation for the project.

02 资源文件 5

03 SKILL.md 正文

What this skill does

Reviews all public interfaces (CLI, REST API, MCP tools, skills, agents) and generates or updates documentation in docs/ and the README.

Steps

1. Inventory public interfaces

Scan the codebase for all public-facing surfaces:

CLI commands — read charlieverse/cli/main.py to find all registered commands/typers, then read each command file for arguments, options, and help text.

REST API endpoints — read charlieverse/server.py and find all @mcp.custom_route() decorators. Extract method, path, and any docstrings.

MCP tools — read charlieverse/server.py and find all @mcp.tool decorators. Extract tool name, parameters (from type hints), and docstrings.

Bundled skills — run charlie skill list --json and read each SKILL.md for name, description, and usage.

Bundled agents — scan prompts/tools/*.md and prompts/cli/*.md for agent definitions. Extract name, description from frontmatter.

2. Check existing docs

Read docs/ directory if it exists. Compare against the inventory to find:

  • New interfaces not yet documented
  • Existing docs that are stale (interface changed since doc was written)
  • Docs for interfaces that no longer exist

3. Generate/update docs

Create or update these files:

docs/cli.md — Full CLI reference. For each command:

  • Command and subcommands
  • Arguments and options with types and defaults
  • Description
  • Examples

docs/api.md — REST API reference. For each endpoint:

  • Method + path
  • Request body / query params
  • Response format
  • Description

docs/mcp-tools.md — MCP tool reference. For each tool:

  • Tool name
  • Parameters with types
  • Return format
  • Description

docs/skills.md — Skills reference. For each bundled skill:

  • Name and description
  • Usage / argument hint
  • What it does

docs/agents.md — Agent reference. For each bundled agent:

  • Name and description
  • What it's for
  • How to use it

4. Update README

Read README.md. Update these sections (create if missing):

  • Feature list (should reflect current capabilities)
  • CLI quick reference (table of commands)
  • Link to full docs in docs/

Don't rewrite the whole README — just update the sections that reference interfaces.

5. Commit

git add docs/ README.md
charlie-commit -m "Update documentation for public interfaces

Charlie ? <charlie@charlieverse.ai>"

Rules

  • Write docs for humans, not AI. Concise, scannable, with examples.
  • Use tables for parameter lists.
  • Don't document internal/private interfaces.
  • If an interface has no docstring, document it from the code behavior and flag it as needing a docstring.
  • Keep the README lean — point to docs/ for details.

04 同仓库更多 Skills

Charlieverse-ai
Charlieverse-ai/charlieverse

trick

Run Charlie tricks by name or path. Use when the user says "/trick", wants to run a trick, list available tricks, or execute a skill file. Also trigger when the user mentions running a specific trick by name (e.g., "run the session-save trick", "run ship", "do the commit trick").

★ 6
Charlieverse-ai
Charlieverse-ai/charlieverse

research

Research a topic and save findings to Charlieverse knowledge. Use whenever the user wants to research something, look up documentation, investigate a library or tool, explore a concept, or asks "what do you know about X". Also trigger when the user says "/research", wants to build up knowledge about a subject, or asks you to "look into" something — even if they don't use the word "research" explicitly.

资料检索与研究Skill与智能体开发
★ 6
Charlieverse-ai
Charlieverse-ai/charlieverse

trick

Run Charlie tricks by name or path. Use when the user says "/trick", wants to run a trick, list available tricks, or execute a skill file. Also trigger when the user mentions running a specific trick by name (e.g., "run the session-save trick", "run ship", "do the commit trick").

Skill与智能体开发
★ 6
Charlieverse-ai
Charlieverse-ai/charlieverse

research

Research a topic and save findings to Charlieverse knowledge. Use whenever the user wants to research something, look up documentation, investigate a library or tool, explore a concept, or asks "what do you know about X". Also trigger when the user says "/research", wants to build up knowledge about a subject, or asks you to "look into" something — even if they don't use the word "research" explicitly.

资料检索与研究
★ 6
Charlieverse-ai
Charlieverse-ai/charlieverse

copilot

Run a task through GitHub Copilot CLI. Use when the user says "/copilot", wants to delegate work to Copilot, or mentions running something through Copilot. Also trigger when the user wants to use Copilot for a task.

★ 6
Charlieverse-ai
Charlieverse-ai/charlieverse

codex

Run a task through OpenAI Codex CLI. Use when the user says "/codex", wants to delegate work to Codex, or mentions running something through Codex. Also trigger when the user wants to use an OpenAI model for a task.

★ 6