scope-init

scope-init is a skill for Claude Code from OneDro1d/dark-factory. It costs 203 tokens per session (3,895 once invoked), scanned B, original, Apache-2.0.

A setup tool for creating or refreshing a separate Git repository that stores working notes for one coding objective and links to the code repositories involved.

In plain words
What is it for?
Use it to start or update a shared working space for a task spanning one or more code repositories, record the repositories and success criteria, and validate their paths.
Why use it?
It keeps the objective, progress, and completion requirements available across shortened agent conversations. Re-running it refreshes setup files without replacing notes or journal history.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; positional $N argument.

Part of the agent-notepad plugin — 3 skills, 1 hook shipped together

Good fit Use it to start or update a shared working space for a task spanning one or more code repositories, record the repositories and success criteria, and validate their paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onedro1d/dark-factory/scope-init
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.

Any agent
npx skills add OneDro1d/dark-factory --skill scope-init
Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

Made for: Claude Code.

Or install agent-notepad, the plugin that ships this one along with the rest of its 3 skills, 1 hook.

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 scope-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/onedro1d/dark-factory/scope-init/github.svg)](https://agentmods.dev/skills/onedro1d/dark-factory/scope-init)
Your own site
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/scope-init"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/scope-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scope-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/scope-init"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/scope-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,895 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00203 $0.03895
Opus 5.5 $0.00081 $0.01558
Sonnet 5.5 $0.00041 $0.00779
Haiku 4.5 $0.00020 $0.00390

Measured 2mo ago against content hash a75c578def74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

scope-init scanned grade B 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

you emitted before you commit it** — `grep -rniE` over the new `.claude/` for home paths and
skills/agent-notepad/plugin/skills/scope-init/SKILL.md · 256 lines

How it starts

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

scope-init — stand up (or refresh) an agent-notepad

A notepad is one standalone git repo per objective, named <group>-<objective> (e.g. proj-arbbot). The group is the prefix — the substring before the first hyphen (proj-basket-tokens → group proj). Code lives in separate repos referenced by repos.manifest.json and driven via absolute paths, never by cd-ing. This skill creates that notepad or refreshes an existing one. See the design in ../../DESIGN.md (§5 topology, §6 file contracts, §7 hooks, §8 cross-repo bridge).

Consent is load-bearing. Two actions in this procedure touch the outside world and MUST NOT run without an explicit yes from the operator, each time:

  1. Creating a GitHub repo (gh repo create).
  2. Bootstrapping a df-context-store into a code repo you don't own the substrate of. Everything else is local file writes and read-only repo validation.

Idempotent. On a re-run in an existing notepad: refresh SCOPE.md / manifest / CLAUDE.md and re-validate repos, but never clobber NOTES.md or any journal file — merge/append only. A second scope-init is a safe no-harm refresh.

A re-run is not a shorter run. Steps 6 and 6a are per-REPO offers, and the repo set moves: a repo added to the manifest last month was never offered anything, because it did not exist when the offers were made. So a re-run walks every repo in the manifest, not only the ones this run created. ⚠️ First init is the one moment the repo set is complete by accident. After that, "it was offered" is a fact about the repos that existed then, and a step that runs only at init quietly stops covering the estate it claims to — the gap widening in exactly the direction nobody looks, because the notepad reports success either way.


Procedure

1. Resolve the group prefix and notepad name

  • If the operator names the notepad (proj-arbbot), take it. Otherwise ask for the objective in a few words and the group prefix, then propose <group>-<slug> (kebab-case slug of the objective).
  • Derive the group = prefix before the first hyphen. This is the memory wing and the org-routing key. Confirm it with the operator before proceeding.
  • Read ../../plugin/notepad-template/org-routing.example.json (or the operator's own org-routing.json if present) to map prefix → GitHub org. If the prefix isn't in the map, ask which org (or fall back to default_org) — do not guess silently.

Read the full file on GitHub · 256 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. 2mo ago Changed · +26 lines scan A → B a75c578def74
  2. 2mo ago Changed · +9 lines 6abb6ba10737
  3. 3mo ago First seen · 221 lines · 203 tokens per session scan A 3ee49ca9e72f

Subscribe to this mod's changes

scope-init is a skill published in the GitHub repository OneDro1d/dark-factory (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 203 tokens to every session and 3,895 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

scope-init compared with skills from other repositories

scope-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scope-initOneDro1d/dark-factorySkill32d agoApache-2.0B203Claude Code
knowledge-ingestopenclaw/openclawSkill395ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k4d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k12d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.2k5d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex