# Doc

> Draft or edit a document — PRD, spec, design doc, technical brief. Use for "/doc project title" to create a new doc or edit existing.

- **Type:** Skill
- **Install:** `agentstack add skill-kv0906-pm-kit-doc`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [kv0906](https://agentstack.voostack.com/s/kv0906)
- **Installs:** 0
- **Category:** [Productivity](https://agentstack.voostack.com/c/productivity)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [kv0906](https://github.com/kv0906)
- **Source:** https://github.com/kv0906/pm-kit/tree/main/.claude/skills/doc
- **Website:** https://willtran.xyz

## Install

```sh
agentstack add skill-kv0906-pm-kit-doc
```

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

## About

# /doc — Document Drafting

Create or edit documents (specs, PRDs, design docs, etc.).

## Context

Today's date: `!date +%Y-%m-%d`
Existing docs: `!ls docs/*/*.md 2>/dev/null | tail -10`

Reference template: @_templates/doc.md
Config: @_core/config.yaml
Processing logic: @_core/PROCESSING.md

## Input

User input: $ARGUMENTS

## Processing Steps

1. **Parse Input**
   - Extract project
   - Extract title/feature name

2. **Check Existing**
   - Search `docs/{project}/*.md` for similar titles (or `docs/general/*.md` if no project)
   - If found: Offer to edit or create new

3. **Gather Context**
   - Search for related decisions/blockers

4. **Interactive Drafting**
   - Prompt for each major section:
     - Problem statement
     - Goals / Non-goals
     - Requirements (P0/P1/P2)
     - Technical approach
   - Or accept full content at once

5. **Create Doc Note**
   - If no project specified: write to `docs/general/{slug}.md`
   - If project specified: write to `docs/{project}/{slug}.md`
   - Apply template with gathered data
   - Status: draft
   - Add `## Links` section

6. **Update References**
   - Add to project index if exists

7. **Append to Vault Log**
   - Append entry to `01-index/_vault-log.md` (see `.claude/rules/vault-log.md`)
   - Action: `doc`
   - Details: doc title and status

## Output

```
Created: docs/{project}/{slug}.md
Status: draft
Sections: {filled}/{total}
```

## Export (Optional)

Supports `--docx`, `--pdf` flags. See `.claude/rules/export-formats.md` for layout specs and workflow. Complete normal processing first, then generate the formatted file.

## Source & license

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

- **Author:** [kv0906](https://github.com/kv0906)
- **Source:** [kv0906/pm-kit](https://github.com/kv0906/pm-kit)
- **License:** MIT
- **Homepage:** https://willtran.xyz

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-kv0906-pm-kit-doc
- Seller: https://agentstack.voostack.com/s/kv0906
- 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%.
