create-rule
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Creates task-oriented technical documentation with progressive disclosure. Use when writing READMEs, API docs, architecture docs, or markdown documentation. Also use this skill at the END of any completed reverse engineering, penetration testing, CTF, or security analysis task
Claude Code
$ npx -y skills add coco-research/coco --skill docs-generator --agent claude-code
Codex
$ npx skills add coco-research/coco --skill docs-generator -a codex -y
Cursor
$ npx skills add coco-research/coco --skill docs-generator -a cursor -y
Gemini CLI
$ npx skills add coco-research/coco --skill docs-generator -a gemini-cli -y
GitHub Copilot
$ npx skills add coco-research/coco --skill docs-generator -a github-copilot -y
OpenCode
$ npx skills add coco-research/coco --skill docs-generator -a opencode -y
Windsurf
$ npx skills add coco-research/coco --skill docs-generator -a windsurf -y
name: docs-generator description: | Creates task-oriented technical documentation with progressive disclosure. Use when writing READMEs, API docs, architecture docs, or markdown documentation. Also use this skill at the END of any completed reverse engineering, penetration testing, CTF, or security analysis task to generate a formal report in the user's project directory. Trigger keywords: 写报告, 写文档, 出报告, writeup, 技术文档, report, documentation. user-invocable: true
当逆向/渗透/CTF/安全分析任务完成后,本 skill 负责在**用户项目目录**生成正式技术文档。
1. 逆向任务完成,已产出核心结论(算法还原、签名破解、绕过方案等) 2. 渗透测试完成,已发现并验证漏洞 3. CTF 题目解出,已拿到 flag 4. 用户明确要求"写一份报告/文档/writeup"
| 任务类型 | 使用模板 | |---------|---------| | APK/二进制/so 逆向 | `references/security-report-templates.md` → 逆向工程报告 | | 渗透测试/漏洞挖掘 | `references/security-report-templates.md` → 渗透测试报告 | | CTF 解题 | `references/security-report-templates.md` → CTF Writeup | | JS/Web 签名逆向 | `references/security-report-templates.md` → 签名逆向报告 | | 恶意软件 / APT / 病毒分析报告 | `references/security-report-templates.md` + **`references/vendor-report-rules.md`** | | 通用技术文档 | `references/templates.md` → README / API 文档 |
安全类正式报告 **MUST** 读取 `references/vendor-report-rules.md`(只取结构,不抄厂商原文)。仅在任务证据或用户明确要求时选择厂商 flavor;普通逆向和其他任务使用 `flavor = null`。
| Flavor / Overlay | 何时用 | 主参考骨架 | |------------------|--------|------------| | `malware` | 明确恶意样本、木马、白加黑、钓鱼投毒 | 火绒式:概述→流程→样本分析→应急处置→IOC | | `apt` | APT/战役/团伙/多阶段感染链/行业定向 | 卡巴斯基 Securelist 式:摘要→感染链→调查叙事→Interesting findings→技术分析→检测缓解→IOC | | `flavor = null` | 普通 APK/ELF/PE/Mach-O 逆向、算法/固件分析、渗透 / CTF / JS 签名 | 原任务模板 + Base 通用元素;不套 malware/APT 专属章节 | | thin `vuln` | 用户明确要求漏洞/补丁/CVE 技术分析 | 概述→影响/复现→崩溃与补丁分析→防护建议(叠加在 null 上,非第 3 默认全文 flavor) |
原则:**模板在精不在多** —— 仅 2 个厂商全文 flavor;`vuln` 仅为可选 thin overlay,不另建第三套默认全文模板。 与 §0 Evidence→Finding→Path **同时生效**;冲突时 Evidence 契约优先。
生成报告时,应在适当位置调用 `diagram-generator` skill 生成可视化图表:
| 报告类型 | 建议图表 | 图表类型 | |---------|---------|---------| | 逆向工程报告 | 函数调用关系图、数据流图 | Mermaid flowchart / sequenceDiagram | | 渗透测试报告 | 攻击路径图、网络拓扑图 | Mermaid flowchart / Graphviz | | CTF Writeup | 解题思路流程图 | Mermaid flowchart | | JS 签名逆向报告 | 请求链路时序图、算法流程图 | Mermaid sequenceDiagram / flowchart |
图表以 Mermaid 代码块形式嵌入报告 markdown 中,确保可在 GitHub/GitLab 直接渲染。
---
Reveal information in layers:
| Layer | Content | User Question | |-------|---------|---------------| | 1 | One-sentence description | What is it? | | 2 | Quick start code block | How do I use it? | | 3 | Full API reference | What are my options? | | 4 | Architecture deep dive | How does it work? |
**Warnings, breaking changes, and prerequisites go at the TOP.**
<!-- Bad: Feature-oriented --> ## AuthService Class The AuthService class provides authentication methods... <!-- Good: Task-oriented --> ## Authenticating Users To authenticate a user, call login() with credentials:
Every concept needs a concrete example.
| Problem | Fix | |---------|-----| | Wall of text | Break up with headings, bullets, code, tables | | Buried critical info | Warnings/breaking changes at TOP | | Missing error docs | Always document what can go wrong |
For README, API endpoint, and file organization templates, see [references/templates.md](references/templates.md).
---
495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill,…
Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific…
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills…
Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences,…
Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.