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


