refactor: consolidate agent config into agents directory#27427
refactor: consolidate agent config into agents directory#27427eunjae-lee merged 7 commits intomainfrom
Conversation
- Move .claude/skills and .claude/rules content to agents/ - Remove duplicate .cursor/ and .goose/ folders - Create symlinks from .claude/ and .cursor/ to agents/ - Convert review.mdc to quality-review-checklist.md with proper frontmatter Co-Authored-By: Claude Haiku 4.5 <[email protected]>
|
Peer created a new skills folder for api v2, we should move these as well |
Move the Cal.com API v2 skills from PR #27445 into the consolidated agents/skills/ directory structure. This includes: - SKILL.md - Main skill file with API overview - references/authentication.md - Authentication methods - references/bookings.md - Bookings API reference - references/calendars.md - Calendars API reference - references/event-types.md - Event types API reference - references/schedules.md - Schedules API reference - references/slots-availability.md - Slots and availability API reference - references/webhooks.md - Webhooks API reference Co-Authored-By: [email protected] <[email protected]>
Remove non-standard frontmatter fields (license, metadata) and keep only the Claude Code supported fields (name, description) as per the Claude Code skills specification. Co-Authored-By: [email protected] <[email protected]>
Convert SKILL.md from a comprehensive API doc (317 lines) to a concise index file (108 lines) that references the detailed documentation in the references/ folder. This follows the Claude Code skills pattern of keeping SKILL.md focused with supporting files for detailed content. The SKILL.md now: - Provides a quick start guide with essential examples - References all 7 detailed reference docs in a table - Lists common workflows and best practices - Points to external resources Co-Authored-By: [email protected] <[email protected]>
Move content that was removed from SKILL.md to appropriate reference files: - Add Error Handling and Pagination sections to authentication.md - Add Organization endpoints to event-types.md - Add Core Concepts section back to SKILL.md This ensures no useful API documentation is lost during the restructuring. Co-Authored-By: [email protected] <[email protected]>
done ! |
There was a problem hiding this comment.
Nice clean up. I have some thoughts:
- We currently have AGENTS.md and README.md and there is duplication:
select over include → detailed in rules/data-prefer-select-over-include.md
credential.key security rule → in coding-standards.md and CLAUDE.md
Avoid O(n²) logic → in rules/performance-avoid-quadratic.md
Minimize Day.js → in rules/performance-dayjs-usage.md
Early returns → in coding-standards.md and CLAUDE.md
PR size limits → in CLAUDE.md
Maybe we delete duplication and then what is left from README.md move to knowledge-base.md?
2. maybe we can also add docs for developers explaining our ai setup in the root monorepo README.md? That we have local agents folder and that we mainly use cursor and claude so we have symlinks, and then we rely on rules, skills and main agent files like claude.md
What do you think?
@supalarry you know what. actually i have another PR (#26994) that is already touching AGENTS.md, so let me apply that changes over there, and let this PR purely on cleaning up agent config folders. |
E2E results are ready! |
What does this PR do?
Consolidated duplicate agent configuration folders (.claude, .cursor, .goose) into a single source of truth under
agents/. Removed 149 duplicate files across .cursor and .goose, then created symlinks to point to the canonical files inagents/.Changes:
.claude/skills/→agents/skills/.cursor/and.goose/folders entirely.claude/and.cursor/toagents/review.mdctoquality-review-checklist.mdwith proper frontmatterNew structure:
Reduces maintenance burden by eliminating duplicate files and ensures all tools reference the same definitions.
Updates since last revision
agents/skills/directory structure:agents/skills/calcom-api/SKILL.md- Main skill file (concise index)agents/skills/calcom-api/references/- Detailed API reference docs (authentication, bookings, calendars, event-types, schedules, slots-availability, webhooks)licenseandmetadatafields)references/folderauthentication.mdevent-types.mdSKILL.mdThis ensures the API v2 skills follow the same consolidated structure rather than existing in a separate root
skills/folder.Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
ls -la .claude/andls -la .cursor/ls .claude/rules/should show the rules fromagents/rules/ls .claude/skills/calcom-api/should show SKILL.md and references/Human Review Checklist
nameanddescriptionfields)references/folder