papercut
Log small agent workflow friction that affected the work to a user-global PAPERCUTS.jsonl file with the bundled shell helper.
- License 许可
- MIT
- 所属仓库
- emo-eth/skills
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- papercut
- license
- MIT
- description
- Log small agent workflow friction that affected the work to a user-global PAPERCUTS.jsonl file with the bundled shell helper.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档agents/openai.yaml43 B
- 脚本scripts/migrate_papercuts.py4.0 KB
- 脚本scripts/papercut_records.py8.9 KB
- 脚本scripts/papercut.sh9.1 KB
- 脚本tests/test_papercut_sync.py20.5 KB
03 SKILL.md 正文
Papercut Logging
Use this skill when a small workflow friction affects how the work goes: it costs time, causes confusion, forces a retry or workaround, or makes the result less reliable. Log it while the context is fresh. Do not turn this into an eligibility review.
The helper writes to one user-global append-only JSONL file, not the repository. The default is ~/PAPERCUTS.jsonl; set PAPERCUTS_PATH or pass --path to choose another file.
Resolve the helper
Run this once in the shell where you will log the papercut. Set PAPERCUT_SKILL_DIR to the directory containing this SKILL.md when the skill system gives you that path. The other candidates cover the standard global skill locations.
papercut_skill_script=""
for papercut_candidate in \
"${PAPERCUT_SKILL_DIR:-}/scripts/papercut.sh" \
"${CODEX_HOME:-$HOME/.codex}/skills/papercut/scripts/papercut.sh" \
"$HOME/.agents/skills/papercut/scripts/papercut.sh" \
"$HOME/.claude/skills/papercut/scripts/papercut.sh" \
"$HOME/dev/skills/skills/papercut/scripts/papercut.sh"
do
if [[ -n "$papercut_candidate" && -f "$papercut_candidate" ]]; then
papercut_skill_script="$papercut_candidate"
break
fi
done
if [[ -z "$papercut_skill_script" ]]; then
echo "papercut skill: scripts/papercut.sh was not found" >&2
exit 127
fi
Use the resolved path directly:
bash "$papercut_skill_script" -m <agent-or-model> "what you were doing -> what got in the way"
bash "$papercut_skill_script" --agent codex --file docs/setup.md "Following setup docs -> the command name had changed and the doc still used the old one."
For repeated calls in one interactive shell, an optional shell-local function avoids repeating bash without installing a command globally:
papercut() { bash "$papercut_skill_script" "$@"; }
papercut -m codex "what you were doing -> what got in the way"
Rules
- Log workflow or system friction when it affects the work, even if it is small, happens once, comes from a third party, or has no known fix.
- The effect on the work is enough. Do not require recurrence, ownership, severity, a proposed action, or proof that the note will matter later.
- Skip irrelevant oddities that had no effect on the work and self-corrected mistakes that the system did not contribute to.
- When unsure whether an effect was important enough, log it; importance is not a separate threshold.
- Log it in the moment; do not wait for a perfect postmortem.
- Keep it to one or two sentences. Include the work context, the friction, and its effect.
- Use
--file <path>when one file caused the friction. - Do not put secrets, tokens, private URLs, or copied logs with credentials in the message.
- This is for small workflow problems, not big bugs. Real bugs still need the normal tracker or review path.
For example, do not log "vendor --help returned an unusual exit code" when the work was unaffected. Do log it when that behavior misled you, forced a workaround, delayed the task, or made the result uncertain, even if the tool is third-party and you do not know the fix.
Each entry is a single serialized JSON record with schema springfield.papercut.v3, an RFC 4122 UUID, UTC timestamp, repository identity, worktree, branch (or detached commit), current folder, agent, related files, and message. Paths are local metadata; do not log secrets in paths or messages.
Output
The CLI appends to the global PAPERCUTS.jsonl path, creating its parent directory and file if needed. The default is ~/PAPERCUTS.jsonl; set PAPERCUTS_PATH or pass --path to choose another file. Output is never written into the repository.
--repo <path> sets the project root used to compute relative metadata (worktree, branch or detached commit, and folder); it does not change the global output location.
04 同仓库更多 Skills
system-vibe
Personal operating-system contract for the home fleet, sync, SSH, skills, Herdr, and local inference. Use when diagnosing or changing machines, chezmoi, SSH, skill distribution, Windows sleep/wake, or the local model router. This is the qualitative list of what must stay true; agents invent enforcement from the clauses, not from tribal setup lore.
rubber-stamp-travel-field-note
Use for rubber-stamp travel field-note photo posters.
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
unslop
Cut AI tells from any writing. Must always apply.
typescript-best-practices
TypeScript best practices. Use when reading or editing any .ts or .tsx file.
technical-writing
Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.