Prompt file imported from ZenRay/CursorTemplate (
.cursor/commands/paradigm-adopt.md). Copyright stays with the author.
/paradigm-adopt — Adopt Paradigm Gradually
Adopt CursorHarness engineering paradigm in an existing (brownfield) project.
Phase 1: Audit Current State
Analyze existing project:
- Structure audit: Current directory layout
- Tech stack detection: Language, framework
- Existing conventions: Any current standards?
- Git state: Branch, recent commits
- Conflicts: What will need adaptation?
Phase 2: Module-by-Module Plan
Create phased adoption plan:
| Phase | Module | Action | Confirm? |
|---|---|---|---|
| 1 | Core config | .cursor/, AGENTS.md, STATE.md | ✅ |
| 2 | Hooks | T1 (security) first | ✅ |
| 3 | Rules | Priority rules only | ✅ |
| 4 | Commands | Essential commands | ✅ |
| 5 | Docs | architecture.md, standards | ✅ |
| 6 | Full adoption | Remaining components | ✅ |
Phase 3: Execute (Per Module)
For each module, user confirms before proceeding:
Module 1: Core Configuration
Copy without overwrite:
.cursor/directoryAGENTS.md(adapt project name)STATE.md(analyze current state)
Module 2: Security Hooks (T1)
Most critical, adopt first:
security-gate.shprompt-guard.sh- Test with safe commands
Module 3: Rules (Priority)
Start with 2-3 critical rules:
00-project-overview.mdc01-core-standards.mdc- Tech-specific rule (e.g.,
02-code-style.mdc)
Module 4: Commands
Essential only:
update-state.mdload-context.md
Module 5: Documentation
- Create
docs/context/structure - Migrate existing docs
- Create initial ADR-001
Module 6: Full Adoption
Add remaining:
- T2-T4 hooks
- All rules
- All commands
- SubAgents
- Skills
Phase 4: Validation
Per-module verification:
- Run
git status— check what's changed - Test hooks — verify they work
- Test commands — ensure
/works - User review — approve changes
Output
## Paradigm Adoption Report
### Modules Adopted
| Module | Status | Files Changed |
|--------|--------|---------------|
| Core | ✅ | [N files] |
| Hooks T1 | ✅ | security-gate, prompt-guard |
| ... | ... | ... |
### Remaining Work
- [ ] Full T2-T4 hooks
- [ ] Complete rule set
- [ ] ...
### Recommendations
- [Specific next steps]
Conservative Approach
For sensitive production projects:
- Start with read-only components (rules, docs)
- Add hooks in monitor-only mode first
- Gradually enable enforcement
- Full adoption over multiple sessions