# Codify

> 将当前上下文的核心要点、踩的坑、新发现沉淀为结构化 Markdown 文档，保存到当前工作目录。触发词：/codify、沉淀、沉淀到。

- **Type:** Skill
- **Install:** `agentstack add skill-ejjcc-agent-skills-codify`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ejjcc](https://agentstack.voostack.com/s/ejjcc)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ejjcc](https://github.com/ejjcc)
- **Source:** https://github.com/ejjcc/agent-skills/tree/main/codify

## Install

```sh
agentstack add skill-ejjcc-agent-skills-codify
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# /codify — 知识沉淀技能

把会话中散落的调研结论、踩坑记录、新发现，提炼为结构化 md 文档落盘。

## 触发方式

- `/codify` — 自动提炼当前上下文，存到工作目录
- `/codify ` 或 "沉淀到 X" — 指定子目录（如 `asksurf`）
- "沉淀" — 等价于 `/codify`

## 工作流

### Step 1：确定存储路径

| 用户输入 | 存储路径 |
|---------|---------|
| `/codify` | `/codify-.md`（topic 从上下文推断） |
| `/codify ` | `//README.md` |
| "沉淀到 X" | `/X/README.md` |
| "沉淀到 X/file.md" | `/X/file.md`（用户指定完整文件名） |

### Step 2：判断内容性质与格式

先扫描当前工作目录已有的 md 文件，感知 workspace 的风格和上下文，然后根据**会话内容的性质**自主决定最合适的文档结构。

不使用固定模板。以下是性质→格式的参考（不是规则，自行判断）：

- 产品调研 → 可能适合：定位/功能/商业模式/竞品对比
- 技术方案 → 可能适合：问题/方案/取舍/实现细节
- Debug 记录 → 可能适合：现象/排查过程/根因/修复
- 对比分析 → 可能适合：表格为主，维度对比
- 读书/论文笔记 → 可能适合：核心论点/关键证据/个人思考

原则：**内容决定形式，不是形式框住内容**。只写有价值的，不凑章节。

### Step 3：写入文件

- 用 Write 工具创建文件
- 如果目标文件已存在，Read 后用 Edit 追加/更新，不覆盖已有内容
- 写完告知用户文件路径

## 规则

- **默认存当前工作目录**，不存 `~/.claude/` memory 系统
- 文档语言跟随会话语言（中文会话写中文，英文写英文）
- 代码块、URL、专有名词保持原文
- 不添加 emoji

## Source & license

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

- **Author:** [ejjcc](https://github.com/ejjcc)
- **Source:** [ejjcc/agent-skills](https://github.com/ejjcc/agent-skills)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ejjcc-agent-skills-codify
- Seller: https://agentstack.voostack.com/s/ejjcc
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
