create-rule
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Use when linked docs drift, when a source file changes and downstream PRDs, decks, or notes must follow, or when a .sync-report.md exists. Diffs the proposed edits, applies them only after approval, and never overwrites a target file.
Claude Code
$ npx -y skills add coco-research/coco --skill doc-sync --agent claude-code
Codex
$ npx skills add coco-research/coco --skill doc-sync -a codex -y
Cursor
$ npx skills add coco-research/coco --skill doc-sync -a cursor -y
Gemini CLI
$ npx skills add coco-research/coco --skill doc-sync -a gemini-cli -y
GitHub Copilot
$ npx skills add coco-research/coco --skill doc-sync -a github-copilot -y
OpenCode
$ npx skills add coco-research/coco --skill doc-sync -a opencode -y
Windsurf
$ npx skills add coco-research/coco --skill doc-sync -a windsurf -y
name: pmstudio-sync description: "Use when linked docs drift, when a source file changes and downstream PRDs, decks, or notes must follow, or when a .sync-report.md exists. Diffs the proposed edits, applies them only after approval, and never overwrites a target file." domain: pm
Maintains consistency across a documentation ecosystem where one source change (e.g., a new meeting note) should cascade updates to multiple downstream documents (PRD, presentation, project memory).
**This is NOT a background watcher.** This skill is the Claude-side processor that: 1. Reads a sync report or detects changes directly 2. Extracts actionable content from new/modified source files 3. Proposes specific edits to each downstream target 4. Applies changes only after user approval
The persistent detection layer runs outside Claude Code via `/pm:sync-init`:
| Component | Path | Purpose | |-----------|------|---------| | Orchestrator | `~/.claude/scripts/project-sync-orchestrator.sh` | Email search + file detection + report generation | | launchd agent | `~/Library/LaunchAgents/com.claude.project-sync.<name>.plist` | Background scheduler (every 2 hours) | | State dir | `~/.claude/state/<project-name>/` | Logs, timestamps, cached config (outside OneDrive) |
Each project needs `.sync-watch.json` in its root:
{
"project_name": "My Project",
"watch_dirs": ["docs/meeting-notes", "docs/research"],
"target_docs": {
"tier1": [
{
"path": "docs/PRD.html",
"name": "Product Requirements",
"update_from": ["meeting-notes", "research"],
"what": "Requirements, user stories, decisions"
}
],
"tier2": [
{
"path": "docs/presentation.html",
"name": "Stakeholder Deck",
"update_from": ["meeting-notes"],
"what": "Stakeholder updates, timeline changes"
}
]
},
"ignore_patterns": [".*", "*.tmp", "~$*"],
"file_types": [".md", ".html", ".docx", ".xlsx", ".pdf"]
}When you start a Claude Code session in a watched project with pending changes:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SYNC WATCHER ► 3 new/modified file(s) detected ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Say "process sync report" to review and apply updates.
**If `.sync-report.md` exists:** Read it — it lists all changed files with timestamps.
**If no report (manual invocation):**
!`bash ~/.claude/scripts/project-sync-orchestrator.sh "$(pwd)"`
Then read the generated `.sync-report.md` (written to project root or `~/.claude/state/<project-name>/sync-report.md`).
**If a specific file was passed as `$ARGUMENTS`:** Use that file as the sole source.
**If no changes detected:** Report "All documents are in sync." and stop.
For each new/modified file detected:
1. **Skip binaries** (`.docx`, `.xlsx`, `.pptx`, `.pdf`) — note them but don't read. Tell user: "Binary file detected — paste key content or convert to text." 2. **Read text files** (`.md`, `.html`) in full 3. **Extract structured data** from each:
For each source file, extract: - NEW STAKEHOLDERS: Name, Role, Email, Group - NEW DECISIONS: What was decided, by whom, date, impact - NEW REQUIREMENTS: Functional/non-functional, priority, acceptance criteria - NEW ACTION ITEMS: Owner, deadline, status - NEW ARCHITECTURE: Design changes, module updates, integration changes - NEW RISKS: Description, impact, mitigation - VERSION CHANGES: What changed from previous version
Read `.sync-watch.json` to determine which target docs need which types of updates.
For each target doc in `tier1` and `tier2`:
Present a structured proposal — DO NOT edit anything yet:
## Sync Proposal ### Source: Meeting-Notes-2026-03-17.md **New content extracted:** - 2 new stakeholders (Jane Doe, John Smith) - 1 decision (moved go-live to Q4) - 3 action items ### Updates Needed: **1. PRD.html** (Tier 1) - Section 05 Stakeholders: Add Jane Doe (Tax Director), John Smith (IT Lead) - Section 12 Timeline: Update go-live from Q3 → Q4 - Change log: Add v1.1 entry - [Show exact diff preview for each change] **2. Presentation.html** (Tier 1) - Slide 7 (Team): Add 2 stakeholder cards - Slide 12 (Timeline): Update milestone date - [Show exact diff preview] **3. CLAUDE.local.md** (Tier 1) - Recent Changes: Add dated entry - [Show exact content to append] **4. Stakeholder-Directory.xlsx** (Tier 2) - SKIP — binary file, manual update needed
Ask user:
For each approved target: 1. **Read the target file** (always re-read before editing — it may have changed) 2. **Apply edits** using the Edit tool (not Write — preserve unchanged content) 3. **Verify** the edit was applied correctly 4. **Log** what was changed
After all edits applied: 1. **Delete `.sync-report.md`** (consumed) 2. **Update `_temp/.last-sync-check`** timestamp 3. **Update `CLAUDE.local.md`** Recent Changes section with a dated entry summarizing what was synced 4. **Report** summary to user:
``
495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill,…
Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific…
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills…
Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences,…
Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.