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


