Skip to content

[FEATURE] CLAUDE.md export — generate from ZeroDB memories - #29

Merged
urbantech merged 1 commit into
mainfrom
feature/16-claudemd-export
Apr 25, 2026
Merged

urbantech merged 1 commit into
mainfrom
feature/16-claudemd-export

Conversation

@urbantech

Copy link
Copy Markdown
Contributor

Summary

  • Adds skills/claudemd-export/SKILL.md — dedicated skill implementing the full /memory export --format claudemd workflow: project detection via git remote, broad semantic retrieval across 6 query types (up to 200 memories), grouping by memory type, deduplication of semantically equivalent facts, and structured CLAUDE.md generation
  • Updates skills/memory/SKILL.md — replaces the stub claudemd format description with a delegation note pointing to the new skill; documents --dry-run and merge mode
  • Adds TestCLAUDEmdExport class to tests/e2e/test_zerodb_api.py with 6 tests verifying skill file existence, frontmatter validity, all 6 memory type mappings, deduplication logic, --dry-run support, and update-vs-create/merge flow

Test Plan

  • TestCLAUDEmdExport — 6 tests, all passing (pytest tests/e2e/test_zerodb_api.py::TestCLAUDEmdExport -v)
  • Skill frontmatter valid YAML with description: field
  • All 6 memory types (architecture, convention, ownership, in-progress, bug, correction) mapped to CLAUDE.md sections
  • Deduplication logic documented (keep most recent / most detailed)
  • --dry-run flag documented and clarified as no-write
  • Update-vs-create flow documented with diff preview and merge mode

Risk/Rollback

Low risk — skill files and tests only, no runtime code changes. Rollback by reverting the three changed files.

Closes #16

…ZeroDB memories

- Add skills/claudemd-export/SKILL.md: full generation logic including
  project detection, broad semantic retrieval (up to 200 memories, 6 queries),
  grouping by type, deduplication, and structured CLAUDE.md output
- Update skills/memory/SKILL.md: delegate claudemd format to the new skill,
  document --dry-run and merge mode in the export subcommand section
- Add TestCLAUDEmdExport (6 tests) to tests/e2e/test_zerodb_api.py covering
  file existence, frontmatter, all 6 memory types, dedup logic, --dry-run,
  and update-vs-create/merge flow

Refs #16
@urbantech
urbantech merged commit 9debdb2 into main Apr 25, 2026
3 checks passed
@urbantech
urbantech deleted the feature/16-claudemd-export branch April 25, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] CLAUDE.md export from memories (/memory export --format claudemd)

1 participant