Skip to content
Back to skills

Document

ASecurity

Document session work - Creates Entry files and analyzes patterns for skills/rules

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 25, 2026
ai-agentsbashgitapidatabasefrontenddocumentation

Works with

  • api

Security analysis

A100/100

Scanned October 25, 2026

npx -y skills add ytrofr/claude-code-guide --skill document --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Document
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ytrofr-document/badge)](https://www.skillsdirectory.com/skills/ytrofr-document)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Document session work - Creates Entry files and analyzes patterns for skills/rules"
allowed-tools: Read, Write, Bash, Grep, Edit, Glob
model: sonnet
---

# /document - Documentation + Pattern Analysis

**Purpose**: Document work + intelligent suggestions (Skill/Rule/Blueprint)
**Time**: ~10-15 minutes for complete documentation

---

## Step 1: Gather Session Context

```bash
echo "Branch: $(git branch --show-current)"
echo "Last 10 commits:"
git log --oneline -10
echo ""
echo "Modified files (recent):"
git diff --name-status HEAD~5 2>/dev/null | head -30
```

---

## Step 2: Identify Documentation Needs

| Documentation Type | Create If...                           | Location            |
| ------------------ | -------------------------------------- | ------------------- |
| **Entry File**     | New pattern discovered, problem solved | Project learned/    |
| **Skill**          | Pattern reusable >20x/year, ROI >100%  | ~/.claude/skills/   |
| **Blueprint**      | New feature with 3+ files              | Project blueprints/ |

---

## Step 3: Create Entry File (If Needed)

```markdown
# Entry #XXX: [pattern-name]

**Created**: [YYYY-MM-DD]
**Domain**: [api/database/frontend/deployment/etc.]
**Purpose**: [One-line description]

## Problem

[What was the issue?]

## Solution

[How was it solved?]

## Evidence

- [Metrics, test results]
- [Time saved]

## Pattern

[Reusable pattern with code]

## References

- Files: [paths]
```

---

## Step 4: Pattern Analysis

**Check ALL conditions - multiple suggestions can apply:**

```yaml
Repeatable (20+/year) + Saves >1h?    -> SKILL SUGGESTION
Universal enforcement needed?          -> PROJECT RULE
Quick reference (<5 lines)?            -> CORE PATTERNS update
3+ files modified for feature?         -> BLUEPRINT SUGGESTION
```

---

## Step 5: Final Verification

- [ ] Entry file created (if pattern discovered)
- [ ] Skill created (if ROI >100%)
- [ ] Status tracking updated
- [ ] All work committed

---

**Time Investment**: 10-15 minutes
**Value**: Complete knowledge preservation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.