skills/code-investigation-guide/SKILL.md
How to research and present findings about a codebase. Reading code, tracing flows, summarizing architecture. Use when understanding, exploring or explaining existing code before proposing changes.
npx skillsauth add jitsusama/agentic-harness.pi code-investigation-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
RTK may compress output from bash commands. Pi's native
grep, find and ls tools bypass RTK entirely (they
aren't bash), so prefer those for searching and listing.
For piped commands (git log | head -20), RTK rewrites
the left side but passes the right side through unchanged.
The pipe target receives RTK-compressed input.
When running git commands through bash during investigation,
be aware that RTK caps git log at 10 entries, injects
--no-merges silently and truncates lines. If you need
full commit history or complete messages, prefix the
command with NORTK=1 to bypass compression:
NORTK=1 git log --oneline -20
The NORTK=1 prefix is stripped before execution; bash
never sees it as an environment variable. It works on any
bash command, not just git.
development
Structure of a quest README and the documents that live under it: frontmatter shape, the four core and four optional body sections, emoji glyphs, ID format, alias notation, Cast bullets and Journey entries. Use when writing or editing a quest README, a plan, research, brief or report document under a quest. Pairs with quest-convention for choices like kind, promotion and reordering. Follow the prose-standard for voice.
tools
Operational conventions for the quest system: when to use a quest versus a subquest versus a sidequest, when to scaffold a plan or research document, how to reorder priorities, when to add optional sections, when to conclude versus retire, the resuscitate pattern. Use when driving the quest tool, deciding kind, promoting or parking work, or organising a project as quests. Pairs with quest-format for the on-disk shape.
development
Markdown structure rules: Title Case headings with their exceptions, the line-width target and its legitimate exceptions, reference-style links, fenced code blocks with language tags, tables and lists. Use when writing or editing any markdown file (README, AGENTS, docs, plans, skill files), or when adding a heading, link, table or code block. Owns markdown structure; pairs with prose-standard, which owns voice, grammar, spelling and punctuation.
tools
How to measure whether convention corrections keep recurring in the pi session logs, by category and by week. Use to record a baseline before the convention gates take effect and to re-run afterwards to confirm the recurring categories bend down. Pairs with the convention gates (pr-guardian, issue-guardian, commit-guardian, slack-integration) and the convention-context extension.