internal/skills/content/document-work/SKILL.md
Work documentation and pattern capture workflow. Use after completing significant work to capture patterns, decisions, and learnings in project memory files for future reference.
npx skillsauth add ar4mirez/samuel document-workInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When to use: After completing significant features, at end of work sessions, when new patterns emerge, before context handoffs
| Trigger | Action | |---------|--------| | Completed major feature | Document patterns + decision | | End of work session | Update state.md | | New pattern identified | Add to patterns.md | | Architecture decision made | Create memory file | | Before vacation/handoff | Full documentation pass |
.claude/ directory exists in project1. Analyze Recent Changes
└── git log, git diff, file changes
↓
2. Identify Documentation Needs
└── Patterns? Decisions? State updates?
↓
3. Generate Documentation
└── patterns.md, memory/, state.md, project.md
↓
4. Verify Completeness
└── Checklist validation
# View recent commits
git log --oneline -20
# View commits since a date
git log --since="2025-01-01" --oneline
# View files changed in recent commits
git log --oneline --name-only -10
# View detailed diff of recent work
git diff HEAD~5..HEAD --stat
Document as a pattern when:
Create a memory file when:
Update state.md when:
Update project.md when:
## [Pattern Name]
**When to use**: [Context where this pattern applies]
**Example**:
```[language]
// Pattern implementation code
Why: [Rationale for this approach]
See also: [Related patterns or files]
#### memory/YYYY-MM-DD-topic.md
```markdown
# [Decision Title]
**Date**: YYYY-MM-DD
**Status**: Decided | In Progress | Deprecated
**Affects**: [List of affected areas/files]
## Context
[What was the situation? What problem were we solving?]
## Options Considered
### Option A: [Name]
- **Pros**: [Benefits]
- **Cons**: [Drawbacks]
### Option B: [Name]
- **Pros**: [Benefits]
- **Cons**: [Drawbacks]
## Decision
[What was chosen and why]
## Consequences
- [What this means going forward]
- [Any technical debt incurred]
- [Future work enabled or blocked]
## References
- [Related PRs, issues, or documentation]
# Current Work Status
**Last Updated**: YYYY-MM-DD
**Author**: [Name or AI]
## In Progress
- [ ] [Task description with context]
- [ ] [Another task]
## Recently Completed
- [x] [Completed task] (YYYY-MM-DD)
- [x] [Another completed task] (YYYY-MM-DD)
## Blockers
- **[Blocker name]**: [Description and what's needed to unblock]
## Next Steps
1. [Immediate next action]
2. [Following action]
3. [Future consideration]
## Context for Next Session
[Key context to preserve - what state is the code in, what was the last thing worked on, any gotchas to be aware of]
## Notes
[Any other relevant information]
When updating project.md, add to relevant sections:
## Recent Changes
### [Date] - [Change Category]
- Added [technology/pattern/integration]
- Reason: [Why this was added]
- Impact: [What this affects]
User Request:
@.claude/skills/document-work/SKILL.md
Document the work from today's session on the authentication feature.
We made some decisions about JWT vs sessions and established a new
error handling pattern.
AI Will:
Output:
.claude/memory/2025-01-14-auth-token-strategy.mdCLAUDE.md with error handling sectionCLAUDE.md with auth feature progressUser Request:
@.claude/skills/document-work/SKILL.md
I noticed we've been using the same API response format across
multiple endpoints. Let's document this as a pattern.
AI Will:
Output:
CLAUDE.md with API response format sectionUser Request:
@.claude/skills/document-work/SKILL.md
I'm handing off this project next week. Please review all recent
work (last 2 weeks) and ensure comprehensive documentation for
the next developer.
AI Will:
Output:
User Request:
@.claude/skills/document-work/SKILL.md
Just update state.md - I'm stopping for today and want to capture
where I left off on the payment integration.
AI Will:
Output:
CLAUDE.md| Workflow | Relationship | |----------|--------------| | create-prd.md | For planning new work (before implementation) | | cleanup-project.md | For archiving old documentation | | generate-tasks.md | For breaking down documented requirements | | update-framework.md | For updating Samuel itself |
Consider using this workflow:
development
Zig language guardrails, patterns, and best practices for AI-assisted development. Use when working with Zig files (.zig), build.zig, or when the user mentions Zig. Provides comptime patterns, allocator conventions, C interop guidelines, and testing standards specific to this project's coding standards.
tools
WordPress framework guardrails, patterns, and best practices for AI-assisted development. Use when working with WordPress projects, or when the user mentions WordPress. Provides theme development, plugin architecture, REST API, blocks, and security guidelines.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs. Use when testing web apps, automating browser interactions, or debugging frontend issues.
tools
Suite of tools for creating elaborate, multi-component web applications using modern frontend technologies (React, Tailwind CSS, shadcn/ui). Use for complex projects requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX pages.