Paperclip Record Strategy
Create or select the missing Paperclip planning chain:
Goal tree -> linked Project -> Parent Issue + plan document
References
Read these first:
references/CONTEXT.mdreferences/docs/paperclip-operator/control-plane.mdreferences/docs/paperclip-operator/workflow.mdreferences/docs/paperclip-operator/cli-contract.mdreferences/docs/paperclip-operator/integration-matrix.md
If these project docs are missing, run paperclip-setup first to scaffold them from bundled templates.
Process
- Confirm there is an approved clarification summary.
- Inspect current Paperclip context and company.
- List existing goals and projects using the CLI-first ladder in
integration-matrix.md. - Decide with the operator whether this is:
- a new root goal or child goal
- an existing goal
- a new project under an existing goal
- an existing project
- a new parent issue under an existing project
- Draft the proposed planning chain.
- Ask for approval before mutating Paperclip.
- Create or update only the approved missing parts.
- Report the resulting Goal, Project, Parent Issue, and plan document link or identifier.
Wiki Source Material
When the approved clarification summary or operator prompt references a Paperclip wiki URL, wiki page path, or captured wiki source, use paperclip-wiki-fetch before drafting the planning chain or plan document. Record the fetched page title, path, update time, and hash in the plan's source notes when available, then use the markdown body as source material.
If wiki credentials, company scope, wiki id, space slug, or page path are missing and cannot be inferred from Paperclip context, stop and ask for the missing input instead of drafting from an unfetched wiki reference.
If the operator explicitly asks to publish or sync the resulting strategy artifact to wiki, complete the Paperclip planning-chain proposal first, then use paperclip-wiki-manage for the wiki mutation. Do not replace the parent issue plan document with wiki as the default source of truth.
Goal Fields
Paperclip goals have native level, status, parentId, and ownerAgentId fields. Do not flatten this structure into titles.
Default mapping:
companyfor a top-level durable company outcome. Prefer an active root company goal when the goal is the company north star.teamfor durable team, function, motion, channel, domain, or strategy child goals. SetparentIdto the parent company or team goal.agentonly when a specific Paperclip agent owns the goal. SetownerAgentId.taskrarely. Prefer Issues for campaigns, months, sprints, lead lists, draft work, and executable tasks.
Every proposed goal mutation must show title, level, status, parentId, and ownerAgentId before approval.
Surface Rules
Read integration-matrix.md before choosing tools.
For this skill:
- Use CLI first when it supports the exact native field and can verify the result.
- Use dedicated Paperclip MCP tools when CLI lacks the operation or would require brittle parsing.
- Use native
paperclipai goal create/update,project create/update, and issue commands when present and their JSON readback verifies the required fields. - Use MCP
paperclipApiRequestonly for native fields not exposed by the installed CLI or dedicated MCP tools. - Use direct REST only when CLI and MCP are unavailable or broken.
- Use keyed issue documents for the parent Issue
plan; preferpaperclipai issue document:get,document:put, anddocument:revisionswhen present, then MCP document tools.
Before the first MCP API request or direct REST mutation:
- Derive
apiBaseandcompanyIdfrompaperclipai context show --json. - Run
paperclipai auth whoami --jsonto confirm the active auth source. - If needed, inspect the stored board credential shape from
~/.paperclip/auth.jsonwithout printing secrets. - Confirm the target read path works before writing.
Never print bearer tokens. If auth cannot be derived, stop and ask the operator for the required context instead of degrading the strategy artifact.
Strategy Plan Document
Use a parent issue plan document for the strategy artifact when supported.
Recommended plan shape:
## Outcome
## Why This Matters
## Success Criteria
## Scope
## Non-Goals
## Constraints
## Risks
## Autonomy Level
## Validation
## Stop Conditions
## Planning Notes
Use paperclipai issue document:put <issueId> plan --body-file <path> --json when available. On updates, read the current document and pass its base revision id so stale writes fail with 409 Conflict. If CLI cannot write keyed documents, use MCP document tools. If no dedicated MCP tool is available, use paperclipApiRequest and explain the path used. Only embed the plan in the parent issue description as a last resort after CLI, MCP, and API access are unavailable or explicitly rejected by the operator.
Mutation Rule
Always present the proposed Goal, Project, Parent Issue, and plan body before creating or updating Paperclip.