Logo di Pmstudio Sync

Pmstudio Sync

Community
coco-research
pmstudio-sync

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.

Panoramica

Pubblicato dacoco-research
Repositorycoco
Nome della skillpmstudio-sync
Stelle
550
Fork
12
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da coco-research su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Pmstudio Sync in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/coco-research/coco/tree/main/skills/doc-sync
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coco-research/coco.git /tmp/coco
mkdir -p .claude/skills
cp -r /tmp/coco/skills/doc-sync .claude/skills/pmstudio-sync
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Pmstudio Sync in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Pmstudio Sync non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Pmstudio Sync non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Doc Sync — Cascading Document Updater

What This Skill Does

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

Prerequisites

Infrastructure (one-time setup)

The persistent detection layer runs outside Claude Code via /pm:sync-init:

ComponentPathPurpose
Orchestrator~/.claude/scripts/project-sync-orchestrator.shEmail search + file detection + report generation
launchd agent~/Library/LaunchAgents/com.claude.project-sync.<name>.plistBackground scheduler (every 2 hours)
State dir~/.claude/state/<project-name>/Logs, timestamps, cached config (outside OneDrive)

Per-Project Config

Each project needs .sync-watch.json in its root:

json
{
  "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"]
}

Invocation

Automatic (via session hook)

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.

Manual

  • /doc-sync — check for changes now and process
  • /doc-sync path/to/new-file.md — process a specific source file
  • process sync report — process a pending .sync-report.md

Process

Step 1: Detect Changes

If .sync-report.md exists: Read it — it lists all changed files with timestamps.

If no report (manual invocation):

bash
!`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.

Step 2: Read Source Files

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

Step 3: Read Config & Map Dependencies

Read .sync-watch.json to determine which target docs need which types of updates.

For each target doc in tier1 and tier2:

  • Check if any source file matches its update_from patterns
  • If yes → read the target doc to understand current state
  • Identify exactly WHERE in the target doc the new content should go

Step 4: Propose Updates

Present a structured proposal — DO NOT edit anything yet:

markdown
## 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

Step 5: Get Approval

Ask user:

  • "Apply all updates?" → proceed with all
  • "Apply selectively?" → let user pick which targets
  • "Skip for now?" → clean up report, do nothing
  • User may also request modifications to the proposal

Step 6: Apply Updates

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

Step 7: Clean Up & Update Memory

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:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 DOC SYNC ► COMPLETE ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Source files processed: 3
Documents updated: 4
  ✓ PRD.html — 3 edits (stakeholders, timeline, changelog)
  ✓ Presentation.html — 2 edits (team slide, timeline)
  ✓ CLAUDE.local.md — 1 edit (recent changes)
  ⚠ Stakeholder-Directory.xlsx — skipped (binary)

Manual follow-up needed:
  - Update Stakeholder-Directory.xlsx with 2 new contacts

Critical Rules

  1. NEVER edit without approval. Always show the proposal first. The user must explicitly approve.
  2. NEVER fabricate content. Only extract what's actually written in source files. If a meeting note doesn't mention a stakeholder's email, don't guess it.
  3. NEVER overwrite — always append/insert. Use Edit tool with precise old_string matching. Never rewrite entire files.
  4. ALWAYS read target docs before editing. They may have been modified since the report was generated.
  5. ALWAYS preserve existing formatting. Match the target doc's style (HTML structure, CSS classes, indentation patterns).
  6. Binary files are report-only. Flag them for manual update, don't attempt to modify.
  7. Version bumps: If the target doc has a version badge/number, increment it and add a changelog entry.

Adding This to a New Project

  1. Create .sync-watch.json in the project root (use template above)
  2. Run /pm:sync-init to set up the launchd cron job
  3. Done — the background orchestrator runs every 2 hours and generates .sync-report.md when changes are detected

Dependency Graph Pattern

For complex projects, document the update cascade in .sync-watch.json:

Meeting Notes ──→ PRD ──→ PRD Presentation
       │                         │
       ├──→ Main Presentation ←──┘
       │
       └──→ CLAUDE.local.md ←── (all changes)

This ensures that when a meeting note creates a PRD change, and that PRD change should also update the presentation, the full cascade is handled in one sync pass.

Domande frequenti

Cosa fa la skill IA Pmstudio Sync?

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.

Perché usare Pmstudio Sync su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Pmstudio Sync è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Pmstudio Sync in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/coco-research/coco/tree/main/skills/doc-sync. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Pmstudio Sync?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Pmstudio Sync?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Pmstudio Sync: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Pmstudio Sync è gratuita?

È pubblicata su GitHub da coco-research. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇