From memex
Use this skill when writing, editing, or creating documentation files (*.md) in the docs/ directory. Provides guidelines for token-efficient documentation that works with the Memex context-enricher system.
How this skill is triggered — by the user, by Claude, or both
Slash command
/memex:memex-docsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Follow these rules when writing or editing documentation in this project.
Follow these rules when writing or editing documentation in this project.
| Level | Max Lines | Target |
|---|---|---|
| File | 800 | 400-600 |
| Section | 150 | 50-100 |
| Glossary/Index | 1000 | 500-800 |
If a file exceeds 800 lines, split into sub-documents:
DATABASE.md (overview + links)
DATABASE_SCHEMA.md
DATABASE_QUERIES.md
DATABASE_MIGRATIONS.md
When adding or changing features, update in this order:
# Instead of:
The pool uses minimum 5 connections, maximum 20, timeout 30 seconds.
# Use:
| Setting | Value |
|---------|-------|
| Min connections | 5 |
| Max connections | 20 |
| Timeout | 30s |
# Instead of:
See DATABASE.md for query patterns.
# Use:
See [Query Patterns](DATABASE.md#queries).
Show only relevant parts. Include just enough context to be useful.
Headers create anchor links for section-level loading:
## Main Section -> #main-section
### Subsection -> #subsection
Use descriptive headers that make good anchor names.
### Category Name
- **keyword** -> `path/to/FILE.md#section` - Brief description
- **another-keyword** -> `path/to/FILE.md` - Brief description
| Scenario | Action |
|---|---|
| Feature enhancement | Update existing section |
| Bug fix with behavior change | Update existing documentation |
| API parameter added | Update existing endpoint docs |
| Net-new feature | Create new section |
| Net-new component | Create new file |
Signs you should update instead of add:
When updating, fully replace outdated content. Don't append "UPDATE:" notes. Documentation should read as current truth.
npx claudepluginhub 0-to-1-labs/claude-marketplace --plugin memexCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.