skills/o9k-new-project/SKILL.md
Create a new P-entry (project) in hmem via create_project — handles schema, section setup, and O-entry linking. Use when the user asks to add/register/track a new project ('neues Projekt', 'P-Entry erstellen'), or before any write_memory with prefix='P'.
npx skillsauth add Bumblebiber/hmem o9k-new-projectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Uses the create_project tool to set up a complete project with one call.
Ask:
"Gibt es bereits eine Codebase? Wenn ja, in welchem Verzeichnis?"
If yes: Scan the directory (README, package.json, CLAUDE.md, etc.) to extract name, tech stack, description, entry points, key modules. Use findings to fill the create_project parameters and later append Codebase details.
If no: All info comes from the user's answers.
Ask these in order. Skip what the codebase scan already answered.
Stop early if the user says "reicht" or "das war's".
create_project({
name: "...",
tech: "...",
description: "...",
goal: "...",
repo: "...",
audience: "...",
deployment: "...",
tags: ["#lang", "#framework"]
})
This creates:
createLinkedO: true in schema, or always when no schema)If a codebase was scanned, append the findings. The Codebase node (.2) follows a strict schema:
entry → moduleA → moduleB → storagesrc/file.tssrc/file.tsappend_memory(id="P00XX.2", title="Pipeline", body="src/cli.ts → moduleA.ts → DB")
append_memory(id="P00XX.2", title="moduleA.ts", body="Core logic handler. src/moduleA.ts")
append_memory(id="P00XX.2.N", title="doThing(x: string): Promise<boolean>", body="Does the thing. src/moduleA.ts")
L4 is critical. Without function signatures, every agent must read source files for every task. Fill L4 for all exported functions when creating a new project — dispatch a subagent to extract them if the codebase is large.
L5 — Extended Notes (optional, use selectively): Add under an L4 node only when it adds real value:
write("P", { content: "Title\n\nBody", tags: ["#foo"] })ReadOptionsNot every function needs L5 — only where the signature alone leaves agents guessing.
append_memory(id="P00XX.3", content="Installation: npm install\n\n...")
Search for existing entries that relate to this project and add links:
read_memory(search="project keywords")
update_memory(id="P00XX", content="...", links=["T0044", "L0095"])
Then show the result: load_project(id="P00XX")
tools
Update flow for its-over-9k (hmem). Runs `npm update -g`, syncs skills, applies migrations, verifies hooks, shows the changelog. Use when the user asks to update/upgrade hmem, o9k, o9k-mcp, or its-over-9k (any language), or when the startup version-check flags a new release. Runs the npm update itself — don't assume it's already done.
development
Mandatory entry point for every Cortex session — invoke at conversation start, after /clear, and after any load_project call. All stable context (H-entries, projects, device, sync) is pre-injected by the hook — no read_memory(mode='essentials') needed. Surfaces pending git work, Next Steps + open T-tasks, and runs the O-entry routing check.
tools
Curate an .hmem file (your own or foreign) — mark obsolete/irrelevant, fix titles, consolidate duplicates, repair broken links. **Requires the `hmem-curate` MCP server** (skill prompts the user to enable it on entry). Use whenever the user says 'aufräumen', 'memory aufräumen', 'Speicher aufräumen', 'hmem aufräumen', 'clean up memory', 'tidy up hmem', 'curate memory', 'consolidate duplicates', 'merge duplicate entries', 'fix broken links', 'kümmer dich um die Memory', or invokes /o9k-curate. Also trigger when `memory_health()` flags BLOCKER/WARNING issues, when a P-entry's load_project output exceeds 4k tokens (session-start noise check defers to this skill), or before any batch cleanup of L, E, D, P entries. Skipping this skill and editing memory directly bypasses health checks, severity triage, and obsolete-chain integrity — never curate without it.
testing
Add a new rule and place it correctly — decide between a cross-project R-entry and a project-specific subnode under the active project's Rules section. Use whenever the user says 'neue Regel', 'Regel hinzufügen', 'new rule', 'add a rule', or invokes /o9k-new-rule. Critical safeguard: project-specific rules placed as R-entries pollute the session-start Rules listing across every project — get the scope right BEFORE writing.