domain-plan
Skill1 starsChanged 27 days agoMITView on GitHub
A piece of `shape` (only by /domain-plan): draw the task's domain in the dev-console (events, and above each event the screen a person sees), mark draft or real, and detect drift between drawing and code; the drift list is what Downstream builds. `shape` calls it when the request is a screen, a flow or a service; also run on a card entering Upstream.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- stefan-garofalo/skillstheir own version, first seen Mar 12, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- stefan-garofalo/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- skills/agentsmd/templates/AGENTS.mdAGENTS.md
- advisorSkill
- agentsmdSkill
- authSkill
- backbriefSkill
- brainstormSkill
- choiceSkill
- copywritingSkill
- cost-trackSkill
- delegate-and-reviewSkill
- designSkill
- design-tasteSkill
- dev-consoleSkill
- devinSkill
- diff-reviewSkill
- diskySkill
- doctorSkill
- domain-modelSkill
- dry-runSkill
- duplo-local-agentsSkill
- envlessSkill
- estudo-htmlSkill
- faceless-artSkill
- fluid-voice-auto-fixSkill
- handoffSkill
- herdr-canvasSkill
- hermesSkill
- hustlerSkill
- interviewSkill
- kanbanSkill
- keyword-ideasSkill
- linearSkill
- linkedin-publishSkill
- lp-draftSkill
- memorySkill
- modifier-hereSkill
- piSkill
- postmortemSkill
- prime-agentSkill
- project-stateSkill
- retroSkill
- search-consoleSkill
- seo-auditSkill
- setup-bilibossSkill
- shapeSkill
- skill-smithSkill
- syncSkill
- task-backbriefSkill
- tensionsSkill
- threadSkill
- tmuxSkill
- traceSkill
- wiki-smithSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Then pin the outcome before drawing anything: Read the plan's documents, the product's wiki on origin/main (git show …
- Very specific: line 46
Put the screens in <repo>/.plan/<slug>/telas/, all linking one shared tokens CSS in that folder (the product's brand tokens), with the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
domain-plan
Upstream is planning (Upstream Kanban, Steyaert 2018). The plan is the desired state of the task's domain; the code is
the actual state; drift is the difference, and the difference is the work. The owner approving the plan is the
commitment point: the card goes to Downstream and Downstream builds the drift list.
Steps
- Find the domain in the dev-console (
devc domains). If it is missing, import it from the code first (skilldev-console, "Import a domain from existing code":Domain.Imported, the project file outside the product repo, one file<name>_events.pywith theEVENTSthe code records, each traced# kind: Xto file:line), register it (console.sh domains add <file>) and adjust it. Never draw a plan over a domain nobody imported. - Open the plan:
scripts/plan.sh start <slug> --repo <repo> --domain <domain> --events-file <path to the <name>_events.py> --console-source <the SOURCE the console reads>.kanban.sh pullalready does the first half (slug, repo, domain) when it puts a card in Upstream. Then pin the outcome before drawing anything. Read the plan's documents, the product's wiki onorigin/main(git show origin/main:.wiki/<moc>.mdand what it lists; the plan branch may be older than main) and who asked for the task. Anything that landed on main after the plan opened (a brief, a design system) is a new candidate: record it withplan.sh add --kind documentbefore asking, or the question offers stale options. Then ask the owner once, through theinterviewskill (a form with the recommendation pre-selected; it opens in the dev-console Browser when the console is up), never as an options list typed in chat: the owner rejects that as verbose and wants to click. Recommendation first: the first question is the outcome ("daqui a 90 dias deu certo, o que mudou?", the plan's candidates as options), the last compares the scope with the cheapest path this week. With the answer, write the high-level request in five fields (por quê, para quem, resultado medido, limites, pronto quando) plus the week's bet, on the card (kanban.sh describe <card> --file <f>when it exists, else as a plandocument). - Draw the desired state as drafts:
plan.sh add <slug> --kind event --name category.event [--command C] [--after other.event], and above each event a person sees, its real screen as HTML in the product's look (cheap UI now: build the screen, never describe it):--kind screen --name <n> --event category.event --file <path in the repo>(or--url). Names come from the code and the wiki, never invented; few events,Updatedper element (skilldesign-taste).- Event names come from the wiki's state transitions (the
De → Paratables, the real-time and webhook event lists): "premiação definida" becomesaward.confirmed, "pedido emitido"order.issued. A screen that only reads (a dashboard, a profile, a simulator before it proposes) records no event: hang it on the event it leads to, and several screens may sit on one event. Usage of read screens is telemetry, not domain. - Put the screens in
<repo>/.plan/<slug>/telas/, all linking one shared tokens CSS in that folder (the product's brand tokens), with the product's fictional demo data; check each at 390 px (scrollWidth == 390) before adding it. - Draw the whole version's domain, not only this week's bet: the bet is a document and an order, the drawing is the desired end state.
- Then the version's LP (skill
lp-draft): it tells the version's story and embeds the drawn screens as its showcase; open it withdevc browse. The owner expects it as part of Upstream, before he approves.
- Event names come from the wiki's state transitions (the
- Keep decisions, sources and questions in the plan, as a
document:--kind document --name <n> --text ... --decision "Decidi X porque Y" --source <page> --question "<open question>". An open choice of the owner is a question, not an event. Run drift:
plan.sh drift <slug> [--mark] [--json] [--detailed-exitcode]prints three groups, plusperdido(marked real, gone from the code):Group Meaning a construir draft, not in the code construído draft the code already has; --markturns it realfora do plano in the code, not in the drawing - Stop after the drift; the owner approves ->
plan.sh confirm <slug>, thenkanban.sh move <card> Downstream. Upstream writes no product code: small choices are decided and logged as "Decidi X porque Y" in the plan. Downstream builds thea construirlist and runsdrift --markas it lands; a drift that empties is the task done.
The plan file
<repo>/.plan/<slug>.jsonl, one JSON per line (id, event, at, actor, value), editable by hand like every prototype
journal of the house. plan.started {slug, domain, events_file}, element.updated {kind event|screen|document, name,
state draft|real, ...} (one event for create, change and delete: change: deleted), plan.confirmed {by}. The code
is scripts/plan.py (uv, stdlib only); plan.sh show <slug> folds it.
Decidi guardar o plano num JSONL no repo (.plan/) porque ele viaja com o código e com o PR do plano, e o dono o edita
à mão; o console_domain_draft.py do dev-console guarda a forma do domínio (classes de mentira), não decisões,
fontes nem telas, então não serve de formato. Decidi desenhar no grafo pelo mesmo mecanismo de rascunho que já existe:
um evento em EVENTS sem registro no diário aparece contornado. Decidi ler a realidade com o mesmo ast sobre EVENTS
que o console_domain.py usa, porque assim o desenho não pode divergir do que o console desenha.
In the dev-console
The console reads EVENTS from the project's SOURCE with ast, so plan.sh writes the drafts there: --console-source
names a file that is the real events file plus the draft events (each commented "rascunho: só no grafo"), rewritten after
every add, drift --mark and plan.sh sync (run it after editing the JSONL by hand). The project file's SOURCE is that
file. No journal records a draft, so the console outlines it (outlined = not in the code); once the code records it, it is
filled. scripts/dev_console_plan.py (imported by the project file) adds the drafts' after edges (with_edges) and the
widgets (widgets(plan_file, WIDGETS)): Plano (the drift) on every event and Tela (the screen drawn above the event,
in an iframe) where one sits. --events-file stays the real registry: drift reads it, never the merged one.
Pitfalls
- A drift against an unimported domain is empty noise: import first (step 1).
--events-filemust be the real registry. Pointing it at the console's merged file makes every draft look built.- A project constant named
HOMEshadows the console'sHOMEwidget tuple and 500s the page: never name a pathHOME. - An empty domain takes the whole console down.
plan.shrefuses an events file withEVENTS = {}on one line (the closing brace must be on its own line:EVENTS = {then}), and a registered project whose SOURCE has no events, or whoseTRANSITIONScome only fromplan.with_edges({}, ...), makes the console'sderive()raise StopIteration: 5057 stopped answering for every domain. Give the project file a baseTRANSITIONS(the journey) thatwith_edgesextends, run the adds beforeconsole.sh domains add, then curl-Lthe domain and/domain/kanbanfor 200. - The plan lives on the repo's branch until its PR merges; the project file points at the checkout that has it.
Merge
origin/maininto the plan branch before linking files that landed on main (a brand folder, logos), or the screens load with broken paths. - Drift counts a screen as built as soon as its HTML file exists, so screens never sit in
a construir: the work list is the events group; say so in the report instead of reading "construído" as done. - Re-adding a document replaces only the lists you pass (
--question,--decision,--source) and keeps the rest. To close an answered question, re-add the document with--question "Respondida em <data>: <answer>". - Tests:
uv run --script scripts/test_plan.py.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

