Agent Skills
› szw321127/repowise
› pk-preflight
pk-preflight
GitHub在实施任务前检查项目知识库,检索匹配的实践和本地证据提示。若缺少知识文件则报告无状态并建议初始化,否则返回上下文摘要、匹配理由及证据路径。
Trigger Scenarios
用户希望在开始任务前审查项目知识
需要获取与当前任务相关的最佳实践或本地证据线索
Install
npx skills add szw321127/repowise --skill pk-preflight -g -y
SKILL.md
Frontmatter
{
"name": "pk-preflight",
"description": "Use when the user wants to inspect project knowledge before starting a task and retrieve matching practices or local evidence hints."
}
PK Preflight
Treat this skill as the project-knowledge entrypoint before implementation work starts.
Required Behavior
- Accept a project root or
.project-knowledge/directory plus a task description. - Resolve
../../scripts/pk-preflight.mjsrelative to thisSKILL.mdfile. - The wrapper delegates to
preflight-session.mjs. - Report the result in Chinese, including whether existing knowledge was hit, which practices/options were recommended, why they matched via
matchReasons, what task intent was inferred, or which local evidence paths should be inspected. - If
.project-knowledge/project-profile.mdis missing, reportmode: no-knowledgeand do not scan local code or evidence; suggestpk-initonly if the user wants this project to opt in. - Treat the output as a context-budgeted summary: by default only the top matching practices are returned,
source_evidenceis a preview, andsource_evidence_count/source_evidence_truncatedindicate whether more evidence exists. source_evidencepreviews andevidenceHintsexclude missing evidence paths; if expected evidence is absent, ask the user to runpk-lintto inspectnode-missing-evidence-pathfindings.- If
evidenceHintsTruncatedis true, inspect the referenced Markdown node or source files only when the current task needs deeper verification. - Matching uses node keywords plus deterministic task intent (
taskKinds,technologies,pathHints,operationHints). Mentionapplies_when/does_not_apply_whenhits or exclusions when relevant. - Keep preflight read-only by default. Only record
preflight_hitsandlast_hit_atinstate/usage-index.jsonwhen the caller explicitly opts in with--record-hitsorrecordHits: true.
Version History
- fa4164e Current 2026-07-24 16:08


