بنقرة واحدة
kn-init
Use at the start of a new session to read project docs, understand context, and see current state
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use at the start of a new session to read project docs, understand context, and see current state
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when orchestrating a full Knowns spec or task wave through planning, implementation, review, integration, and verification, optionally using sub-agents when scopes are parallel-safe.
Use when you need to understand existing code, find patterns, search project knowledge, use web research for external/current facts, or explore a large codebase before implementation
Use when committing code changes with proper conventional commit format and verification
Use when working with Knowns documentation - viewing, searching, creating, or updating docs
Use when extracting reusable patterns, decisions, failures, or knowledge into documentation
Use only when the user explicitly wants the legacy no-review-gates pipeline for an approved spec; prefer kn-flow for normal spec orchestration
| name | kn-init |
| description | Use at the start of a new session to read project docs, understand context, and see current state |
Announce: "Using kn-init to initialize session."
Core principle: BOOTSTRAP WITH MCP INITIAL → DISCOVER WITH HELP → READ ONLY RELEVANT DOCS.
initial first when available; it is the runtime bootstraphelp("tool.*") or help("workflow.*") when an action schema or workflow route is not visibleREADME, ARCHITECTURE, or CONVENTIONS do not exist, choose the closest equivalents from the docs listmcp_knowns_initial({})
If the MCP client exposes the tool as initial rather than mcp_knowns_initial, call that tool. Summarize project state, tool domains, active timer, and any warnings.
mcp_knowns_docs({ "action": "list" })
mcp_knowns_docs({ "action": "get", "path": "README", "smart": true })
For large docs, do not read the whole file. Use:
mcp_knowns_docs({ "action": "get", "path": "<path>", "toc": true })
mcp_knowns_docs({ "action": "get", "path": "<path>", "section": "<heading-or-number>" })
mcp_knowns_tasks({ "action": "list", "status": "in-progress" })
mcp_knowns_tasks({ "action": "board" })
Check for accumulated critical learnings from past work:
mcp_knowns_search({ "action": "search", "query": "critical patterns", "type": "doc", "tag": "critical" })
If learnings/critical-patterns exists:
mcp_knowns_docs({ "action": "get", "path": "learnings/critical-patterns", "smart": true })
These are promoted learnings that cost the most to discover and save the most by knowing. Include a brief summary in the session context if any exist.
mcp_knowns_memory({ "action": "list", "layer": "project" })
Project memories contain accumulated patterns, decisions, and conventions from past work. Include key entries in the session context summary. If there are many entries, prioritize by recency and relevance to the user's stated focus.
## Session Context
- **Project**: [name]
- **Key Docs**: README, ARCHITECTURE, CONVENTIONS
- **Critical Learnings**: [count, or "none yet"]
- **Project Memories**: [count, or "none yet"]
- **In-progress tasks**: [count]
- **Current risks / gaps**: [missing docs, unclear conventions, broken search, etc.]
- **Ready for**: tasks, docs, questions
All built-in skills in scope must end with the same user-facing information order: kn-init, kn-spec, kn-flow, kn-plan, kn-research, kn-implement, kn-verify, kn-doc, kn-template, kn-extract, and kn-commit.
Required order for the final user-facing response:
Keep this concise for CLI use. Skill-specific content may extend the key-details section, but must not replace or reorder the shared structure.
Out of scope: explaining, syncing, or generating .claude/skills/*. Runtime auto-sync already handles platform copies, so this skill source only defines the built-in output contract.
For kn-init, the key details should cover:
initial is unavailable, fall back to project({ action: "status" }) and targeted docsWhen a follow-up is natural, recommend exactly one next command such as:
/kn-plan <task-id>
/kn-flow @doc/<approved-spec-path>
/kn-research <query>