kn-init

kn-init is a skill for Claude Code, Codex from knowns-dev/knowns. It costs 23 tokens per session (1,482 once invoked), scanned A, original, MIT.

A session-start workflow for loading project documentation and current state in a Knowns project. It begins by checking the available project tools and then reads only the relevant documentation.

In plain words
What is it for?
Starting a session, checking whether the project is configured, listing and reading core documents, and focusing initialization on a task, feature, bug, or question.
Why use it?
It gives the agent the project context needed for later work instead of relying on guesses about the repository or its conventions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Starting a session, checking whether the project is configured, listing and reading core documents, and focusing initialization on a task, feature, bug, or question.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/knowns-dev/knowns/kn-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add knowns-dev/knowns --skill kn-init
Clone the repo
git clone --depth 1 https://github.com/knowns-dev/knowns

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kn-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/knowns-dev/knowns/kn-init/github.svg)](https://agentmods.dev/skills/knowns-dev/knowns/kn-init)
Your own site
<a href="https://agentmods.dev/skills/knowns-dev/knowns/kn-init"><img src="https://agentmods.dev/badge/skills/knowns-dev/knowns/kn-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kn-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/knowns-dev/knowns/kn-init"><img src="https://agentmods.dev/badge/skills/knowns-dev/knowns/kn-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,482 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.01482
Opus 5.5 $0.00009 $0.00593
Sonnet 5.5 $0.00005 $0.00296
Haiku 4.5 $0.00002 $0.00148

Measured 15d ago against content hash 65512b493f3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kn-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/instructions/skills/kn-init/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Initialization

Announce: "Using kn-init to initialize session."

Core principle: BOOTSTRAP WITH MCP INITIAL → DISCOVER WITH HELP → READ ONLY RELEVANT DOCS.

Inputs

  • Optional user focus such as a task ID, feature area, bug, or question
  • Current project root already opened in the agent session

Preflight

  • Confirm this is a Knowns project
  • Call MCP initial first when available; it is the runtime bootstrap
  • Use help("tool.*") or help("workflow.*") when an action schema or workflow route is not visible
  • Prefer project docs over guessing from code structure
  • If README, ARCHITECTURE, or CONVENTIONS do not exist, choose the closest equivalents from the docs list
  • If a doc is large, read its TOC first and only open the relevant sections

Step 1: Runtime Bootstrap

mcp_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.

Step 2: List Docs

mcp_knowns_docs({ "action": "list" })

Step 3: Read Core Docs

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>" })

Step 4: Check Current State

mcp_knowns_tasks({ "action": "list", "status": "in-progress" })
mcp_knowns_tasks({ "action": "board" })

list and board return summaries, one page at a time: list gives { results, total, nextCursor } (50 per page; pass nextCursor back as cursor), board gives the first 20 tasks per column with a count (page one column with status plus cursor). Read one task in full with tasks get.

Note the shape of the Task IDs you get back. New IDs always carry a prefix, from settings.defaultTaskIdPrefix or, when that is unset, derived from the project name, so they look like KN-4F7Q2M. Older tasks may still have plain IDs like 4f7q2m. Either way, pass the ID exactly as printed: the hyphen in KN-4F7Q2M is part of the ID, not a task- reference prefix to strip.

Read the full file on GitHub · 151 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed · +4 lines 65512b493f3c
  2. 2mo ago Changed · +1 lines 20390d980b2d
  3. 3mo ago First seen · 146 lines · 23 tokens per session scan A cebeb490d35d

Subscribe to this mod's changes

kn-init is a skill published in the GitHub repository knowns-dev/knowns (257 stars, last pushed 2d ago), licensed MIT. It adds 23 tokens to every session and 1,482 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

kn-init compared with skills from other repositories

kn-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kn-initknowns-dev/knownsSkill2572d agoMITA23Claude Code, Codex
savealivecontext/aliveSkill13216d agoMITA76Claude Code
capture-contextalivecontext/aliveSkill13216d agoMITA72Claude Code
session-historyalivecontext/aliveSkill13216d agoMITA74Claude Code
load-contextalivecontext/aliveSkill13216d agoMITA79Claude Code
mine-for-contextalivecontext/aliveSkill13216d agoMITA61Claude Code
my-context-graphalivecontext/aliveSkill13216d agoMITA48Claude Code