Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

auto-docs汽车文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

186

周安装

8

GitHub Stars

公开资料未说明

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:auto-docs(汽车文档)
来源仓库:https://github.com/spaghetti-coder-yyz/skills
仓库路径:skills/auto-docs
安装命令:
npx skills add https://github.com/spaghetti-coder-yyz/skills --skill auto-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/spaghetti-coder-yyz/skills --skill auto-docs

简介

auto-docs 自动生成技术文档并绑定源码文件,实现文档与代码的双向同步更新。

  • 适合需要持续维护 README、API 说明或架构图的团队,减少手动更新遗漏风险。
  • 首次使用时需手动安装 .cursor/rules/documentation-sync.mdc 规则文件,后续编辑自动触发更新。
  • 文档输出至 /docs 目录,并在源文件头部添加 @docs 引用标记,便于交叉定位。
  • 注意不要将未经验证的信息写入文档,尤其涉及对外发布的文案需二次核对准确性。

SKILL.md

Auto-Docs

Creates technical docs in /docs, stamps source files with @docs back-references, and self-installs a sync rule so future edits to those files automatically trigger doc updates.

Step 0 — Self-install the sync rule (once per project)

Before writing any documentation, check if .cursor/rules/documentation-sync.mdc exists in the project root.

If it does not exist, create it now by reading rule-template.md and writing its contents to .cursor/rules/documentation-sync.mdc. Tell the user: "Installed documentation-sync rule for this project."

If it already exists, skip this step silently.


Step 1 — Determine filename and topic

  • Ask the user what is being documented if not already clear.
  • Choose a kebab-case filename: <short-topic-slug>.md
  • Save to /docs/<filename>.md

Step 2 — Write the document

Use this exact structure:

# <Title: clear, descriptive>

**Date:** YYYY-MM-DD
**Author:** Coding Assistant
**Status:** Draft | Active | Deprecated

---

## Summary

One or two sentences describing what this document covers and who it is for.

---

## Overview

Purpose, context, and scope of the feature, API, or system.

---

## Architecture / Flow

[Mermaid diagram — see Step 3]

---

## Key Concepts

Bullet-point list of important terms, types, or patterns.

---

## Usage Examples

\`\`\`typescript
// Concrete example
\`\`\`

---

## API Reference

Function signatures, parameters, return types, and side effects (omit if not applicable).

---

## Related Files

| File              | Role                                |
| ----------------- | ----------------------------------- |
| `path/to/file.ts` | What this file does in this context |

---

## References

Links to related `/docs/*.md` files or external documentation.

Step 3 — Mermaid diagrams

Include a diagram whenever there is a flow, relationship, or state to describe. Choose the right type:

DiagramUse when
flowchart TDData flow or processing steps
sequenceDiagramRequest/response or service-to-service calls
erDiagramDatabase table relationships
stateDiagram-v2Status transitions or state machines

Mermaid syntax rules (follow strictly)

  • Node labels containing [], (), {}, /, or " MUST be wrapped in double-quotes: A["label with [] or ()"]
  • Edge labels containing [], (), /, or special characters MUST be quoted: G -- "null / undefined" --> J
  • Diamond nodes {label} must NOT contain parentheses inside the braces — use plain words only: ✅ {showIf returns true?}{Evaluate showIf(fields)}
  • Do NOT use backticks, colons, or angle brackets inside any node or edge label.
  • Prefer plain descriptive English in labels over code expressions.

Step 4 — Write full JSDoc and add @docs back-reference to every related source file

For every file in the Related Files table:

  1. Read the full file to understand its purpose, behaviour, key functions, dependencies, and any files that depend on it.
  2. Write or replace the file-level JSDoc block at the top of the file. The JSDoc must describe the file broadly — not just in the context of the feature being documented — so it remains accurate as the codebase grows. Include:

- @description — what the file does and its role in the overall system - @behavior — key steps, logic, or side effects (omit if trivial) - @depends-on — other files or services this file relies on (excluding standard library imports) - @depended-by — files that import or call into this file - @example — usage example for hooks, actions, utilities, or reusable modules - @docs — path to the linked documentation file

  1. If the file already has a JSDoc, update it rather than replace it — preserve any existing tags that are still accurate and add missing ones.

JSDoc template:

/**
 * @description <What this file does and its role in the system.>
 *
 * @behavior
 * - <Key step or behaviour 1>
 * - <Key step or behaviour 2>
 *
 * @depends-on <path/to/dependency.ts>, <ExternalService>
 * @depended-by <path/to/consumer.ts>
 *
 * @example
 * // How to use this module
 * import { something } from './this-file'
 * something()
 *
 * @docs /docs/<filename>.md
 */

Omit any tag that is not applicable (e.g. skip @example for a page component, skip @behavior for a simple config file).

Confirm to the user which files were updated.


Step 5 — Verification checklist

  • Saved to /docs/<filename>.md
  • Has title, date, and summary
  • Mermaid diagram included (if warranted)
  • Usage examples included
  • Related Files table complete
  • Every listed source file has a @docs tag in its JSDoc
  • documentation-sync.mdc rule exists in .cursor/rules/
  • Mermaid diagram self-reviewed: no () inside {} nodes, no unquoted [] or / in labels

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.14%
按下载量换算23

Claude

29.13%
按下载量换算19

Cursor

16.42%
按下载量换算11

Gemini CLI

8.39%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills