Skip to content

Add 'marr standard sync' command#54

Merged
virtualian merged 3 commits into
mainfrom
49-standard-sync
Dec 4, 2025
Merged

Add 'marr standard sync' command#54
virtualian merged 3 commits into
mainfrom
49-standard-sync

Conversation

@virtualian
Copy link
Copy Markdown
Owner

Summary

  • Add marr standard sync command to generate trigger list from frontmatter
  • Add --dry-run option to preview changes
  • Discover standards dynamically from resources/project/common/ (no hardcoded list)
  • File ownership verification for security (prevents prompt injection)
  • Remove help [command] subcommand (use command --help instead)
  • Delete redundant resources/project/common/README.md

Test plan

  • marr standard sync --dry-run shows preview
  • marr standard sync updates MARR-PROJECT-CLAUDE.md
  • Output is idempotent (re-running produces no diff)
  • marr --help no longer shows help [command]
  • marr init --help works
  • Trigger format interpreted correctly by Claude Code

Closes #49

- Add sync subcommand with --dry-run option
- Generate standards section with list format (not table)
- Include file ownership verification for security
- Add Conditional Reading Protocol imperatives to prevent skimming
- Update templates to match new format
- Remove hardcoded REQUIRED_STANDARD (file was deleted in #47)
- Remove hardcoded AVAILABLE_STANDARDS array
- Add discoverAvailableStandards() to read from resources/project/common/
- Extract metadata (name, title, scope) from YAML frontmatter
- Adding new standards now requires only creating the file
- Use `command --help` pattern instead of `help [command]`
- Delete resources/project/common/README.md (redundant with .claude/marr/README.md)
@virtualian virtualian merged commit 557c165 into main Dec 4, 2025
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.

Add 'marr standard sync' to generate trigger table from frontmatter

1 participant