new-project

A command that creates a new project inside an organisation's role-based folder system. It also creates the project's memory file and updates the organisation's project listings.

In plain words
What is it for?
Use it to start a project, choose or create its owning role, check for name conflicts, and update the shared organisation map.
Why use it?
It keeps new work in the correct role and maintains the organisation's records automatically, reducing setup mistakes and missing entries.

Command

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/hdk10/orgkit/new-project
Clone the repo
git clone --depth 1 https://github.com/hdk10/orgkit
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00030 $0.01009
Opus 5 $0.00015 $0.00504
Sonnet 5 $0.00006 $0.00202
Haiku 4.5 $0.00003 $0.00101

Measured yesterday against content hash 107cd5c5318a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

new-project scanned grade C with 1 finding 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 yesterday.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- How does data move through the system? (optional for non-data projects) -->
commands/new-project.md · 92 lines

How it starts

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

You are scaffolding a new project into the org memory system. Every piece of work belongs under a role — never at the repo root.

Steps

  1. Determine the project name. If $ARGUMENTS was passed in the form <role>/<project>, parse it. Otherwise use the AskUserQuestion tool to ask: "What should the project folder be named? (lowercase-hyphenated, e.g. my-new-thing)"

  2. Determine the role. If role was parsed from $ARGUMENTS, use it. Otherwise:

    • Read .org/roles.json and list all keys under roles with their desc.
    • Use AskUserQuestion to present them as a numbered list plus a final option: "Create a new role". Wait for selection.
    • If "Create a new role": ask for the role name (lowercase, e.g. analytics) and a one-sentence description. Add it to roles.json as {"desc": "<desc>", "folders": []} under the new key. Write the updated roles.json back to .org/roles.json.
  3. Validate there is no collision. Check whether <role>/<project>/ already exists on disk. If it does, stop and report: <role>/<project>/ already exists — nothing created.

  4. Create the folder and memory skeleton.

    mkdir -p <role>/<project>/memory
    

    Write <role>/<project>/memory/PROJECT.md from the PROJECT template below (fill in {{ROLE}}, {{PROJECT}}, {{DATE}}):

    # {{PROJECT}}
    
    _Role: {{ROLE}} | Created: {{DATE}}_
    
    ## What it is
    
    <!-- 1–3 sentences: problem this solves, who uses it, the deliverable. -->
    
    ## Key decisions & rationale
    
    <!-- Decisions made so far and WHY. Add more as the project evolves. -->
    <!-- Format: **Decision**: ... **Rationale**: ... -->
    
    ## Tech stack
    
    <!-- Languages, frameworks, services, key libraries. Be specific (version or "latest"). -->
    
    ## Data flow
    
    <!-- How does data move through the system? (optional for non-data projects) -->
    
    ## Gotchas & watch-outs
    
    <!-- The non-obvious things. Use [GOTCHA]: prefix — Stop hook will scrape these into the role brain. -->
    
    ## Current state
    
    <!-- What's been built, what works, what's WIP, what's blocked. Update this as you go. -->
    
    ## How to resume
    
    <!-- The exact steps + files to read to get back up to speed in a future session. -->
    <!-- E.g.: "1. Read this file. 2. Run X. 3. Open Y." -->
    
    ## Lessons & patterns
    
    <!-- Use inline tags — Stop hook auto-promotes these to the role brain: -->
    <!-- [LESSON]: something that worked well -->
    <!-- [PATTERN]: reusable approach discovered here -->
    <!-- [GOTCHA]: subtle thing that bit us -->
    <!-- [TOOL]: library / service / CLI that's genuinely useful -->
    
  5. Register the project in roles.json. Read .org/roles.json, append "<project>" to roles.<role>.folders (if not already present), write it back.

  6. Regenerate ORG.md. Run:

    python3 .org/sync_org.py
    
  7. Report what was created:

    Created: <role>/<project>/
             <role>/<project>/memory/PROJECT.md
    Updated: .org/roles.json  (added "<project>" to <role>.folders)
    Updated: ORG.md
    

    Then suggest: "Open <role>/<project>/memory/PROJECT.md and fill in the What / Decisions / Stack sections to start the memory trail."

Read the full file on GitHub · 92 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. yesterday First seen · 92 lines · 30 tokens per session scan C 107cd5c5318a

Subscribe to this mod's changes

new-project is a command published in the GitHub repository hdk10/orgkit (2 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 1,009 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.