feat(framework): superpowers enforcement, typecheck hook, file-ownership rules #451

Merged
jason.woltje merged 2 commits from feat/framework-superpowers-enforcement into main 2026-04-07 00:44:22 +00:00
Owner

Summary

  • Typecheck hook: New typecheck-hook.sh PostToolUse hook runs tsc --noEmit after TS/TSX edits for immediate type error feedback
  • Superpowers Enforcement: New section in AGENTS.md requiring agents to actively use skills, hooks, MCP tools, and plugins — with self-evolution captures for framework improvement
  • File-ownership rules: New partitioning rules in ORCHESTRATOR.md preventing parallel worker file collisions
  • Settings audit: Pre-flight check in launch.ts validates ~/.claude/settings.json has required hooks/plugins at mosaic claude launch time
  • RUNTIME.md docs: Documents required Claude Code settings (hooks, plugins, MCP config)

Test plan

  • Typecheck passes (pre-push hook verified)
  • Prettier formatting passes
  • ESLint passes
  • Manual: run mosaic claude and verify settings audit warnings appear when hooks/plugins are missing

🤖 Generated with Claude Code

## Summary - **Typecheck hook**: New `typecheck-hook.sh` PostToolUse hook runs `tsc --noEmit` after TS/TSX edits for immediate type error feedback - **Superpowers Enforcement**: New section in AGENTS.md requiring agents to actively use skills, hooks, MCP tools, and plugins — with self-evolution captures for framework improvement - **File-ownership rules**: New partitioning rules in ORCHESTRATOR.md preventing parallel worker file collisions - **Settings audit**: Pre-flight check in `launch.ts` validates `~/.claude/settings.json` has required hooks/plugins at `mosaic claude` launch time - **RUNTIME.md docs**: Documents required Claude Code settings (hooks, plugins, MCP config) ## Test plan - [x] Typecheck passes (pre-push hook verified) - [x] Prettier formatting passes - [x] ESLint passes - [ ] Manual: run `mosaic claude` and verify settings audit warnings appear when hooks/plugins are missing 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added 2 commits 2026-04-07 00:44:10 +00:00
- Add PostToolUse typecheck hook (typecheck-hook.sh) that runs tsc --noEmit
  after TS/TSX edits for immediate type error feedback
- Add Superpowers Enforcement section to AGENTS.md requiring active use of
  skills, hooks, MCP tools, and plugins — not just passive availability
- Add self-evolution captures (framework-improvement, tooling-gap, friction)
- Add file-ownership/partitioning rules to ORCHESTRATOR.md preventing parallel
  worker file collisions
- Add settings audit to launch.ts that validates ~/.claude/settings.json has
  required hooks and plugins at mosaic claude launch time
- Document required Claude Code settings in RUNTIME.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
style: format AGENTS.md (glm-5.1 table alignment)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ec5e1e346c
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 026382325c into main 2026-04-07 00:44:22 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#451