kg-project

kg-project is a command for coding agents from Ethics03/kgskill. It costs 11 tokens per session (601 once invoked), scanned A, original, MIT.

A command for creating a project folder in a knowledge graph, including areas for architecture notes, decisions, plans, and analysis. ADRs are short records explaining important technical decisions.

In plain words
What is it for?
It helps start projects, create the required folders, initialize an ADR index, and track the next decision record number.
Why use it?
It gives a new project a consistent place and structure for recording its design choices and future work.

Command

Part of the mykg plugin — 3 skills, 6 commands shipped together

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.

agentmods
npx agentmods add commands/ethics03/kgskill/kg-project
Clone the repo
git clone --depth 1 https://github.com/Ethics03/kgskill

Or install mykg, the plugin that ships this one along with the rest of its 3 skills, 6 commands.

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 kg-project

README.md
[![agentmods](https://agentmods.dev/badge/commands/ethics03/kgskill/kg-project.svg)](https://agentmods.dev/commands/ethics03/kgskill/kg-project)
Your own site
<a href="https://agentmods.dev/commands/ethics03/kgskill/kg-project"><img src="https://agentmods.dev/badge/commands/ethics03/kgskill/kg-project.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.00601
Opus 5 $0.00005 $0.00300
Sonnet 5 $0.00002 $0.00120
Haiku 4.5 $0.00001 $0.00060

Measured 3d ago against content hash 88d7b4e1cd78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kg-project 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 3d 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.

commands/kg-project.md · 112 lines

What it actually says

Create a new project folder in the Knowledge Graph. The argument is the project name; an optional second argument is a description.

Steps

1. Resolve KG path

Check in order: $MYKG_PATH env var → ~/.config/mykg/config~/.mykgrc → common locations (~/MyKG, ~/Dev/Obsidian/MyKG). If not found, tell the user to run /kg-setup first.

2. Validate project name

If no name was provided, tell the user: Usage: /kg-project <name> [description] and stop.

Normalize the name: replace spaces with hyphens, keep only alphanumeric and hyphens.

3. Check if already exists

If <KG_PATH>/<project-name>/ already exists, tell the user and stop.

4. Create project structure

Run:

mkdir -p <KG_PATH>/<name>/{Architecture,Decisions,Plans,Analysis}

5. Write Decisions/README.md

# Decisions

Architecture Decision Records (ADRs) for <name>.

## Index

| ADR | Title | Status | Date |
|-----|-------|--------|------|

## Next ADR Number

**Next: 001**

## Creating a New ADR

1. Update the number above
2. Create `ADR-XXX - Title.md`
3. Fill in: Context, Decision, Consequences, Alternatives
4. Update this index
5. Update root `index.md`
6. Add entry to root `log.md`

6. Write SKILL.md

---
name: <name>-skill
description: Project-specific instructions for <name>. Use when working on this project.
---

# <name>

## Project Overview

<description>

## Tech Stack

| Component | Technology |
|-----------|------------|

## Key Architecture Decisions

Refer to ADRs in [[Decisions/]].

## Current Priorities

See [[Active]] for current focus items.

## Project Conventions

- [Add conventions]

## Key Files

| File | Purpose |
|------|---------|
| `Architecture/Overview.md` | System design |
| `Decisions/README.md` | ADR index |

7. Update root index.md

Add the project to the Projects table:

| [[<name>/]] | <description> |

8. Append to root log.md

## [YYYY-MM-DD] project | Create <name>
- Created project [[<name>/]]

9. Report

Tell the user the project was created, show the path and structure, and suggest next steps: edit SKILL.md with project details, create Architecture/Overview.md.

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. 3d ago First seen · 112 lines · 11 tokens per session scan A 88d7b4e1cd78

Subscribe to this mod's changes

kg-project is a command published in the GitHub repository Ethics03/kgskill (3 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 601 once invoked, about $0.0001 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.