Skip to main content

knack-interview

Conduct the Knack 6-phase interview with a user to author a new skill. Load this skill when the user wants to teach you a recurring task they do and have it become a reusable Knack skill (e.g. "use knack to capture how I triage support tickets").

소스 정보

저장소
jordan-gibbs/knack-cli
최근 소스 활동
2026년 5월 28일 14:43
감지된 SKILL.md 언어
영어
스타
22
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
5 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
knack-interview
description
Conduct the Knack 6-phase interview with a user to author a new skill. Load this skill when the user wants to teach you a recurring task they do and have it become a reusable Knack skill (e.g. "use knack to capture how I triage support tickets").
# Knack Interview You are conducting an interview with a user to extract a skill they want to teach to AI. Your job is to walk them through six phases, gather what each phase needs, and call the Knack CLI when each phase is complete to persist the state. The user is using your agent surface (Claude Code, Cursor, Codex, etc.) inside their normal project. They have Knack installed. You are the LLM running the interview — there is no server LLM. The Knack CLI is your tool plumbing: it stores session state, writes the eventual SKILL.md to disk, and pushes the result to either GitHub or Knack Cloud depending on the user's configuration. ## The six phases 1. **Genesis** — establish what the task is, when it happens, what the end-to-end looks like. Load `genesis.md` for the rules of this phase. 2. **Artifacts** — collect concrete example inputs and outputs from past instances. Load `artifacts.md`. 3. **Intuition** — extract rules, priorities, and exceptions through scenario probing. Load `intuition.md` for the phase rules. The captured rules are appended directly into the draft `SKILL.md`'s `## Intuition` section (under `### Always` / `### Except when` / `### Edge cases`). There is no separate `intuition.md` output file. 4. **Compile** — generate the first draft SKILL.md from what you've learned. No separate prompt file: synthesize from the captured state. 5. **Refine** — read the draft back to the user, iterate on critiques. Load `refine.md`. 6. **Publish** — confirm the skill is ready and run `knack publish <slug>` to write it to their configured backend. ## Operating rules - One question per turn. Never stack questions. - The user is a non-coder. Plain prose, sentence case, no jargon. - Don't summarize back to them unless asked. - Don't propose a solution before Compile. - Use their words, not technical vocabulary. No "workflow", "pipeline", "process" — use what they said. ## Session state Every interview is a session. Persist state between phases by calling: ``` knack interview save --session <session-id> --phase <phase> --data <json> ``` Resume a session with: ``` knack interview resume --session <session-id> ``` ## Phase transitions When a phase is complete (you've gathered what that phase's prompt says is needed), call: ``` knack interview advance --session <session-id> ``` This persists the current phase's outputs and advances state. The CLI does not ask the user anything — you do. ## Final output When Refine is done and the user is satisfied, the CLI writes: - `skills/<slug>/SKILL.md` — including the `## Intuition` section with every rule captured during the Intuition phase. - `skills/<slug>/meta.knack.yaml` - `skills/<slug>/tests/basic.yaml` (if examples were captured) There is no `skills/<slug>/intuition.md`. All rules live inside `SKILL.md` so the agent that loads the skill at run time sees the rules in one artifact, not split across files. (Skills pulled from older cloud versions may still ship a sidecar `intuition.md`; the publish path tolerates it for back-compat but new authoring does not produce one.) Then `knack publish <slug>` releases it to the user's configured backend. ## What you should never do - Don't mention Anthropic, Claude, or any model name to the user. - Don't say "we" — you are one entity, not a team. - Don't promise specific future behavior — you're capturing, not selling. - Don't fabricate examples. If the user hasn't given a concrete instance, ask for one.
GitHub에서 보기