Skip to content
Skills Library
Programming · Automation

loc-init

/loc-init

Use when the user wants to set up masterskills in a project (optionally filling CLAUDE.md and the PRD's goal from a brainstorm, e.g. "loc-init 001"), or to bring an existing project up to date with the current plugin version (missing loc/ files, CLAUDE.md sections, the loc/ ignore entry or .claude/settings.json keys). Safe to run again.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the user wants to set up masterskills in a project (optionally filling CLAUDE.md and the PRD's goal from a brainstorm, e.g. "loc-init 001"), or to bring an existing project up to date with the current plugin version (missing loc/ files, CLAUDE.md sections, the loc/ ignore entry or .claude/settings.json keys). Safe to run again.

Triggers from the description

s goal from a brainstorm, e.g.

Arguments

/loc-init [project directory] [brainstorm number or file]
Original author description

Use when the user wants to set up masterskills in a project (optionally filling CLAUDE.md and the PRD's goal from a brainstorm, e.g. "loc-init 001"), or to bring an existing project up to date with the current plugin version (missing loc/ files, CLAUDE.md sections, the loc/ ignore entry or .claude/settings.json keys). Safe to run again.

How it works

  1. Migrate first
  2. Run
  3. From a brainstorm
  4. Report
Original SKILL.md headings · 54 lines, 731 words
SKILL.md preview
---
name: loc-init
description: Use when the user wants to set up masterskills in a project (optionally filling CLAUDE.md and the PRD's goal from a brainstorm, e.g. "loc-init 001"), or to bring an existing project up to date with the current plugin version (missing loc/ files, CLAUDE.md sections, the loc/ ignore entry or .claude/settings.json keys). Safe to run again.
argument-hint: "[project directory] [brainstorm number or file]"
---

# loc-init

Sets up the project structure. A script does all the work; you run it and report. Given a brainstorm, you then fill the empty sections that describe the project from it.

## Migrate first

```sh
sh "${CLAUDE_PLUGIN_ROOT}/scripts/py.sh" scripts/migrate.py --project "<dir>"
```

It brings an existing `loc/` to the current format and prints JSON. When `from` equals `to` (or is null), nothing changed: go on. Otherwise it already renamed the files and translated every heading, field and marker; you translate the prose of each file in `translate` into English. Keep headings, fields, file names, `file:line`, code and quotes of the user's words as they are; change nothing but the language. Leave `question` files and `loc/inbox/done/` as they are. In `MEMORY.md` translate only the text above the index. Report the migration (`from` → `to`, renamed files, translated files) before the rest.

When `harvest` is true, the project has finished plans but no recorded decisions: call the `architect` agent in Harvest mode with `${CLAUDE_PLUGIN_ROOT}/skills/loc-init/references/harvest.md`, `loc/PRD.md` and `CLAUDE.md`, and turn its report into one `question` file (`sh "${CLAUDE_PLUGIN_ROOT}/scripts/py.sh" scripts/next_number.py --type question --slug "decisions" --title "Decision: record the project's decisions" --source "loc-init" --by "architect (Harvest)"`) with the candidates and the reversed choices, ending with the line `After the answer: write the approved lines to loc/PRD.md ## Decisions.` Nothing enters the PRD before the user approves.

`deferred` lists old plans that fail the plan check on their own text: they are now `deferred` items, to be planned again with `loc-planning`. When `regroup` is true, open plans have no group yet: call the `pm` agent to order the whole queue and run the `plan_queue.py --set` command it returns. Report both: each deferred plan with its reason, and the new queue order.

## Run

```sh
sh "${CLAUDE_PLUGIN_ROOT}/scripts/py.sh" scripts/init_project.py --project "<dir>" --session "${CLAUDE_SESSION_ID}"
```

Run each command on its own, exactly as written: no `cd`, variables, `;` or `&&`, so the plugin's permissions cover it.

`$ARGUMENTS` may hold a project directory and a brainstorm, in any order:

- a directory → `<dir>`; none → `${CLAUDE_PROJECT_DIR}`;
- a number `NNN` → `loc/inbox/NNN-brainstorm-*.md` (or in `loc/inbox/done/`);
- a path to a `.md` file → that file;
- `for <skill>`: another skill asked for the setup; after the report, go back to that skill, with no project brainstorm.

Run each script exactly once (a brainstorm adds the read-only `--check`). Do not create, rename or move any file yourself: the scripts decide what is missing and never overwrite anything. The only exceptions are translating and the decisions `question` after a migration (above), and filling sections from a brainstorm (below).

## From a brainstorm

Only when a brainstorm was given and the script printed `ok: true`: follow `references/brainstorm.md`. A brainstorm number or file that does not exist: say so and stop after the report.

## Report

The script prints JSON.

- **`ok: true`.** In one short list, tell the user:
  - what was **created** (`created`); a new `claude.bat` resumes this session, `open-code.bat` updates the plugin and starts OpenCode;
  - what was **added** to existing files (`updated`: file and the sections or entries added);
  - that everything else **already existed**;
  - each `skipped` file with its reason: the user fixes it.
  `.claude/settings.json` turns off Claude's auto memory (lessons go to `loc/PATTERNS.md`) and AI attribution in commits and pull requests. If `created` and `updated` are empty, say nothing changed. With a user interface (HTML, UI framework, canvas), fill an empty `## Frontend` yourself (`${CLAUDE_PLUGIN_ROOT}/skills/loc-orchestrate/references/design.md`, "Filled by loc-init"). Then point out the next step:
  - fill the empty `CLAUDE.md` sections (`Commands` first: skills run those commands and never guess them);
  - write in `loc/PRD.md` what the project is for (`Goal`), the few points it stands on (`Core idea`), how it is used (`Scenarios`) and its ideas (`Directions`); the review judge weighs findings against the first three.
- **Project brainstorm.** No brainstorm given, no `for <skill>`, and `empty` lists `Goal`: right after the report, `Skill(skill: "masterskills:loc-brainstorm", args: "the project: what it is for, who uses it and how")`, and ask the user to describe the project. Everything they write goes into that brainstorm; `loc-brainstorm` offers to fill the project from it when it is enough.
- **`ok: false`.** Show `message` as it is, in the user's language. With `no-git`, ask with `AskUserQuestion`: `Run git init in <dir>` (recommended) or `No`. Run: `git init "<dir>"`, then the script again. No, or any other error: stop; nothing was created.

Files in this package (3)
  • SKILL.md 5 KB
  • references/brainstorm.md 3 KB
  • references/harvest.md 1 KB

Versions

The database has no other skills named loc-init.

Database snapshot: 13.11.2026 · package version aabc502137b1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100loc-review
    Use when the user asks for a review of changes ("loc-review", "review what changed", "review plan 018"), and when loc-orchestrate finishes a plan. Runs the rubber-duck critic and code-review in parallel, checks the project's invariants. After a plan it fixes the findings; on its…
  • 100loc-qa
    Use when the user asks for a QA verdict on a plan or a change ("loc-qa", "loc-qa 018", "is plan 018 tested enough?"), and when loc-orchestrate has finished a plan's milestones. Runs the full test suite once, compares the tests with the plan's baseline copy, writes missing tests…
  • 100setup
    Set up SDD/TDD development process for the current project. Creates CLAUDE.md, configures settings, and optionally creates spec files. Use when starting a new project or adding process to an existing one.
  • 100cc-spex-init
    Install or refresh Spex specification-driven workflows in the current project from the Spex source bundled with the cc-spex plugin. Use when a Codex user asks to initialize Spex, configure Spex extensions or security, or update an existing Spex project through the cc-spex plugin.
  • 100pw-init
    Set up Playwright in a project. Use when user says "set up playwright", "add e2e tests", "configure playwright", "testing setup", "init playwright", or "add test infrastructure".
  • 100pw-init
    Set up Playwright in a project. Use when user says \"set up playwright\", \"add e2e tests\", \"configure playwright\", \"testing setup\", \"init playwright\", or \"add test infrastructure\".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.