layer-new

Solid

Scaffold a new layer in a project's docs/layers/ tree following the feature-layer architecture (principle 28). A layer is a bounded concern (security, data, ui, infrastructure, domain) with its own invariants, decisions, gotchas, patterns, and feature narratives. Use when: "create a new layer", "add security layer", "scaffold layer", "start tracking <concern> separately", "/layer-new", "add bounded concern". Operates on the kb-skeleton structure; idempotent -- will not overwrite existing layers. Do NOT use to scaffold an individual feature narrative inside an existing layer; use /feature-new for that (a layer is the container, not the per-feature doc).

AI & Automation 138 stars 20 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
71
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /layer-new -- scaffold a project layer Creates `docs/layers/<layer-name>/` with the full template structure defined by [principle 28](https://github.com/AnastasiyaW/claude-code-config/blob/main/principles/28-feature-layer-architecture.md). ## When to use - Starting to track a new bounded concern in a long-running project - Refactoring sprawling cross-cutting code into a documented layer - Onboarding a new team member who needs the layer map ## When NOT to use - One-off scripts or pet projects with <5 features (overhead not justified) - Layer name describes a directory (`src` is not a layer) - The "layer" is actually one feature in disguise -- use `/feature-new` inside an existing layer instead ## Arguments ``` /layer-new <layer-name> [--purpose "..."] [--principles P-NN,P-MM] ``` - `<layer-name>` -- kebab-case, single word preferred. Examples: `security`, `data`, `image-processing`, `observability`. - `--purpose` -- one-sentence purpose. If omitted, prompt the user. - `--principles` -- comma-separated Tier 1 principle IDs that govern this layer (e.g. `P-02,P-21`). If omitted, leave placeholder in README. ## Direction (what to do, in order) ### Step 1 -- Verify environment Check the current working directory: 1. Is it a git repository? Run `git rev-parse --show-toplevel`. If not, ask the user whether to initialize one (offer `git init` + private GitHub repo per global rule). 2. Does `docs/` exist? If not, create it. 3. Does `docs/layers/README.md`...

Details

Author
AnastasiyaW
Repository
AnastasiyaW/claude-code-config
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

feature-new

Scaffold a new feature narrative document in an existing layer following the ULTRAPACK-style template extended for feature-layer architecture (principle 28). Creates docs/layers/<layer>/features/feat-NNN-<slug>.md with Design / Plan / Verify / Conclusion sections, populates layer README features table, and adds entry to feature_list.json if present. Use when: "create a new feature", "start work on feature", "scaffold feature doc", "/feature-new", "new feature in <layer>", "begin feature narrative". Auto-allocates next F-NNN ID. Do NOT use to create the layer itself or its bounded-concern KB scaffold; use /layer-new for that (a feature lives inside an already-existing layer).

138 Updated today
AnastasiyaW
Code & Development Listed

scaffold-research-project

Use to create a new research project from the template via conversation — no terminal, no `cp` commands. Asks for project name, parent directory, methodology, discipline, and languages; copies the template tree using the Write tool; patches CLAUDE.md frontmatter; optionally initialises git. Designed to work in Cowork (no shell access) as well as Claude Code.

1 Updated today
leiverkus
AI & Automation Listed

layered-architecture

Organize a system into layers with one permitted direction of dependency and enforce that direction mechanically at the import level. Use when a codebase is sliding toward tangled cross-references and you need a rule a linter can check, not a convention people forget.

4 Updated 6 days ago
Amey-Thakur