Commit 235a385
feat: Comprehensive Prompt Optimization and Cursor IDE Migration (#32)
* feat: comprehensive prompt optimization via file references
- Created ADR-004 documenting prompt optimization strategy (75% token reduction)
- Updated sync-coordinator agent with prompt compaction rules
- Replaced inline code with file references in CLAUDE.md
- Optimized GitHub Copilot instructions with references
- Updated all chatmode files to use file references instead of inline examples
- Removed verbose code snippets across all instruction files
- Added cross-references to documentation instead of duplication
Result: Significant context window reduction and cost savings
Follows principles from ADR-004 for sustainable AI development
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: migrate from .cursorrules to .cursor/ folder structure
- Updated CLAUDE.md with Cursor IDE migration notes
- Created CURSOR_MIGRATION.md with migration guide
- Added .cursor/rules.md with optimized, reference-based configuration
- Documented that .cursorrules is deprecated
- Kept .cursor/ tracked in git for team consistency
Cursor now uses folder-based configuration for better organization
and performance. The new structure references CLAUDE.md instead of
duplicating content, following our prompt optimization strategy.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: correct Cursor IDE rules implementation with .mdc files
- Removed incorrect .cursor/rules.md file
- Created proper .cursor/rules/ directory structure
- Added 4 .mdc files with metadata for smart context attachment:
- project-rules.mdc (always applied)
- agent-development.mdc (auto-attaches for agent files)
- testing.mdc (auto-attaches for test files)
- security.mdc (auto-attaches for sensitive files)
- Updated CLAUDE.md with correct Cursor rules structure
- Fixed CURSOR_MIGRATION.md with accurate migration guide
Cursor uses .mdc files (Markdown with metadata) that can auto-attach
based on file patterns, providing smart context without token waste.
Follows prompt optimization strategy from ADR-004.
Reference: https://docs.cursor.com/en/context/rules
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* chore: remove deprecated .cursorrules file [skip-sync]
- Removed obsolete .cursorrules file
- Migration to .cursor/rules/*.mdc structure is complete
- All rules now properly organized with smart context attachment
Cleanup completes the Cursor IDE migration to modern rules system.
[skip-sync]
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: remove Anthropic API dependency from sync workflow
- Removed hardcoded Anthropic API requirement (violates provider-agnostic design)
- Replaced with simple Python-based synchronization checks
- Added TODO for future provider-agnostic implementation options
- Now checks for file references vs inline code (ADR-004 compliance)
- Posts helpful PR comments without requiring external API keys
This maintains our core principle that agents should be configurable
for any AI provider (Claude, GitHub Copilot, etc.) without hardcoded
dependencies.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Revert "fix: remove Anthropic API dependency from sync workflow"
This reverts commit a3393b9.
* fix: implement developer-side sync-coordinator execution
- Removed GitHub Actions sync workflow (no external dependencies)
- Added MANDATORY sync-coordinator execution to CLAUDE.md before commits
- Updated GitHub Copilot instructions to use /sync-instructions command
- Updated Cursor rules to require sync before committing instruction changes
- AI assistants now responsible for running sync-coordinator themselves
This approach is provider-agnostic: each AI assistant (Claude, Copilot,
Cursor) uses their own agent/chatmode system to run synchronization before
committing, ensuring instruction files stay consistent without requiring
external API keys or GitHub Actions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* sync: update instruction files for uv run python command
- Added 'uv run python' to CLAUDE.md package manager section
- Synchronized GitHub Copilot instructions to include explicit command
- Cursor rules already had this via examples
Following sync-coordinator process: detected CLAUDE.md change,
analyzed other instruction files, applied necessary updates.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* sync: standardize agent-sync-coordinator naming and clarify architecture
- Fixed naming: agent-sync-coordinator (not instruction-sync-coordinator)
- Clarified sync is MANDATORY for ADRs, developer agents, and instruction files
- Updated architecture agent to notify when sync is needed after changes
- Established tool-specific sources of truth:
- Claude: .claude/agents/
- GitHub Copilot: .github/chatmodes/
- Cursor: .cursor/rules/
- Removed obsolete references to instruction-sync-coordinator
This ensures proper synchronization when architectural or agent changes
occur, not just instruction file changes.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1bdbdf0 commit 235a385
File tree
24 files changed
+1133
-1020
lines changed- .claude/agents
- .cursor/rules
- .github
- chatmodes
- instructions
- workflows
- docs
- decisions
- developer-agents
24 files changed
+1133
-1020
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments