0-to-1-labs/memex/memex-docs

Claude Code and agent skill by 0-to-1-labs/memex

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-docs

Semi-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

  1. Update existing content first - Never add new sections when existing ones cover the same topic
  2. Token efficiency - Every token costs context budget
  3. Section-level loading - The context-enricher injects the single best matching section of a doc, not the whole file; a glossary pin with a #anchor selects that heading's section
  4. Single source of truth - Document once, reference everywhere

Size Limits

LevelMax LinesTarget
File800400-600
Section15050-100
Glossary/Index1000500-800

If a file exceeds 800 lines, split into sub-documents:

DATABASE.md (overview + links)
DATABASE_SCHEMA.md
DATABASE_QUERIES.md
DATABASE_MIGRATIONS.md

Required Updates

When adding or changing features, update in this order:

  1. GLOSSARY.md - Add keywords for discoverability
  2. Specialized doc - Add/update detailed content
  3. CLAUDE.md - Only if it affects key files or constraints

Writing Style

Use Tables Over Paragraphs
markdown
# Instead of:
The pool uses minimum 5 connections, maximum 20, timeout 30 seconds.
# Use:
| Setting | Value |
|---------|-------|
| Min connections | 5 |
| Max connections | 20 |
| Timeout | 30s |
Use Anchor Links
markdown
# Instead of:
See DATABASE.md for query patterns.
# Use:
See [Query Patterns](DATABASE.md#queries).
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:

markdown
## Main Section -> #main-section
### Subsection -> #subsection

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.

markdown
### Category Name
-**keyword** -> `path/to/FILE.md#section` - Brief description
-**another-keyword** -> `path/to/FILE.md` - Brief description

Paths are relative to the project root and must stay inside it (no .., no absolute paths, no symlinks).

Update vs Add Decision

ScenarioAction
Feature enhancementUpdate existing section
Bug fix with behavior changeUpdate existing documentation
API parameter addedUpdate existing endpoint docs
Net-new featureCreate new section
Net-new componentCreate 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0-to-1-labs/memex/memex-docs/badge)](https://verified-skill.com/skills/0-to-1-labs/memex/memex-docs)

Something wrong with this skill or its page? Tell us.