Skip to content
Agentmart
Submit a tool

cite-sync

Regenerate each project's docs/refs/manifest.toml from the workspace citation registry.

Skill by hsigstad

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hsigstad-cite-sync

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Regenerate each project's docs/refs/manifest.toml from the workspace citation registry. Walks docs/ and paper/ for [ns:key] tokens with external namespaces, looks each up in research/refs/registry.toml, and writes the public-facing subset (title + description, no internal paths) to the project manifest. Use when the user invokes /cite-sync, /cite-sync <slug>, or asks to 'sync the manifest', 'rebuild the refs manifest', 'regenerate citations manifest'.

Use cases: research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/cite-sync

What's inside

Skill name
cite-sync
Description
Regenerate each project's docs/refs/manifest.toml from the workspace citation registry. Walks docs/ and paper/ for [ns:key] tokens with external namespaces, looks each up in research/refs/registry.toml, and writes the public-facing subset (title + description, no internal paths) to the project manifest. Use when the user invokes /cite-sync, /cite-sync <slug>, or asks to 'sync the manifest', 'rebuild the refs manifest', 'regenerate citations manifest'.
License
MIT
Instructions
88 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# /cite-sync — Regenerate project citation manifests

Action skill: regenerates `docs/refs/manifest.toml` for each project from
the workspace citation registry at `research/refs/registry.toml`. Thin
wrapper over `research-kit/tools/citations.py --sync`.

This is a **write action**, not an audit. To validate citation tokens
without writing anything, use `/check cite`.

## What the manifest does

The project manifest is a privacy/scoping boundary. Coauthors who clone a
project repo without access to the full workspace registry need
human-readable titles for every external citation. `/cite-sync` builds
that file by:

1. Walking the project's `docs/` and `paper/` for `[ns:key]` tokens with
   **external** namespaces (`method`, `catalog`, `pipeline`, `var`,
   `idea`, `proj`, `inst`).
2. Looking each up in the workspace registry.
3. Writing the public-facing subset — `title` + `description` only, no
   paths, no internal pointers — to `docs/refs/manifest.toml`.

The manifest stays in sync with what the project actually cites: drop a
citation, `/cite-sync` removes the entry next run; add a new one,
`/cite-sync` adds it.

## How to invoke

| Form | What it does |
|------|--------------|
| `/cite-sync` | Regenerate manifests for every project in the workspace |
| `/cite-sync <slug>` | Regenerate one project's manifest |
| `/cite-sync --dry-run` | Show the diff per project, don't write |

Raw command:

```bash
python3 ~/research/research-kit/tools/citations.py [<slug>] --sync
```

## Procedure

### 1. Run in dry-run mode first

```bash
python3 $ROOT/research-kit/tools/citations.py [<slug>] --sync --dry-run
```

Surface the per-project diff: which projects would change, and the
added/removed entries. If nothing would change, exit cleanly with
"manifests already in sync."

### 2. Ask before writing

If any project would change, present the diff and ask for confirmation.
Don't auto-apply — even though `/cite-sync` is an action skill, the
manifests live in git and the user should see what's about to land.

### 3. Apply

```bash
python3 $ROOT/research-kit/tools/citations.py [<slug>] --sync
```

Report what changed per project.

### 4. Suggest commit

After writing, list the projects with modified manifests and ask whether
to commit per-repo. Don't auto-push.

## Common failures

- **Registry not found.** If `research/refs/registry.toml` is missing,
  surface the path and stop. Don't try to create the registry.
- **Unresolved external citation.** A `[ns:key]` token in a project doc
  has no matching registry entry. The token is silently dropped from the
  manifest (since there's nothing to write). Surface as a warning and
  suggest `/check cite` to see the full list of unresolved citations.

## Related

- `/check cite` — validate citation tokens (no writes).
- `/check` — full project-conventions audit.
- Citation registry spec: `workspace/research/rules/citations.md`.

From hsigstad/research-kit, MIT.

More from hsigstad/research-kit

Signals

Stars
0
Forks
1
Open issues
1
Last commit (this folder)
Jul 5, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hsigstad

Cite this page

cite-sync skill. Agent Mart. https://agentmart.dev/skills/hsigstad-cite-sync (last updated 2026-10-24)