AGENT SKILL

preflight-checklist

Mandatory session-initialization closer and Startup Gate audit. Always loaded. Runs EXACTLY ONCE at session start, after all skill loading completes: verifies Startup Gate completion with evidence (mirror sync, forced import, discovery, activation, memory priming, MCP declaration, think block), runs dynamic session checks derived from the active skill set (mode states, delegation readiness), and reports a compact evidence-backed verdict table to the user before the first task output. Any FAIL is fixed before proceeding.

License 许可
BSD-3-Clause
所属仓库
kalaverin/skills
最近更新
2026-11-15
Stars
★ 1
Forks
0

01 前言 Front Matter

name
preflight-checklist
version
0.1.0
requires
[ "bootstrap" ]
triggers
{ "always": true, "reason": "Every session must close its initialization with an evidence-backed audit of the Startup Gate." }
description
Mandatory session-initialization closer and Startup Gate audit. Always loaded. Runs EXACTLY ONCE at session start, after all skill loading completes: verifies Startup Gate completion with evidence (mirror sync, forced import, discovery, activation, memory priming, MCP declaration, think block), runs dynamic session checks derived from the active skill set (mode states, delegation readiness), and reports a compact evidence-backed verdict table to the user before the first task output. Any FAIL is fixed before proceeding.

02 资源文件 1

03 SKILL.md 正文

SKILL: Pre-flight Checklist (Session Initialization Closer)

This skill is the closing ceremony of session initialization and the evidence-based audit of the Startup Gate. It runs exactly once per session, immediately after the Startup Gate (bootstrap §1, steps 1–8) completes and before the first task output. It is NOT a per-action check: mid-session compliance is owned by the individual skills, never by re-running preflight.

1. Evidence Discipline (HARD)

[ref: #pfc-evidence]

  • A checklist item passes ONLY on evidence: a command output, a tool result, or a file actually read in this session. "Checked mentally" is never evidence.
  • The verdict is SHOWN to the user explicitly: compact and laconic, but shown — one line per item.
  • Any FAIL: fix the cause, re-run the affected item, then proceed. The user's first request stays pending until the table is all-PASS.

2. The Checklist

[ref: #pfc-checklist]

Part A — Startup Gate audit (static order, every session):

  1. Mirror sync — evidence: just sync-skills-mirror output (SYNCED/CREATED). If it printed INSYNC while uncommitted skill edits exist, apply the documented lag workaround (notes/project/skills_mirror_uncommitted_lag) and re-run.
  2. Forced import — evidence: frontmatter-protocol/SKILL.md and references/include.md read in full this session.
  3. Discovery & evaluation — evidence: the batch header extraction ran; the loaded skill set is named (always-skills mandatory-tools, serena-protocol, read-for-comments present among them).
  4. Project activation — evidence: activate_project result received.
  5. Memory priming — evidence: agent/rules and agent/allowed_violations read.
  6. MCP groups declared — evidence: the think block's applied: mcp-… line.
  7. Think block produced — evidence: the gate's proof-of-work block with both applied: lines.

Part B — dynamic session checks (derived from the active skill set; skip what is not active):

  1. Mode states — every runtime: true skill's state declared (e.g. discuss-first: off); no pending user question left unanswered.
  2. Delegation readiness — evidence: the subagent model is chosen per subagents-protocol [ref: #sp-model-selection] (the single source of model names) and passed explicitly on launches; the mirror is fresh enough for subagents (they read skills ONLY from .kimi/mirror/).

3. Verdict Format

[ref: #pfc-verdict]

Print the table to the user, one line per item, before the first task output:

PREFLIGHT <YYYY-MM-DDTHH:MM:SSZ>
A1 mirror sync ........... PASS (SYNCED/INSYNC/CREATED)
A2 forced import ......... PASS (core + include)
A3 discovery ............. PASS (N skills loaded)
A4 activation ............ PASS (<project>)
A5 memory priming ........ PASS (agent/rules, agent/allowed_violations)
A6 MCP declared .......... PASS (groups…)
A7 think block ........... PASS
B8 mode states ........... PASS (discuss-first: off)
B9 delegation readiness .. PASS (model explicit; mirror fresh)

One line per item, evidence in parentheses, nothing else. On any FAIL: state the cause in the same line, fix it, re-print the corrected line, then continue.

4. Timing and Non-Repetition

[ref: #pfc-timing]

  • Runs ONCE, at session start, as the last initialization act. The first user message remains pending until the table prints all-PASS.
  • NEVER re-runs mid-session: compliance after initialization (model parameters, mirror lag, mode gates, MCP routing) is enforced by the owning skills at the moment of action.
  • If the session's loaded set changes materially (new skill family activated), the new skill's own rules govern — preflight is not re-opened.

Violation protocol: if you answer the user's first request without printing the evidence-backed preflight table, halt immediately, discard the output, run the checklist, print the verdict, and only then proceed.

04 同仓库更多 Skills

kalaverin
kalaverin/skills

todo-protocol

Mandatory protocol for using the SetTodoList tool. Governs when to create a todo list, how to update it without violating immutability rules, how to synchronize item status after every tool call, and the forbidden mutations. Always active.

★ 1
kalaverin
kalaverin/skills

subagents-protocol

Mandatory protocol for delegating work to built-in subagents (coder, explore, plan), also called our bots by users. Always active. Owns the context-hygiene delegation test (material vs answer, cost balance, warm-instance reuse), launch parameters (mandatory explicit `model`), the single-source model-selection table, answer budgets, degradation handling, the launch checklist, and the role library for delegated review/audit with intent routing (`references/roles.md`).

★ 1
kalaverin
kalaverin/skills

serena-protocol

MANDATORY skill for Serena (MCP) memory, knowledge base, and symbolic code exploration operations. Use whenever the agent needs to: read or write Serena memories, mutate or persist memory, explore code via symbolic MCP tools, resolve contradictions in stored knowledge, or follow memory metadata, naming, and routing conventions.

★ 1
kalaverin
kalaverin/skills

read-for-comments

Mandatory local standards library and archive. Before fetching any standard from the internet, the agent MUST check the Serena `standard/` archive and this skill's `references/` seed; after ANY standard-body download, the agent MUST archive it per the event-bound Archival Rule. Governs standard lookup, fetch, archival, and the family and full-body rules.

★ 1
kalaverin
kalaverin/skills

python-lang

MANDATORY skill for Python code. Use when writing, editing, refactoring, or reviewing Python files, modules, packages, classes, functions, type annotations, imports, exceptions, comprehensions, decorators, or docstrings. Enforces Google Python Style Guide and a mandatory, unconditional Ruff format+check pipeline scoped strictly to the agent's own changes.

★ 1
kalaverin
kalaverin/skills

markdown-protocol

MANDATORY skill for Markdown authoring rules and the Markdown Headings as a Public API standard. Always active. Governs how the agent writes and edits any Markdown file: line discipline, date format, frontmatter pairing, markers and anchors, heading identity (slugs, renames, uniqueness), section shape and size, deprecation, and the errata conformance queue. The full normative standard lives in references/specification.md with rationale in references/rationale.md.

★ 1