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.

AI & Automation 126 stars 19 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
70
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
2 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

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.

126 Updated 2 days ago
AnastasiyaW
API & Backend Listed

scaffold

Scaffold a new feature end-to-end: API contract → database schema → backend service/controller → frontend. Use when building something new from scratch across multiple layers. More opinionated than /implement — always runs the full vertical slice in the correct dependency order. Trigger this when someone says: build this feature from scratch, scaffold a new endpoint, I need a full-stack feature, new feature end-to-end, build the whole thing. Do NOT use when the task is already partially built or only one layer needs changes — use /implement instead.

2 Updated today
chuckplayer
Web & Frontend Listed

symphony-forge

Expert assistance for symphony-forge — a CLI that scaffolds next-forge projects with a composable control metalayer for AI agent governance. Triggers on questions about initializing projects with symphony-forge, adding metalayer layers (control, harness, knowledge, consciousness, autoany), running entropy audits, configuring EGRI self-improvement loops, and setting up AI-agent-ready development workflows. Also serves as a skill creator — use this to bootstrap new projects with built-in agent skills.

0 Updated today
Aggressive-hosnimubarak611