packages/plugins/plugin-llm-wiki/skills/paperclip-distill/SKILL.md
Distill Paperclip project, issue, comment, and document activity into durable wiki pages. The success criterion is wiki-insightful, not procedural: a reader who has never seen Paperclip should learn what the project is, what was decided, what is at risk, and what the current state is — without scanning a list of ## [YYYY-MM-DD] headers.
distill-paperclip-now request from the UI.If the operation issue is operationType: "ingest" (raw file) or operationType: "query", this is the wrong skill — use wiki-ingest or wiki-query.
In Phase 1, every Paperclip distill, backfill, and cursor-window operation writes into the
default wiki space. The operation issue should always carry spaceSlug: "default". If an
operation issue passes any other slug, stop and surface the mismatch in a comment — do not
write Paperclip-derived pages into a non-default space.
This rule is destination-only. The Paperclip source scope (which projects, root issues, comments, documents are read) is set elsewhere in the operation issue and is independent of the destination.
wiki/projects/<slug>/standup.md page path.wiki/projects/<slug>/index.md page path.wikiId, spaceSlug, space root, and the target space's AGENTS.md for page conventions.wiki/projects/<slug>/standup.md, wiki/projects/<slug>/index.md, decisions.md, and history.md if they already exist (so you write a patch, not a rewrite).Do not treat Paperclip assets/attachments or issue work products as source text for this skill.
/api/assets/:id/content.url, preview URL, artifact URL, or other linked destination from this skill.The deterministic templating this skill replaces produced these failure modes — do not reproduce them:
## [2026-04-15] paperclip-distill | proposed belong in wiki/log.md, not in the project page. The project page is durable knowledge; the log is the audit trail.Issue mix: 3 todo, 5 in_progress, 2 done tells the reader nothing they could not read off Paperclip directly. State what is happening and why it matters, then cite the issues that constitute the evidence.- PAP-1234: title (in_progress, updated 2026-...) is an issue list, not a wiki page. Group issues by what they are about (a decision, a risk, a workstream) and cite multiple issues per bullet when they share a story.current_as_of in frontmatter is enough.> ⚠ reversed by ... callouts when something later overrides them.AGENTS.md for page conventions: filename style, YAML frontmatter shape, link style, voice. Always pass the operation issue's wikiId and spaceSlug to LLM Wiki tools.wiki/projects/<slug>/standup.md first. Every Paperclip project represented in the wiki must have this file. It is the executive standup: where the project stands today, what changed recently, what is blocked or risky, and what happens next. Use stable sections, in this order:
type: project-standup, project: <slug>, current_as_of: YYYY-MM-DD, sources).wiki/log.md and Paperclip comments.wiki/projects/<slug>/index.md with these stable sections, in this order:
type: project, current_as_of: YYYY-MM-DD, tags, sources).### Decision — short title then a paragraph; never a bare bullet list._(none)_.wiki/projects/<slug>/decisions.md when the project has accumulated more decisions than the project page can carry without becoming a wall of text. Each decision is a ## section with: short title, accepted/reversed/superseded status, one-paragraph rationale, citing the source. Do not duplicate decisions already on the project page — link instead.wiki/projects/<slug>/history.md for a compact narrative timeline of meaningful project changes. Not an issue dump — group by phase ("Discovery", "Architecture", "Build", "Stabilisation"), not by date. Each phase is a paragraph that cites the 2–4 issues that defined it.wiki/index.md under the ## Projects section — one line per durable project page with a one-sentence summary of the project's purpose, plus a link to the current wiki/projects/<slug>/standup.md when present.wiki/log.md entry — this is where the datestamp belongs:
## [YYYY-MM-DD] paperclip-distill | <project name>
- standup: wiki/projects/<slug>/standup.md
- page: wiki/projects/<slug>/index.md
- source hash: `<hash>`
- cursor window: <start> → <end>
- notes: <one line on what changed in this distill, e.g. "decisions section grew with PAP-X reversal", "low-signal window, no page changes">
human_review_required: true on the patch. Do not paper over them.PAP-3179), not opaque UUIDs.## Schema migration not ## Active Issues.If the bundle has no durable signal — no decisions, no risk, no completed work, only routine status churn — do not write a project page. Instead:
paperclip-distill | low-signal skip log entry naming the cursor window.Before closing the operation issue:
wiki/projects/<slug>/standup.md exists for the represented project and reads as an executive current-state update, not a raw issue dump.current_as_of (in frontmatter), zero ## [YYYY-MM-DD] headings (those go to the log).human_review_required: true when the deployment is authenticated/public.wiki/index.md and wiki/log.md are updated.raw/ was modified.wiki_search, wiki_read_page, wiki_write_page, wiki_list_sources, wiki_read_source. Always include the operation issue's wikiId and spaceSlug. The Paperclip source bundle arrives as part of the operation context — you do not need to assemble it.