Skip to content
Back to skills

Doc Sync

ASecurity

Mirror the design/ directory to the project's ticket-system documentation store (GitHub wiki, Linear Docs). One-way push; design/ files unchanged; orphan pages pruned. Reads .project-conf.toml for the backend. Use /slopstop:doc-sync.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 18, 2026
ai-agentsgitbackenddocumentation

Works with

  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add iansmith/slopstop --skill doc-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iansmith-doc-sync/badge)](https://www.skillsdirectory.com/skills/iansmith-doc-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Mirror the design/ directory to the project's ticket-system documentation store (GitHub wiki, Linear Docs). One-way push; design/ files unchanged; orphan pages pruned. Reads .project-conf.toml for the backend. Use /slopstop:doc-sync.
disable-model-invocation: true
---

# /slopstop:doc-sync

Mirror `design/*.md` to the project's documentation store. One-way push — `design/` is the source of truth; the doc-store copy is overwritten on each sync.

> **Note for Claude agents:** Do NOT invoke this skill in the same turn as `Edit`/`Write` on `design/` files. Finish all edits first, then run the sync as a separate turn.

## Project scope

Read `.project-conf.toml` from cwd. Extract:

- `system` → `$SYSTEM` ∈ {`linear`, `jira`, `github`}
- `key`    → `$KEY`

If `.project-conf.toml` is missing: stop with `"No .project-conf.toml in cwd. Run /slopstop:gh-init or create the file manually."`

## Autonomous mode

This skill has no interactive prompts, so it runs unmodified in an autonomous session. There is no configuration to set: the `[autonomous]` table was deleted 2026-08-06, and autonomy is now a `--interactive` flag on `/slopstop:run` that this skill does not take.

## Arguments

None. Operates on the current `design/` directory.

## Pre-flight

- Verify `design/` exists in cwd. If not, stop with `"No design/ directory found in cwd."`
- **Dirty-design check (informational).** Run `git status --porcelain -- design/`. If non-empty, print: `"Note: design/ has uncommitted changes. The sync will push working-tree state."` Do not block — continue.
- Per-system pre-flight (below).

## Frontmatter parsing (all backends)

For each `design/*.md` (top-level only; skip subdirectories, non-`.md` files):

- Parse optional YAML frontmatter (`---` … `---`). Extract `title` and `slug`; default `title` to `<filename without .md>` and `slug` to `<filename without .md, lowercased>`.
- Strip frontmatter from the body before pushing.

## system = "github"

Clone the wiki repo, write converted docs, prune orphans, commit and push.

→ Read `skills/doc-sync/references/doc-sync-github.md`

## system = "linear"

Via Linear MCP, list existing docs, upsert each `design/` file, prune orphans.

→ Read `skills/doc-sync/references/doc-sync-linear.md`

## system = "jira"

Stop with `"Confluence sync not yet supported."`

## Rules

- **One-way only.** Never read from the doc store back into `design/`.
- **Committed `design/` files are never modified.** Only the temp clone (GH) or upstream docs (Linear) change.
- **Frontmatter is stripped** before push.
- **Orphan pruning is mandatory.** Pages without a `design/` counterpart get deleted.
- **Idempotent.** Re-running with no source changes produces no commit (GH) or no upstream writes (Linear).
- **Partial state on failure is acceptable.** Re-running after a fix completes the sync.

Files in this skill

  • SKILL.md2.8 KB
  • references/doc-sync-github.md1.8 KB
  • references/doc-sync-linear.md831 B
  • references/manifest.txt38 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.