kernullist/pseudoforge/kernel-corpus-analysis
Claude Code and agent skill by kernullist/pseudoforge
- community
Checking that the SKILL.md file is still in the repository.
Use when answering questions about PseudoForge kernel corpus packs through MCP or local evidence packs, including kernel lifecycle, subsystem, function, callgraph, import/string, and evidence-grounded reverse-engineering analysis.
Install
npx vskill@latest install kernullist/pseudoforge/kernel-corpus-analysisSKILL.md
Kernel Corpus Analysis
Use this skill for PseudoForge Kernel Corpus analysis. The corpus data stays outside this skill; this file only defines the operating procedure and answer contracts.
Hard rule for every major claim:
First Moves
- Locate the pack root from the user, thread context, MCP config, or a local path such as
<workspace>/pseudoforge_out/kernel_corpus/<target>. - Run the local freshness validator when the pack may be old or when derived evidence packs/atlas pages already exist.
- Call
corpus_statusbefore analysis. Check schema, function count, skipped count, manifest path, SQLite path, and warnings. - Use MCP first when available. If MCP is unavailable, use the local CLIs under
tools/kernel_corpus/. - For cross-build or pack-revision drift questions, call
compare_canonical_answersfirst when available. Compare by canonical topic id and normalized function name; treat EAs as build-local evidence. - For broad lifecycle, subsystem, or security-engineering questions, call
plan_kernel_answerfirst when available. If the planner is unavailable, callfind_canonical_answersorlist_canonical_answersbefore live retrieval when canonical tools are available. - For multi-topic navigation, shared-function analysis, or "what connects these areas?" questions, call
get_topic_graph,find_topic_paths, orget_function_roleswhen available. - Prefer focused evidence packs over loading broad raw corpus output.
- Do not answer from generic Windows internals alone.
Local freshness fallback:
Local lifecycle fallback:
Supported lifecycle topics:
process_objectthread_objectfile_objectdriver_objectdevice_objectregistry_keysection_objectmodule_image
Local subsystem atlas fallback:
Local answer harness fallback:
Local canonical answer fallback:
Local answer planner fallback:
Local answer eval fallback:
Local canonical drift fallback:
Local knowledge graph fallback:
Tool Workflow
- Cross-build drift questions: call
compare_canonical_answersfor compact JSON, orget_canonical_drift_reportfor bounded Markdown. Inspect missing topics, quality/status changes, same-name different-EA entries, selected-function additions/removals, phase changes, edge changes, and stale quality warnings before drafting. - Relationship/navigation questions: call
get_topic_graphfor a bounded subgraph,find_topic_pathsfor topic-to-topic paths, orget_function_rolesfor all topic roles of a function. Use graph output to choose follow-up canonical answers, evidence packs,get_function, orget_neighbors. - Canonical answer questions: call
find_canonical_answersfor the user's wording, thenget_canonical_answerfor the best passing topic. Inspectquality.mdandgaps.md; use degraded topics only with caveats, and use failed topics only as retrieval hints. Cite the canonical topic id alongside EA, function name, and artifact path. - Broad natural-language questions: call
plan_kernel_answerand follow its selected canonical candidates, live retrieval steps, citation contract, and stop conditions before drafting. The planner does not generate final prose. - Lifecycle questions: call
trace_lifecyclefirst withtopicsuch asprocess_object,thread_object,file_object,driver_object,device_object,registry_key,section_object, ormodule_image, then inspect high-impact functions withget_function, and useget_neighborsfor ambiguous transitions. - Function questions: use
search_functionsor exact EA lookup withget_function; request disassembly when pseudocode precision matters, inspect data refs, then cite cleaned/raw/disassembly/summary artifact paths. - Subsystem questions: generate or inspect atlas pages first when available; then search by names, tags, imports, and strings; expand nearby callers/callees; build an evidence pack for broad answers.
- Import/string/data-reference questions: use
search_by_import,search_by_string, orsearch_by_data_ref, then verify withget_function. - Broad answers: prefer a passing canonical answer when available, then call
build_evidence_packortrace_lifecyclefor verification, gap filling, or unsupported topic boundaries. - Freshness checks: use
validate_pack.pybefore reusing older pack roots, lifecycle evidence packs, or atlas pages. Treat validator errors as stop-and-rebuild signals. - Durable handoff or review: call the local answer harness to generate the bounded prompt and validate the drafted Markdown answer. For repeatable workflow regression, run
answer_eval.pyagainst the pack and drafted answers.
Canonical Answer Workflow
Use canonical answers as the first evidence layer only after freshness and quality checks:
- Validate pack freshness before trusting canonical artifacts.
- Call
find_canonical_answersfor natural-language questions, orlist_canonical_answerswhen filtering by priority, mode, or quality status. - Prefer canonical answers with
quality.status == passand zero validation warnings. - Inspect
quality.mdandgaps.mdbefore making polished claims. - Use live retrieval with
search_functions,get_function,get_neighbors, ortrace_lifecycleto verify high-impact claims and fill gaps. - Cite canonical topic id, EA, function name, and artifact path for important claims.
Decision matrix:
| State | Action | |
|---|---|---|
| canonical pass + fresh pack | Use as first evidence layer, then verify high-impact claims. | |
| canonical degraded + fresh pack | Use only with explicit caveats and live verification of gaps. | |
| canonical fail + fresh pack | Do not use as final-answer evidence; use only as a tuning or retrieval hint. | |
| canonical missing + fresh pack | Run live retrieval or generate the missing topic bundle. | |
| canonical present + stale pack | Rebuild or warn before use; stale canonical artifacts do not override fresh corpus evidence. |
If a review queue exists, prefer topics with review_state == approved and quality.status == pass. Treat pass without approval as generated but unreviewed, not as human-reviewed truth. Treat stale approvals as review debt.
Canonical answers never override fresher function artifacts. If live retrieval contradicts a canonical draft, cite the fresh evidence and call out the canonical artifact as stale, degraded, or needing regeneration.
Evidence Discipline
- Cite EA, function name, and artifact path for important claims.
- Separate confirmed corpus evidence from inference.
- Treat lifecycle phase labels and LLM rename suggestions as hypotheses until supported by function evidence or edges.
- Expect broad graph-neighbor lifecycle candidates from another object topic to be lower-quality unless the evidence pack records exact seed or target-topic evidence.
- State gaps from skipped functions, missing exact seeds, missing edges, stale packs, or low-confidence phase assignments.
- Do not claim a transition is proven unless the evidence pack contains a supporting edge or function relationship.
- Do not hide validator errors. Rebuild stale packs or derived artifacts before answering, unless the user explicitly wants a stale-pack comparison.
- Treat answer harness warnings as citation lint that must be reviewed before reusing an answer.
- Treat answer eval results as routing and citation regression signals, not expert review of the final reverse-engineering conclusion.
- Treat canonical quality status as retrieval quality metadata:
passcan be used as the first evidence layer,degradedrequires explicit caveats and live verification, andfailis not final-answer evidence. - For drift answers, cite both pack labels or roots, canonical topic id, function name, both EAs when relevant, and artifact paths from both sides. Do not describe different EAs as semantic drift unless function evidence or selected role/edge/phase changes support that inference.
- Treat knowledge graph bridge functions, shared-function counts, topic paths, and centrality-like observations as navigation hints. Do not present them as proof without function artifacts or evidence packs.
- Do not mutate the source corpus or IDB. Writing a derived evidence pack is acceptable only when the workflow or user asks for a durable artifact.
Korean Query Mapping
Map Korean questions into corpus search terms and lifecycle topics before retrieval:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtools/kernel_corpus/skills/kernel-corpus-analysis/SKILL.md
Popularity
- Repository stars
- 158
- Repository forks
- 14
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kernullist/pseudoforge/kernel-corpus-analysis)