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


