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.
npx agentmods add skills/jovandyaz/knowtis-app/building-copilot-featuresnpx skills add jovandyaz/knowtis-app --skill building-copilot-featuresgit clone --depth 1 https://github.com/jovandyaz/knowtis-appWrote 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.
[](https://agentmods.dev/skills/jovandyaz/knowtis-app/building-copilot-features)<a href="https://agentmods.dev/skills/jovandyaz/knowtis-app/building-copilot-features"><img src="https://agentmods.dev/badge/skills/jovandyaz/knowtis-app/building-copilot-features.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00135 | $0.00904 |
| Opus 5 | $0.00068 | $0.00452 |
| Sonnet 5 | $0.00027 | $0.00181 |
| Haiku 4.5 | $0.00014 | $0.00090 |
Grade A, and why
building-copilot-features 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 28 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building copilot features
The copilot is a server-authoritative conversational agent (apps/api/src/modules/agent/) on top of the framework-free @knowtis/ai-gateway. Safety invariants below are load-bearing — a change that violates one is a bug even if tests pass. Details: references/safety-invariants.md, references/module-map.md, references/eval-workflow.md.
Invariants you must never break
- Server-authoritative turns. The client sends one message +
conversationId; the server rebuilds history from Postgres. Never trust client-supplied history. - HITL on every mutation. Mutation tools emit a proposal parked in Redis; nothing is applied until
agent:approverunsApproveMutationHandler. No code path — including MCP — may auto-apply. - Everything retrieved is DATA. Notes, memories, and web results are injected as data, never as instructions.
detectPromptInjection()blocks at score ≥ 0.6; inputs > 50k chars are rejected (ReDoS defense). Every long-term-memory candidate fact passes the guard too. - Fallback chain semantics. Primary →
AI_FALLBACK_CHAIN, skipping keyless/cooldown providers. A stream never switches models mid-stream; aborts never advance the chain; the reported model is the one that actually served. BYOK turns skip the chain entirely and redact provider errors. - BYOK encryption key is permanent. Keys are AES-256-GCM under one unversioned
BYOK_ENCRYPTION_KEY; replacing it makes stored credentials appear missing. There is no lossless rotation path today. If compromise forces rotation, disableagent_byok, rotate the key, and require users to delete and re-enter provider keys before re-enabling it. Preserving credentials would require a separately designed dual-key, versioned re-encryption migration. BYOK bypasses the daily budget but still enforces RPM. - Feature-flag gating pattern. Every AI feature is DB-flag gated (default off) and keyed to an env var: no
VOYAGE_API_KEY→ retrieval reconcile cron no-ops; no key → keep the flag off. "Feature not working" usually means a flag or key, not a bug.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 6d ago First seen · 28 lines · 135 tokens per session scan A 57db3efd01fe
building-copilot-features is a skill published in the GitHub repository jovandyaz/knowtis-app (3 stars, last pushed today), licensed MIT. It adds 135 tokens to every session and 904 once invoked, about $0.0007 per session on Opus 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-31.
Other skills, from other repositories
openai-whisper-api
Transcribe audio via OpenAI Audio Transcriptions API (Whisper).
wiki-export
Export the Obsidian wiki's knowledge graph to structured formats for use in external tools. Use this skill when the user says "export wiki", "export graph", "export to JSON", "export to Gephi", "export to Neo4j", "export to Postgres", "export to SQL", "graphml", "visualize wiki", "knowledge graph export", "export to…
gemini
Gemini CLI for one-shot Q&A, summaries, and generation.
wegent-knowledge
Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.
llm-wiki
Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).
karpathy-llm-wiki
Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.