Skip to content

feat(#291): mapify preset remove/enable/disable/resolve commands (Slice 2)#371

Merged
azalio merged 2 commits into
mainfrom
claude/compassionate-cerf-eynfn6
Jul 18, 2026
Merged

feat(#291): mapify preset remove/enable/disable/resolve commands (Slice 2)#371
azalio merged 2 commits into
mainfrom
claude/compassionate-cerf-eynfn6

Conversation

@azalio

@azalio azalio commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

Second slice of SpecKit-style preset composition (#291). Builds on Slice 1 (PR #370) which added mapify preset list and mapify preset add.

New commands:

  • mapify preset remove <id> — uninstalls a preset from .map/presets/; confirmation prompt unless --yes
  • mapify preset enable <id> — marks a preset active via .map/presets/<id>/.state.json sidecar
  • mapify preset disable <id> — marks a preset inactive without uninstalling it
  • mapify preset resolve <template> — shows the 3-tier resolution stack for a template (project overrides → enabled presets → core templates) including strategy, enabled status, and file path per layer; --json for machine-readable output

Implementation notes

  • Enabled/disabled state persists to .map/presets/<id>/.state.json (JSON sidecar, not manifest.json — presets are read-only once installed)
  • resolve shows disabled presets with enabled: false so operators see the full resolution picture
  • Project overrides live at .map/overrides/<template> (tier 1, highest priority)
  • Preset templates live at .map/presets/<id>/templates/<template> (tier 2)
  • Core templates from get_templates_dir() (tier 3, lowest priority)

Tests

16 new tests (PC9–PC11) added to tests/test_preset_commands.py. 45 total tests in the file.

Full suite: 3931 passed, 4 skipped, 0 failures.

Part of #291 (composition/rendering engine — prepend/append/wrap strategies applied at render time — follows in Slice 3).


Generated by Claude Code

claude added 2 commits July 18, 2026 06:57
…lice 2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011jmbBkJwJByEJGXFAihgh8
Adds four more mapify preset sub-commands:
- mapify preset remove <id>: uninstalls a preset with --yes to skip prompt
- mapify preset enable <id>: marks a preset active via .state.json sidecar
- mapify preset disable <id>: marks a preset inactive without uninstalling
- mapify preset resolve <template>: shows 3-tier resolution stack
  (project overrides → enabled presets → core templates) with strategy,
  enabled status, and file path per layer; --json for machine-readable output

Enabled/disabled state persists to .map/presets/<id>/.state.json.
The resolve command shows disabled presets with an (enabled=false) flag
so operators can see the full resolution picture without filtering.

16 new tests (PC9-PC11) added to tests/test_preset_commands.py; 45 total.
Full suite: 3931 passed, 4 skipped, 0 failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011jmbBkJwJByEJGXFAihgh8
@azalio
azalio merged commit 6076634 into main Jul 18, 2026
1 check passed
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@azalio, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 18 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ddba1cfd-25b7-4b8f-8701-7f9012e9e2d1

📥 Commits

Reviewing files that changed from the base of the PR and between f05ba1d and cfc1eda.

📒 Files selected for processing (3)
  • docs/ARCHITECTURE.md
  • src/mapify_cli/__init__.py
  • tests/test_preset_commands.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/compassionate-cerf-eynfn6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

azalio pushed a commit that referenced this pull request Jul 18, 2026
All three slices (PRs #370/#371/#372) merged; update issue tracker section.

Co-Authored-By: Claude <noreply@anthropic.com>
azalio added a commit that referenced this pull request Jul 18, 2026
…ports (#373)

* docs: mark #291 preset composition as CLOSED in ARCHITECTURE.md

All three slices (PRs #370/#371/#372) merged; update issue tracker section.

Co-Authored-By: Claude <noreply@anthropic.com>

* feat(#363): add /map-architecture skill for architecture-deepening reports

Adds the opt-in architecture-deepening report workflow as a new
`/map-architecture` skill. The skill ranks codebase areas by recent
git hotspot frequency and design-friction signals (shallow interface,
low locality, seam leakage, hard-to-test, ADR conflict), writes a
ranked Markdown+Mermaid candidate report under
`.map/<branch>/architecture-report/`, and waits for the user to pick
one candidate before any code changes begin.

Key design choices:
- Three phases: scope → report → select (no implementation in skill)
- Explicit "do not implement yet" guardrail at every decision point
- Companion report.json for future eval assertions
- Hands off to /map-plan (score ≥ 6) or /map-fast (score < 6) after pick
- Deferral notes in .map/architecture-notes.md to avoid re-surfacing

Also registers the skill in skill-rules.json with 7 keywords and 3
intent patterns, adds it to WORKFLOW_EFFORT_PROFILES in test_skills.py
(effort: medium/adaptive), and updates the skill count guard in
test_skills_consistency.py from 19 → 20.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants