0-to-1-labs/memex/memex-docs
Claude Code and agent skill by 0-to-1-labs/memex
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install 0-to-1-labs/memex/memex-docsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as 0-to-1-labs/memex/memex-docs.
Memex Documentation Guidelines
Follow these rules when writing or editing documentation in this project.
Core Principles
- Update existing content first - Never add new sections when existing ones cover the same topic
- Token efficiency - Every token costs context budget
- Section-level loading - The context-enricher injects the single best matching section of a doc, not the whole file; a glossary pin with a
#anchorselects that heading's section - Single source of truth - Document once, reference everywhere
Size Limits
| 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:
Required Updates
When adding or changing features, update in this order:
- GLOSSARY.md - Add keywords for discoverability
- Specialized doc - Add/update detailed content
- CLAUDE.md - Only if it affects key files or constraints
Writing Style
Use Tables Over Paragraphs
Use Anchor Links
Keep Code Examples Minimal
Show only relevant parts. Include just enough context to be useful.
Section Headers
Headers create anchor links for section-level loading. The anchor is the heading text lowercased, punctuation removed, spaces replaced by hyphens:
Use descriptive headers that make good anchor names. Headings inside fenced code blocks are ignored.
GLOSSARY.md Format (optional pins)
Retrieval works without a glossary. A pin boosts a doc when the keyword appears as a whole word in the prompt; a #section anchor selects that section.
Paths are relative to the project root and must stay inside it (no .., no absolute paths, no symlinks).
Update vs Add Decision
| 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:
- Existing section covers the same component
- Adding would duplicate context
- Old section would become misleading
When updating, fully replace outdated content. Don't append "UPDATE:" notes. Documentation should read as current truth.
Pre-Commit Checklist
- [ ] GLOSSARY.md updated with new keywords (if the project uses pins)
- [ ] No section exceeds 150 lines
- [ ] No file exceeds 800 lines
- [ ] Anchor links used for cross-references
- [ ] Tables used for reference data
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/memex-docs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0-to-1-labs/memex/memex-docs)