[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CQAD61Y5KFR4GXH11J2R8C":3,"skill-same:01M7CQAD61Y5KFR4GXH11J2R8C":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7CQAD61Y5KFR4GXH11J2R8C","extend",null,"Use to add an agent, skill, rule, role, domain, stream, map element, stand, environment variable or repository to this workspace by its templates, through a merge request.","maximk777\u002Fopencode-config","maximk777","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F205286132?v=4","01M7CQ4VVPFQ3MDCXJBFB0HPTZ","01M7CQ4VWA2GG0H2CNNREZ9AN9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.agents\u002Fskills\u002Fextend\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: extend\ndescription: Use to add an agent, skill, rule, role, domain, stream, map element, stand, environment variable or repository to this workspace by its templates, through a merge request.\n---\n# Extend the workspace\n\n## Steps\n1. Go to the workspace root: the nearest directory, walking up from where you are, where `test -f .agents\u002Fkit.json` succeeds. Run every command below from there. Then find the workspace language:\n   - Run `grep -o '\"language\": *\"[a-z]*\"' .agents\u002Fkit.json`. When it prints a line such as `\"language\": \"ru\"`, the language is the code in the last quotes, here `ru`. When it prints nothing, the language is `en`. Call it `\u003Clanguage>`.\n   - A profile template `\u003Cname>` of profile `\u003Cprofile>` is `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Cname>.\u003Clanguage>.md` when `\u003Clanguage>` is not `en` and `test -f .agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Cname>.\u003Clanguage>.md` succeeds; otherwise it is `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Cname>.md`. Example with language `ru`: the `epic` template of `ui-migration` is `.agents\u002Fprofiles\u002Fui-migration\u002Fepic.ru.md`.\n   - In `profile.json` a heading, a column list, a key list, and the `title`, `note` and `columns` of `breakdown` may be a language object such as `{\"en\": \"Transitions\", \"ru\": \"Переходы\"}`. Take its value under `\u003Clanguage>`, or under `en` when that key is absent. A plain value is used as it is.\n2. Ask the person for the kind and the name, and wait for both answers:\n   - kind: one of `agent`, `skill`, `rule`, `role`, `domain`, `stream`, `map-element`, `stand`, `variable`, `repository`;\n   - name: lowercase letters, digits and `-` only (`[a-z0-9-]+`), for example `release-notes`; for `variable` use `[A-Z][A-Z0-9_]*`, for example `TRACKER_TOKEN`. For `stream` the name is the stream name, for `map-element` it is the element slug.\n   - For `repository`, stop here and follow `.agents\u002Fskills\u002Frepos-add\u002FSKILL.md` instead.\n   - For `domain`, also ask which profile the domain's map follows. Show the profiles with `ls .agents\u002Fprofiles` and let the person pick one of them.\n   - For `stream`, also ask the domain and the profile. Show the profiles with `ls .agents\u002Fprofiles` and let the person pick one of them.\n   - For `map-element`, also ask the domain and whether to add the element to the scope of a stream, and if so which stream. The profile is then the `\"profile\"` value of `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002Fstream.json`; without a stream, show `ls .agents\u002Fprofiles` and let the person pick one. Then read the `elements` list in `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fprofile.json`; when it has more than one object, ask the person which `kind` to add. From the chosen object take `kind`, `prefix`, `dir`, `fields` and `tables`. The template is the profile template `\u003Ckind>` from step 1 and the element key is `\u003Cprefix>:\u003Cdomain>\u002F\u003Cname>`. Run `test -f .agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Ckind>.md`; when it fails, stop, tell the person the profile has no template for that kind, and change nothing. Example: with the `ui-migration` profile the kind is `screen`, the prefix is `screen`, the directory is `map`, the template is `.agents\u002Fprofiles\u002Fui-migration\u002Fscreen.md` (`.agents\u002Fprofiles\u002Fui-migration\u002Fscreen.ru.md` with language `ru`) and the key is `screen:\u003Cdomain>\u002F\u003Cname>`.\n   - For `stream` and `map-element`, run `test -d domains\u002F\u003Cdomain>`. When it fails, the domain does not exist: stop, tell the person to add the domain first, and change nothing. For `map-element` with a stream, also run `test -f domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002Fstream.json`; when it fails, stop the same way.\n3. Check that the name is free. Run the command of the kind:\n   - agent: `test -e .agents\u002Fagents\u002F\u003Cname>.md`\n   - skill: `test -e .agents\u002Fskills\u002F\u003Cname>`\n   - rule: `test -e .agents\u002Frules\u002F\u003Cname>.md`\n   - role: `test -e .agents\u002Froles\u002F\u003Cname>.md`\n   - domain: `test -e domains\u002F\u003Cname>`\n   - stream: `test -e domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>`\n   - map-element: `test -e domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F\u003Cname>.md`\n   - stand: `grep -n '\"stand:\u003Cname>\"' environments.json`\n   - variable: `grep -n '\"\u003Cname>\"' .agents\u002Fenv.schema.json`\n   When `test` succeeds or `grep` prints a line, the entity already exists: stop, tell the person, and change nothing.\n4. Find the default branch: run `git symbolic-ref --short refs\u002Fremotes\u002Forigin\u002FHEAD` and remove the `origin\u002F` prefix; when the command fails, use `main`. Call it `\u003Cdefault>`. Then run, one by one:\n   - `git switch \u003Cdefault>`\n   - `git pull --ff-only`\n   - `git switch -c extend-\u003Ckind>-\u003Cname>`\n5. Do the steps of the kind in `## Kinds`.\n6. If `command -v python3` prints a path, run `python3 tools\u002Fgenerate.py`. Otherwise apply the recipe of the kind in `## Recipes` (kinds without generated files need no recipe).\n7. If `command -v python3` prints a path, run `python3 tools\u002Fcheck.py`. Fix every finding in files you changed and run it again until it prints nothing. Otherwise remember the line `check not run: python3 missing`.\n8. Commit:\n   - Run `git add` with every file you created or changed, including the generated files listed for the kind in `## Kinds`.\n   - Run `git commit -m \"feat(workspace): add \u003Ckind> \u003Cname>\"`.\n9. Run `git pull --rebase origin \u003Cdefault>`. On conflicts follow `## Conflicts`.\n10. Push and open the merge request by `.agents\u002Frules\u002Fmerge-requests.md`, with branch `extend-\u003Ckind>-\u003Cname>` and title `Add \u003Ckind> \u003Cname>`.\n11. Report to the person:\n    - the files you created or changed;\n    - the branch `extend-\u003Ckind>-\u003Cname>`;\n    - the merge request link, or the instruction to open it;\n    - as the last line, the check result, or `check not run: python3 missing`.\n\n## Kinds\n- agent:\n  1. Run `mkdir -p .agents\u002Fagents && cp .agents\u002Ftemplates\u002Fagent.md .agents\u002Fagents\u002F\u003Cname>.md`.\n  2. In `.agents\u002Fagents\u002F\u003Cname>.md` set `name: \u003Cname>`, write a one-sentence `description:` and replace the title and instructions. Never list tools that exist only in one tool, such as the browser automation of one vendor.\n  3. Generated files: `.claude\u002Fagents\u002F\u003Cname>.md`, `.opencode\u002Fagents\u002F\u003Cname>.md`.\n- skill:\n  1. Run `mkdir -p .agents\u002Fskills\u002F\u003Cname> && cp .agents\u002Ftemplates\u002Fskill\u002FSKILL.md .agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md`.\n  2. In `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md` set `name: \u003Cname>` and a one-sentence `description:`, write numbered steps under `## Steps`, and keep a `## Without Python` section. When the skill changes files, its steps end with `python3 tools\u002Fgenerate.py` and `python3 tools\u002Fcheck.py`, and its `## Without Python` ends with the line `check not run: python3 missing`.\n  3. In `AGENTS.md` add one row at the end of the table under `## Skills`, in the same form as the other rows. Example for `release-notes`:\n     ```\n     | `.agents\u002Fskills\u002Frelease-notes\u002FSKILL.md` | write release notes for a merged merge request |\n     ```\n  4. Generated files: every file under `.claude\u002Fskills\u002F\u003Cname>\u002F`.\n- rule:\n  1. Run `cp .agents\u002Ftemplates\u002Frule.md .agents\u002Frules\u002F\u003Cname>.md`.\n  2. Replace `\u003CRule title>` in the first line; the first line stays `# \u003CRule title>`. Write one rule per bullet below it.\n  3. Generated files: `.cursor\u002Frules\u002F\u003Cname>.mdc`.\n- role:\n  1. Run `cp .agents\u002Ftemplates\u002Frole.md .agents\u002Froles\u002F\u003Cname>.md`.\n  2. Replace every `\u003Crole>` with `\u003Cname>` and fill the sections.\n  3. No generated files.\n- domain:\n  1. Run `mkdir -p domains\u002F\u003Cname>\u002Fmap && cp .agents\u002Ftemplates\u002Fdomain\u002FREADME.md domains\u002F\u003Cname>\u002FREADME.md && cp \u003Cmap template> domains\u002F\u003Cname>\u002FMAP.md && touch domains\u002F\u003Cname>\u002Fmap\u002F.gitkeep`, where `\u003Cmap template>` is the profile template `MAP` from step 1: `.agents\u002Fprofiles\u002F\u003Cprofile>\u002FMAP.md`, or `.agents\u002Fprofiles\u002F\u003Cprofile>\u002FMAP.\u003Clanguage>.md` when that file exists. For `ui-migration` with language `en`: `cp .agents\u002Fprofiles\u002Fui-migration\u002FMAP.md domains\u002F\u003Cname>\u002FMAP.md`; with language `ru`: `cp .agents\u002Fprofiles\u002Fui-migration\u002FMAP.ru.md domains\u002F\u003Cname>\u002FMAP.md`.\n  2. In `domains\u002F\u003Cname>\u002FREADME.md` replace every `\u003Cname>` with the domain name and fill `## Purpose`.\n  3. In `domains\u002F\u003Cname>\u002FMAP.md` replace every `\u003Cdomain>` with the domain name. Change nothing else.\n  4. Generated files: the tables between the `map:` markers in `domains\u002F\u003Cname>\u002FMAP.md`.\n- stream:\n  1. Run `mkdir -p domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname> && cp .agents\u002Ftemplates\u002Fstream.json domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fstream.json && cp \u003Cepic template> domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fepic.md`, where `\u003Cepic template>` is the profile template `epic` from step 1: `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fepic.md`, or `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fepic.\u003Clanguage>.md` when that file exists. For `ui-migration` with language `ru`: `cp .agents\u002Fprofiles\u002Fui-migration\u002Fepic.ru.md domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fepic.md`.\n  2. In `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fstream.json` change only two values: in `\"key\"` replace `\u003Cdomain>\u002F\u003Cstream>` with `\u003Cdomain>\u002F\u003Cname>`, and set `\"profile\"` to the chosen profile. Keep `\"stage\": \"goal\"`, `\"scope\": []` and `\"approvals\": []`. Example for stream `migration` in domain `risks` with profile `ui-migration`:\n     ```json\n     {\n       \"key\": \"stream:risks\u002Fmigration\",\n       \"profile\": \"ui-migration\",\n       \"stage\": \"goal\",\n       \"scope\": [],\n       \"approvals\": []\n     }\n     ```\n  3. In `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fepic.md` replace the placeholder in the first line with the title the person gives: `\u003CEpic title>` in `epic.md`, `\u003CНазвание эпика>` in `ui-migration\u002Fepic.ru.md`. Keep every section; the person fills them during the `goal` stage.\n  4. Generated files: `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002FBREAKDOWN.md`.\n- map-element:\n  1. Run `mkdir -p domains\u002F\u003Cdomain>\u002F\u003Cdir> && cp \u003Celement template> domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F\u003Cname>.md`, with `\u003Cdir>` from step 2 and `\u003Celement template>` the profile template `\u003Ckind>` from step 1: `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Ckind>.md`, or `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Ckind>.\u003Clanguage>.md` when that file exists. For `ui-migration`: `mkdir -p domains\u002F\u003Cdomain>\u002Fmap && cp .agents\u002Fprofiles\u002Fui-migration\u002Fscreen.md domains\u002F\u003Cdomain>\u002Fmap\u002F\u003Cname>.md`; with language `ru` copy `.agents\u002Fprofiles\u002Fui-migration\u002Fscreen.ru.md` instead.\n  2. In `domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F\u003Cname>.md` set `key: \u003Cprefix>:\u003Cdomain>\u002F\u003Cname>`. Ask the person for every other field in `fields` of the element; fields in `may_be_empty` may stay empty; a field with a `values` list takes one of those values. Write each value after `\u003Cfield>: ` on its own line. Never invent a value. For `ui-migration`: set `key: screen:\u003Cdomain>\u002F\u003Cname>`, ask for `route`, `section`, `access`, `label` and `wave`, and for `parent` (a `screen:` key) and `story` (a `story:` key), which may stay empty; keep `kind: place`.\n  3. For each object in `tables` of the element, take `heading`, `columns` and `keys` in the workspace language as step 1 says. Under `## \u003Cheading>` add one row per row the person names, in the person's order, with one cell per column of `columns`, in that order; a cell of a column listed in `keys` is an element key. With no rows keep only the header and separator lines. For `ui-migration`: under `## Transitions` (`## Переходы` with language `ru`, columns `Действие`, `Цель`) add one row `| \u003Caction> | \u003Ctarget> |` per transition; every target is a `screen:` key.\n  4. Only when the person chose a stream, edit `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002Fstream.json`, keeping two spaces of indentation per level, as `json.dumps(indent=2)` writes it:\n     - Scope: when `scope` is the one line `  \"scope\": [],`, replace it with the three lines `  \"scope\": [`, `    \"\u003Cprefix>:\u003Cdomain>\u002F\u003Cname>\"`, `  ],`. Otherwise add a comma at the end of the last string line of `scope` and insert the line `    \"\u003Cprefix>:\u003Cdomain>\u002F\u003Cname>\"` directly above `  ],`.\n     - Stage: the stage order is `goal`, `map`, `decomposition`, `ready`, `delivery`, `done`. When `stage` is `goal` or `map`, change nothing else. When `stage` is `decomposition`, `ready`, `delivery` or `done`:\n       - set `\"stage\": \"map\"`;\n       - remove every approval object whose `\"stage\"` is `map`, `decomposition`, `ready`, `delivery` or `done`, and keep the others in their order; every kept object except the last one ends with `    },`, the last one with `    }`; when no object is left, write the one line `  \"approvals\": []`;\n       - tell the person: \"The scope of stream:\u003Cdomain>\u002F\u003Cstream> grew after its map was approved, so the stream is back at stage `map` and the approvals of `map` and every later stage are removed. The map and the later stages must be approved again.\"\n\n     Example: stream `migration` at stage `ready`, adding `screen:risks\u002Flimits`. Before:\n     ```json\n     {\n       \"key\": \"stream:risks\u002Fmigration\",\n       \"profile\": \"ui-migration\",\n       \"stage\": \"ready\",\n       \"scope\": [\n         \"screen:risks\u002Foverview\"\n       ],\n       \"approvals\": [\n         {\n           \"stage\": \"goal\",\n           \"by\": \"anna\",\n           \"date\": \"2026-09-01\"\n         },\n         {\n           \"stage\": \"map\",\n           \"by\": \"anna\",\n           \"date\": \"2026-09-05\"\n         },\n         {\n           \"stage\": \"decomposition\",\n           \"by\": \"oleg\",\n           \"date\": \"2026-09-08\"\n         }\n       ]\n     }\n     ```\n     After:\n     ```json\n     {\n       \"key\": \"stream:risks\u002Fmigration\",\n       \"profile\": \"ui-migration\",\n       \"stage\": \"map\",\n       \"scope\": [\n         \"screen:risks\u002Foverview\",\n         \"screen:risks\u002Flimits\"\n       ],\n       \"approvals\": [\n         {\n           \"stage\": \"goal\",\n           \"by\": \"anna\",\n           \"date\": \"2026-09-01\"\n         }\n       ]\n     }\n     ```\n  5. Generated files: the tables between the `map:` markers in `domains\u002F\u003Cdomain>\u002FMAP.md`.\n- stand:\n  1. Ask the person for `purpose`, `access`, and every service with its base URL. Never invent a value.\n  2. Write every value as a JSON string: inside it write `\"` as `\\\"` and `\\` as `\\\\`. For example the access `Ask \"platform\" team, C:\\vpn` becomes `\"access\": \"Ask \\\"platform\\\" team, C:\\\\vpn\"`.\n  3. Write the new entry with two spaces of indentation per level, as `json.dumps(indent=2)` writes it:\n     - `{` and the closing `}` of the entry: 4 spaces;\n     - the lines `\"key\"`, `\"purpose\"`, `\"access\"`, `\"services\": {` and the closing `}` of `services`: 6 spaces, in this order;\n     - each service line `\"\u003Cservice>\": \"\u003Cbase url>\"`: 8 spaces;\n     - a comma at the end of the `\"key\"`, `\"purpose\"` and `\"access\"` lines;\n     - a comma after every service line except the last one;\n     - no comma after the closing `}` of `services` and no comma after the closing `}` of the entry.\n  4. Open `environments.json` and find the `stands` list:\n     - When it is the one line `  \"stands\": []`, replace that line with the line `  \"stands\": [`, then the new entry, then the line `  ]`. See example A.\n     - Otherwise the list has entries. Add a comma at the end of the line `    }` that closes the previous last entry, directly above the line `  ]`. Insert the new entry between that line and `  ]`. See example B.\n     - Change nothing else in the file.\n\n     Example A, empty list. `environments.json` before:\n     ```json\n     {\n       \"stands\": []\n     }\n     ```\n     After adding stand `demo` with two services:\n     ```json\n     {\n       \"stands\": [\n         {\n           \"key\": \"stand:demo\",\n           \"purpose\": \"Demonstrations for customers\",\n           \"access\": \"Ask \\\"platform\\\" team, C:\\\\vpn\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.demo.invalid\",\n             \"billing\": \"https:\u002F\u002Fbilling.demo.invalid\"\n           }\n         }\n       ]\n     }\n     ```\n     Example B, a list with one entry. `environments.json` before:\n     ```json\n     {\n       \"stands\": [\n         {\n           \"key\": \"stand:demo\",\n           \"purpose\": \"Demonstrations for customers\",\n           \"access\": \"VPN, ask the platform team\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.demo.invalid\"\n           }\n         }\n       ]\n     }\n     ```\n     After adding stand `load` with one service:\n     ```json\n     {\n       \"stands\": [\n         {\n           \"key\": \"stand:demo\",\n           \"purpose\": \"Demonstrations for customers\",\n           \"access\": \"VPN, ask the platform team\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.demo.invalid\"\n           }\n         },\n         {\n           \"key\": \"stand:load\",\n           \"purpose\": \"Load tests\",\n           \"access\": \"VPN\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.load.invalid\"\n           }\n         }\n       ]\n     }\n     ```\n  5. No generated files. Elsewhere refer to the stand only by its key `stand:\u003Cname>`, never by its base URL.\n- variable:\n  1. Ask the person for `issued_by` (who issues the value) and `how_to_get` (how to request it). Never ask for or write the value itself.\n  2. Write every value as a JSON string: inside it write `\"` as `\\\"` and `\\` as `\\\\`. For example `open \"Access\" in C:\\portal` becomes `\"how_to_get\": \"open \\\"Access\\\" in C:\\\\portal\"`.\n  3. Write the new entry with two spaces of indentation per level, as `json.dumps(indent=2)` writes it:\n     - `{` and the closing `}` of the entry: 4 spaces;\n     - the lines `\"name\"`, `\"issued_by\"`, `\"how_to_get\"`: 6 spaces, in this order;\n     - a comma at the end of the `\"name\"` and `\"issued_by\"` lines, none after `\"how_to_get\"`;\n     - no comma after the closing `}` of the entry.\n  4. Open `.agents\u002Fenv.schema.json` and find the `variables` list:\n     - When it is the one line `  \"variables\": []`, replace that line with the line `  \"variables\": [`, then the new entry, then the line `  ]`. See example A.\n     - Otherwise the list has entries. Add a comma at the end of the line `    }` that closes the previous last entry, directly above the line `  ]`. Insert the new entry between that line and `  ]`. See example B.\n     - Change nothing else in the file.\n\n     Example A, empty list. `.agents\u002Fenv.schema.json` before:\n     ```json\n     {\n       \"variables\": []\n     }\n     ```\n     After adding variable `TRACKER_TOKEN`:\n     ```json\n     {\n       \"variables\": [\n         {\n           \"name\": \"TRACKER_TOKEN\",\n           \"issued_by\": \"the tracker admin\",\n           \"how_to_get\": \"open \\\"Access\\\" in C:\\\\portal\"\n         }\n       ]\n     }\n     ```\n     Example B, a list with one entry. `.agents\u002Fenv.schema.json` before:\n     ```json\n     {\n       \"variables\": [\n         {\n           \"name\": \"TRACKER_TOKEN\",\n           \"issued_by\": \"the tracker admin\",\n           \"how_to_get\": \"request it in the access portal\"\n         }\n       ]\n     }\n     ```\n     After adding variable `FORGE_TOKEN`:\n     ```json\n     {\n       \"variables\": [\n         {\n           \"name\": \"TRACKER_TOKEN\",\n           \"issued_by\": \"the tracker admin\",\n           \"how_to_get\": \"request it in the access portal\"\n         },\n         {\n           \"name\": \"FORGE_TOKEN\",\n           \"issued_by\": \"the forge admin\",\n           \"how_to_get\": \"create a personal access token in the forge settings\"\n         }\n       ]\n     }\n     ```\n  5. No generated files. In the report tell people to run the `init` skill again to get the new key in `.local\u002Fenv`.\n\n## Recipes\nUse these only when `python3` is missing. Each recipe gives exactly the bytes `python3 tools\u002Fgenerate.py` writes. Do not change any other generated file.\n\n### Recipe: skill\n1. Run `mkdir -p .claude\u002Fskills\u002F\u003Cname> && cp -R .agents\u002Fskills\u002F\u003Cname>\u002F. .claude\u002Fskills\u002F\u003Cname>\u002F`.\n2. Run `find .claude\u002Fskills\u002F\u003Cname> -name .DS_Store -type f -delete`.\n3. Run `find .claude\u002Fskills\u002F\u003Cname> -name __pycache__ -type d -prune -exec rm -rf {} +`.\n4. Every file of `.agents\u002Fskills\u002F\u003Cname>\u002F` except `.DS_Store` files and files inside `__pycache__` directories now has a byte copy at the same path under `.claude\u002Fskills\u002F\u003Cname>\u002F`, and `.claude\u002Fskills\u002F\u003Cname>\u002F` has no other files.\n\nExample for skill `release-notes`:\n\n```\nmkdir -p .claude\u002Fskills\u002Frelease-notes && cp -R .agents\u002Fskills\u002Frelease-notes\u002F. .claude\u002Fskills\u002Frelease-notes\u002F\nfind .claude\u002Fskills\u002Frelease-notes -name .DS_Store -type f -delete\nfind .claude\u002Fskills\u002Frelease-notes -name __pycache__ -type d -prune -exec rm -rf {} +\n```\n\nResult: `.agents\u002Fskills\u002Frelease-notes\u002FSKILL.md` and `.claude\u002Fskills\u002Frelease-notes\u002FSKILL.md` are identical; `cmp .agents\u002Fskills\u002Frelease-notes\u002FSKILL.md .claude\u002Fskills\u002Frelease-notes\u002FSKILL.md` prints nothing, and `find .claude\u002Fskills\u002Frelease-notes -name .DS_Store -o -name __pycache__` prints nothing.\n\n### Recipe: agent\n1. Run `mkdir -p .claude\u002Fagents .opencode\u002Fagents && cp .agents\u002Fagents\u002F\u003Cname>.md .claude\u002Fagents\u002F\u003Cname>.md`.\n2. Write `.opencode\u002Fagents\u002F\u003Cname>.md` with these lines, in order:\n   - the line `---`;\n   - the first `description:` line of the source frontmatter, copied exactly (write `description: ` when the source has none);\n   - the line `mode: subagent`;\n   - the line `---`;\n   - every line after the source's closing `---`, unchanged (the whole source when it has no frontmatter).\n3. The file ends with a newline, like the source.\n\nExample for agent `reviewer`. Source `.agents\u002Fagents\u002Freviewer.md`:\n\n```\n---\nname: reviewer\ndescription: Reviews a merge request diff against the workspace rules.\n---\n# Reviewer\n\nRead the diff and list findings as `path:line message`.\n```\n\n`.claude\u002Fagents\u002Freviewer.md` is the same file. `.opencode\u002Fagents\u002Freviewer.md`:\n\n```\n---\ndescription: Reviews a merge request diff against the workspace rules.\nmode: subagent\n---\n# Reviewer\n\nRead the diff and list findings as `path:line message`.\n```\n\n### Recipe: rule\n1. Run `mkdir -p .cursor\u002Frules`.\n2. Write `.cursor\u002Frules\u002F\u003Cname>.mdc` with these lines, in order:\n   - the line `---`;\n   - the line `description: \u003Ctext of the first line of the rule without \"# \">`;\n   - the line `alwaysApply: true`;\n   - the line `---`;\n   - the whole rule file `.agents\u002Frules\u002F\u003Cname>.md`, unchanged.\n\nExample for rule `sql-style`. Source `.agents\u002Frules\u002Fsql-style.md`:\n\n```\n# SQL style\n\n- Write SQL keywords in upper case.\n```\n\n`.cursor\u002Frules\u002Fsql-style.mdc`:\n\n```\n---\ndescription: SQL style\nalwaysApply: true\n---\n# SQL style\n\n- Write SQL keywords in upper case.\n```\n\n### Recipe: map element\nUse it for kind `map-element`, and for kind `domain`, whose new `MAP.md` has no elements yet. In `domains\u002F\u003Cdomain>\u002FMAP.md` change only the lines strictly between a `\u003C!-- map:\u003Cblock>:begin -->` line and its `\u003C!-- map:\u003Cblock>:end -->` line; every other line stays as it is. When `MAP.md` lacks the marker lines of a block, skip that block.\n\n1. Blocks come from `elements` in `.agents\u002Fprofiles\u002F*\u002Fprofile.json`: one block `map:\u003Ckind>s` per element kind, and one block per table of the kind, named `map:` + the table heading in lower case with spaces written as `-`. Take every table `heading` and `columns` in the workspace language as step 1 says. For `ui-migration` these are `map:screens` (fields `key`, `route`, `kind`, `section`, `parent`, `access`, `label`, `wave`, `story`) and `map:transitions` (table `Transitions`, columns `Action`, `Target`); with language `ru` the second block is `map:переходы` (table `Переходы`, columns `Действие`, `Цель`).\n2. The `map:screens` block holds, in this order:\n   - the header `| key | route | kind | section | parent | access | label | wave | story |`: `| `, the field names joined with ` | `, then ` |`;\n   - the separator `|---|---|---|---|---|---|---|---|---|`: `|`, then `---|` once per field;\n   - one row per element file `domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F*.md`, with `\u003Cdir>` from the element in `profile.json` (`map` for `ui-migration`): `| `, its frontmatter values in field order joined with ` | `, then ` |`. Copy every value verbatim without surrounding quotes; join a list (`[a, b]` or lines starting with `  - `) with `, `; write a missing or empty value as the empty string, which gives two spaces between bars (`|  |`).\n3. The block of a table, `map:transitions` for `ui-migration`, holds, in this order:\n   - the header `| From | Action | Target |`: `| `, the first column name, ` | `, the table columns joined with ` | `, then ` |`. Take the first column name from `map_doc.from_column` in the `profile.json` that declares the element kind, in the workspace language as step 1 says; when it is absent, use `From`. For `ui-migration` with language `ru` the header is `| Откуда | Действие | Цель |`;\n   - the separator `|---|---|---|`: `|`, then `---|` once per column plus one;\n   - for each element file, one row per row of its `## \u003Cheading>` table (`## Transitions`, or `## Переходы` with language `ru`), in the order of that file: `| \u003Celement key> | ` followed by its cells in the order of the profile columns, joined with ` | `, then ` |`, each cell with surrounding spaces removed. An element whose table has no rows adds nothing.\n4. Order: elements go in ascending order of file name (`\u003Cslug>.md`), compared character by character by character code; for example `limit-card.md` comes before `limit.md`, because `-` sorts before `.`. In `map:transitions` the rows of one element stay together and follow the same element order.\n5. To add one element:\n   - When a block is empty, that is its begin line is directly followed by its end line, first write its header and separator lines between them.\n   - In `map:screens` insert the new row directly above the first row whose file name sorts after the new file name, or directly above the end line when there is none.\n   - In each table block insert the new element's rows, in file order, directly above the rows of the first element whose file name sorts after the new one, or directly above the end line when there is none.\n6. For a new domain there are no elements: each block gets only its header and separator lines.\n\nExamples A and B use language `en`. With language `ru` the second block of a new domain is:\n\n```\n## Переходы\n\u003C!-- map:переходы:begin -->\n| Откуда | Действие | Цель |\n|---|---|---|\n\u003C!-- map:переходы:end -->\n```\n\nExample A, new domain `risks`. The blocks of `domains\u002Frisks\u002FMAP.md` after the recipe:\n\n```\n## Screens\n\u003C!-- map:screens:begin -->\n| key | route | kind | section | parent | access | label | wave | story |\n|---|---|---|---|---|---|---|---|---|\n\u003C!-- map:screens:end -->\n\n## Transitions\n\u003C!-- map:transitions:begin -->\n| From | Action | Target |\n|---|---|---|\n\u003C!-- map:transitions:end -->\n```\n\nExample B, domain `risks` with `map\u002Falerts.md` and `map\u002Foverview.md`, adding `map\u002Flimits.md`. The blocks before:\n\n```\n## Screens\n\u003C!-- map:screens:begin -->\n| key | route | kind | section | parent | access | label | wave | story |\n|---|---|---|---|---|---|---|---|---|\n| screen:risks\u002Falerts | \u002Frisks\u002Falerts | place | Risks |  | risks.alerts.read | Alerts | 1 |  |\n| screen:risks\u002Foverview | \u002Frisks | place | Risks |  | risks.read | Overview | 1 | story:risks\u002Foverview |\n\u003C!-- map:screens:end -->\n\n## Transitions\n\u003C!-- map:transitions:begin -->\n| From | Action | Target |\n|---|---|---|\n| screen:risks\u002Foverview | Open alerts | screen:risks\u002Falerts |\n\u003C!-- map:transitions:end -->\n```\n\nThe new file `domains\u002Frisks\u002Fmap\u002Flimits.md`:\n\n```\n---\nkey: screen:risks\u002Flimits\nroute: \u002Frisks\u002Flimits\nkind: place\nsection: Risks\nparent: screen:risks\u002Foverview\naccess: risks.limits.read\nlabel: Limits\nwave: 2\nstory:\n---\n\n## Transitions\n| Action | Target |\n|---|---|\n| Back | screen:risks\u002Foverview |\n| Show alerts | screen:risks\u002Falerts |\n```\n\nThe blocks after. `limits.md` sorts after `alerts.md` and before `overview.md`:\n\n```\n## Screens\n\u003C!-- map:screens:begin -->\n| key | route | kind | section | parent | access | label | wave | story |\n|---|---|---|---|---|---|---|---|---|\n| screen:risks\u002Falerts | \u002Frisks\u002Falerts | place | Risks |  | risks.alerts.read | Alerts | 1 |  |\n| screen:risks\u002Flimits | \u002Frisks\u002Flimits | place | Risks | screen:risks\u002Foverview | risks.limits.read | Limits | 2 |  |\n| screen:risks\u002Foverview | \u002Frisks | place | Risks |  | risks.read | Overview | 1 | story:risks\u002Foverview |\n\u003C!-- map:screens:end -->\n\n## Transitions\n\u003C!-- map:transitions:begin -->\n| From | Action | Target |\n|---|---|---|\n| screen:risks\u002Flimits | Back | screen:risks\u002Foverview |\n| screen:risks\u002Flimits | Show alerts | screen:risks\u002Falerts |\n| screen:risks\u002Foverview | Open alerts | screen:risks\u002Falerts |\n\u003C!-- map:transitions:end -->\n```\n\n### Recipe: empty BREAKDOWN.md\nUse it for kind `stream`.\n\n1. Open `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fprofile.json` of the stream's profile and find its `breakdown` block. Take `\u003Ctitle>`, `\u003Cnote>` and `\u003Ccolumns>` from its `title`, `note` and `columns`, each in the workspace language as step 1 says. When the block or one of these keys is absent, use the default:\n   - title `Breakdown of`;\n   - note `Generated by tools\u002Fgenerate.py from stories\u002F*\u002Fstory.md. Do not edit.`;\n   - columns `Story`, `Wave`, `Scope`, `Unmapped`, `Tracker`, `Depends`.\n2. Write `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002FBREAKDOWN.md` with exactly these lines and end the file with a newline after the last line:\n   - `# \u003Ctitle> stream:\u003Cdomain>\u002F\u003Cname>`;\n   - an empty line;\n   - `\u003Cnote>`;\n   - an empty line;\n   - the header: `| `, the columns joined with ` | `, then ` |`;\n   - the separator `|---|---|---|---|---|---|`.\n\nWith the defaults the file is:\n\n```\n# Breakdown of stream:\u003Cdomain>\u002F\u003Cname>\n\nGenerated by tools\u002Fgenerate.py from stories\u002F*\u002Fstory.md. Do not edit.\n\n| Story | Wave | Scope | Unmapped | Tracker | Depends |\n|---|---|---|---|---|---|\n```\n\nWith profile `ui-migration` and language `ru` the first line is `# Разбивка stream:\u003Cdomain>\u002F\u003Cname>`, the note is `Сгенерировано tools\u002Fgenerate.py из stories\u002F*\u002Fstory.md. Не редактировать.` and the header is `| Стори | Волна | Экраны | Без экрана | Трекер | Зависит от |`.\n\nExample for stream `migration` in domain `risks` with language `en`, file `domains\u002Frisks\u002Fstreams\u002Fmigration\u002FBREAKDOWN.md`:\n\n```\n# Breakdown of stream:risks\u002Fmigration\n\nGenerated by tools\u002Fgenerate.py from stories\u002F*\u002Fstory.md. Do not edit.\n\n| Story | Wave | Scope | Unmapped | Tracker | Depends |\n|---|---|---|---|---|---|\n```\n\n### Other recipes\n- Repository: `## Recipe: repository table` in `.agents\u002Fskills\u002Frepos-add\u002FSKILL.md`.\n- ADR: the recipe in `.agents\u002Fskills\u002Fdecide\u002FSKILL.md`.\n- Domain and map element: `### Recipe: map element`. Stream: `### Recipe: empty BREAKDOWN.md`.\n- Role, stand and variable have no generated files and need no recipe.\n\n## Conflicts\nA file is generated when its path starts with `.claude\u002F`, `.opencode\u002F` or `.cursor\u002F`, when it is exactly `CLAUDE.md`, `.agents\u002Findex.json` or `REPOSITORIES.md`, or when it matches `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002FBREAKDOWN.md`. Every other file is not generated, with one exception: `domains\u002F\u003Cdomain>\u002FMAP.md`.\n\n`domains\u002F\u003Cdomain>\u002FMAP.md` mixes generated tables with hand-written text. Only the lines strictly between a `\u003C!-- map:\u003Cblock>:begin -->` line and its `\u003C!-- map:\u003Cblock>:end -->` line are generated. Run `grep -n '^\u003C\u003C\u003C\u003C\u003C\u003C\u003C\\|^>>>>>>>\\|\u003C!-- map:' domains\u002F\u003Cdomain>\u002FMAP.md`. Treat the file as generated for this conflict only when every `\u003C\u003C\u003C\u003C\u003C\u003C\u003C` line and its following `>>>>>>>` line lie between one begin line and its end line; otherwise treat it as not generated. Never run `git checkout --ours` on `MAP.md`: it would drop the lines your branch changed outside the blocks that git merged cleanly. Resolve a generated `MAP.md` by editing it instead: in each conflicted hunk keep the lines of one side, either will do, and delete the `\u003C\u003C\u003C\u003C\u003C\u003C\u003C`, `=======` and `>>>>>>>` lines; leave every line outside the hunks as it is. Regeneration then rewrites the blocks: without Python re-apply `### Recipe: map element`, adding every element file in `domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F` (for each `dir` of the profile's `elements`) that is missing from the blocks, so rows added on the default branch are kept too.\n\n1. List all conflicted files: `git diff --name-only --diff-filter=U`. Write the list down before you change anything.\n2. First check the whole list for any file that is not generated, including a `MAP.md` with a conflict outside its marker blocks. If there is one:\n   - Run `git rebase --abort`. Do not touch any file first, not even the generated ones.\n   - For each file that is not generated, show the person both versions with these labels:\n     - \"default branch\": the output of `git show origin\u002F\u003Cdefault>:\u003Cfile>`;\n     - \"your branch\": the output of `git show extend-\u003Ckind>-\u003Cname>:\u003Cfile>`.\n     When one of the two commands fails, tell the person that side has no such file.\n   - Stop and wait for the person.\n3. Only when every file in the list is generated:\n   - For each file in the list except `domains\u002F\u003Cdomain>\u002FMAP.md`, run `git checkout --ours -- \u003Cfile>`. During a rebase `--ours` is the default branch version.\n   - For each `domains\u002F\u003Cdomain>\u002FMAP.md` in the list, edit its conflicted hunks as described above; do not run `git checkout` on it.\n   - Regenerate: if `command -v python3` prints a path, run `python3 tools\u002Fgenerate.py`; otherwise apply the recipe of your kind in `## Recipes` again.\n   - For each file in the list, run `git add \u003Cfile>`. Also `git add` any generated file of your kind that the regeneration changed.\n   - Run `GIT_EDITOR=true git rebase --continue`.\n   - If `command -v python3` prints a path, run `python3 tools\u002Fcheck.py` again and fix findings as in step 7.\n\n## Without Python\n1. In step 6, apply the recipe of the kind in `## Recipes` instead of `python3 tools\u002Fgenerate.py`.\n2. Skip `python3 tools\u002Fgenerate.py` and `python3 tools\u002Fcheck.py` everywhere, including `## Conflicts`.\n3. End the report with the line:\n\ncheck not run: python3 missing\n","# Extend the workspace\n\n## Steps\n1. Go to the workspace root: the nearest directory, walking up from where you are, where `test -f .agents\u002Fkit.json` succeeds. Run every command below from there. Then find the workspace language:\n   - Run `grep -o '\"language\": *\"[a-z]*\"' .agents\u002Fkit.json`. When it prints a line such as `\"language\": \"ru\"`, the language is the code in the last quotes, here `ru`. When it prints nothing, the language is `en`. Call it `\u003Clanguage>`.\n   - A profile template `\u003Cname>` of profile `\u003Cprofile>` is `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Cname>.\u003Clanguage>.md` when `\u003Clanguage>` is not `en` and `test -f .agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Cname>.\u003Clanguage>.md` succeeds; otherwise it is `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Cname>.md`. Example with language `ru`: the `epic` template of `ui-migration` is `.agents\u002Fprofiles\u002Fui-migration\u002Fepic.ru.md`.\n   - In `profile.json` a heading, a column list, a key list, and the `title`, `note` and `columns` of `breakdown` may be a language object such as `{\"en\": \"Transitions\", \"ru\": \"Переходы\"}`. Take its value under `\u003Clanguage>`, or under `en` when that key is absent. A plain value is used as it is.\n2. Ask the person for the kind and the name, and wait for both answers:\n   - kind: one of `agent`, `skill`, `rule`, `role`, `domain`, `stream`, `map-element`, `stand`, `variable`, `repository`;\n   - name: lowercase letters, digits and `-` only (`[a-z0-9-]+`), for example `release-notes`; for `variable` use `[A-Z][A-Z0-9_]*`, for example `TRACKER_TOKEN`. For `stream` the name is the stream name, for `map-element` it is the element slug.\n   - For `repository`, stop here and follow `.agents\u002Fskills\u002Frepos-add\u002FSKILL.md` instead.\n   - For `domain`, also ask which profile the domain's map follows. Show the profiles with `ls .agents\u002Fprofiles` and let the person pick one of them.\n   - For `stream`, also ask the domain and the profile. Show the profiles with `ls .agents\u002Fprofiles` and let the person pick one of them.\n   - For `map-element`, also ask the domain and whether to add the element to the scope of a stream, and if so which stream. The profile is then the `\"profile\"` value of `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002Fstream.json`; without a stream, show `ls .agents\u002Fprofiles` and let the person pick one. Then read the `elements` list in `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fprofile.json`; when it has more than one object, ask the person which `kind` to add. From the chosen object take `kind`, `prefix`, `dir`, `fields` and `tables`. The template is the profile template `\u003Ckind>` from step 1 and the element key is `\u003Cprefix>:\u003Cdomain>\u002F\u003Cname>`. Run `test -f .agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Ckind>.md`; when it fails, stop, tell the person the profile has no template for that kind, and change nothing. Example: with the `ui-migration` profile the kind is `screen`, the prefix is `screen`, the directory is `map`, the template is `.agents\u002Fprofiles\u002Fui-migration\u002Fscreen.md` (`.agents\u002Fprofiles\u002Fui-migration\u002Fscreen.ru.md` with language `ru`) and the key is `screen:\u003Cdomain>\u002F\u003Cname>`.\n   - For `stream` and `map-element`, run `test -d domains\u002F\u003Cdomain>`. When it fails, the domain does not exist: stop, tell the person to add the domain first, and change nothing. For `map-element` with a stream, also run `test -f domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002Fstream.json`; when it fails, stop the same way.\n3. Check that the name is free. Run the command of the kind:\n   - agent: `test -e .agents\u002Fagents\u002F\u003Cname>.md`\n   - skill: `test -e .agents\u002Fskills\u002F\u003Cname>`\n   - rule: `test -e .agents\u002Frules\u002F\u003Cname>.md`\n   - role: `test -e .agents\u002Froles\u002F\u003Cname>.md`\n   - domain: `test -e domains\u002F\u003Cname>`\n   - stream: `test -e domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>`\n   - map-element: `test -e domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F\u003Cname>.md`\n   - stand: `grep -n '\"stand:\u003Cname>\"' environments.json`\n   - variable: `grep -n '\"\u003Cname>\"' .agents\u002Fenv.schema.json`\n   When `test` succeeds or `grep` prints a line, the entity already exists: stop, tell the person, and change nothing.\n4. Find the default branch: run `git symbolic-ref --short refs\u002Fremotes\u002Forigin\u002FHEAD` and remove the `origin\u002F` prefix; when the command fails, use `main`. Call it `\u003Cdefault>`. Then run, one by one:\n   - `git switch \u003Cdefault>`\n   - `git pull --ff-only`\n   - `git switch -c extend-\u003Ckind>-\u003Cname>`\n5. Do the steps of the kind in `## Kinds`.\n6. If `command -v python3` prints a path, run `python3 tools\u002Fgenerate.py`. Otherwise apply the recipe of the kind in `## Recipes` (kinds without generated files need no recipe).\n7. If `command -v python3` prints a path, run `python3 tools\u002Fcheck.py`. Fix every finding in files you changed and run it again until it prints nothing. Otherwise remember the line `check not run: python3 missing`.\n8. Commit:\n   - Run `git add` with every file you created or changed, including the generated files listed for the kind in `## Kinds`.\n   - Run `git commit -m \"feat(workspace): add \u003Ckind> \u003Cname>\"`.\n9. Run `git pull --rebase origin \u003Cdefault>`. On conflicts follow `## Conflicts`.\n10. Push and open the merge request by `.agents\u002Frules\u002Fmerge-requests.md`, with branch `extend-\u003Ckind>-\u003Cname>` and title `Add \u003Ckind> \u003Cname>`.\n11. Report to the person:\n    - the files you created or changed;\n    - the branch `extend-\u003Ckind>-\u003Cname>`;\n    - the merge request link, or the instruction to open it;\n    - as the last line, the check result, or `check not run: python3 missing`.\n\n## Kinds\n- agent:\n  1. Run `mkdir -p .agents\u002Fagents && cp .agents\u002Ftemplates\u002Fagent.md .agents\u002Fagents\u002F\u003Cname>.md`.\n  2. In `.agents\u002Fagents\u002F\u003Cname>.md` set `name: \u003Cname>`, write a one-sentence `description:` and replace the title and instructions. Never list tools that exist only in one tool, such as the browser automation of one vendor.\n  3. Generated files: `.claude\u002Fagents\u002F\u003Cname>.md`, `.opencode\u002Fagents\u002F\u003Cname>.md`.\n- skill:\n  1. Run `mkdir -p .agents\u002Fskills\u002F\u003Cname> && cp .agents\u002Ftemplates\u002Fskill\u002FSKILL.md .agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md`.\n  2. In `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md` set `name: \u003Cname>` and a one-sentence `description:`, write numbered steps under `## Steps`, and keep a `## Without Python` section. When the skill changes files, its steps end with `python3 tools\u002Fgenerate.py` and `python3 tools\u002Fcheck.py`, and its `## Without Python` ends with the line `check not run: python3 missing`.\n  3. In `AGENTS.md` add one row at the end of the table under `## Skills`, in the same form as the other rows. Example for `release-notes`:\n     ```\n     | `.agents\u002Fskills\u002Frelease-notes\u002FSKILL.md` | write release notes for a merged merge request |\n     ```\n  4. Generated files: every file under `.claude\u002Fskills\u002F\u003Cname>\u002F`.\n- rule:\n  1. Run `cp .agents\u002Ftemplates\u002Frule.md .agents\u002Frules\u002F\u003Cname>.md`.\n  2. Replace `\u003CRule title>` in the first line; the first line stays `# \u003CRule title>`. Write one rule per bullet below it.\n  3. Generated files: `.cursor\u002Frules\u002F\u003Cname>.mdc`.\n- role:\n  1. Run `cp .agents\u002Ftemplates\u002Frole.md .agents\u002Froles\u002F\u003Cname>.md`.\n  2. Replace every `\u003Crole>` with `\u003Cname>` and fill the sections.\n  3. No generated files.\n- domain:\n  1. Run `mkdir -p domains\u002F\u003Cname>\u002Fmap && cp .agents\u002Ftemplates\u002Fdomain\u002FREADME.md domains\u002F\u003Cname>\u002FREADME.md && cp \u003Cmap template> domains\u002F\u003Cname>\u002FMAP.md && touch domains\u002F\u003Cname>\u002Fmap\u002F.gitkeep`, where `\u003Cmap template>` is the profile template `MAP` from step 1: `.agents\u002Fprofiles\u002F\u003Cprofile>\u002FMAP.md`, or `.agents\u002Fprofiles\u002F\u003Cprofile>\u002FMAP.\u003Clanguage>.md` when that file exists. For `ui-migration` with language `en`: `cp .agents\u002Fprofiles\u002Fui-migration\u002FMAP.md domains\u002F\u003Cname>\u002FMAP.md`; with language `ru`: `cp .agents\u002Fprofiles\u002Fui-migration\u002FMAP.ru.md domains\u002F\u003Cname>\u002FMAP.md`.\n  2. In `domains\u002F\u003Cname>\u002FREADME.md` replace every `\u003Cname>` with the domain name and fill `## Purpose`.\n  3. In `domains\u002F\u003Cname>\u002FMAP.md` replace every `\u003Cdomain>` with the domain name. Change nothing else.\n  4. Generated files: the tables between the `map:` markers in `domains\u002F\u003Cname>\u002FMAP.md`.\n- stream:\n  1. Run `mkdir -p domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname> && cp .agents\u002Ftemplates\u002Fstream.json domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fstream.json && cp \u003Cepic template> domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fepic.md`, where `\u003Cepic template>` is the profile template `epic` from step 1: `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fepic.md`, or `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fepic.\u003Clanguage>.md` when that file exists. For `ui-migration` with language `ru`: `cp .agents\u002Fprofiles\u002Fui-migration\u002Fepic.ru.md domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fepic.md`.\n  2. In `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fstream.json` change only two values: in `\"key\"` replace `\u003Cdomain>\u002F\u003Cstream>` with `\u003Cdomain>\u002F\u003Cname>`, and set `\"profile\"` to the chosen profile. Keep `\"stage\": \"goal\"`, `\"scope\": []` and `\"approvals\": []`. Example for stream `migration` in domain `risks` with profile `ui-migration`:\n     ```json\n     {\n       \"key\": \"stream:risks\u002Fmigration\",\n       \"profile\": \"ui-migration\",\n       \"stage\": \"goal\",\n       \"scope\": [],\n       \"approvals\": []\n     }\n     ```\n  3. In `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002Fepic.md` replace the placeholder in the first line with the title the person gives: `\u003CEpic title>` in `epic.md`, `\u003CНазвание эпика>` in `ui-migration\u002Fepic.ru.md`. Keep every section; the person fills them during the `goal` stage.\n  4. Generated files: `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002FBREAKDOWN.md`.\n- map-element:\n  1. Run `mkdir -p domains\u002F\u003Cdomain>\u002F\u003Cdir> && cp \u003Celement template> domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F\u003Cname>.md`, with `\u003Cdir>` from step 2 and `\u003Celement template>` the profile template `\u003Ckind>` from step 1: `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Ckind>.md`, or `.agents\u002Fprofiles\u002F\u003Cprofile>\u002F\u003Ckind>.\u003Clanguage>.md` when that file exists. For `ui-migration`: `mkdir -p domains\u002F\u003Cdomain>\u002Fmap && cp .agents\u002Fprofiles\u002Fui-migration\u002Fscreen.md domains\u002F\u003Cdomain>\u002Fmap\u002F\u003Cname>.md`; with language `ru` copy `.agents\u002Fprofiles\u002Fui-migration\u002Fscreen.ru.md` instead.\n  2. In `domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F\u003Cname>.md` set `key: \u003Cprefix>:\u003Cdomain>\u002F\u003Cname>`. Ask the person for every other field in `fields` of the element; fields in `may_be_empty` may stay empty; a field with a `values` list takes one of those values. Write each value after `\u003Cfield>: ` on its own line. Never invent a value. For `ui-migration`: set `key: screen:\u003Cdomain>\u002F\u003Cname>`, ask for `route`, `section`, `access`, `label` and `wave`, and for `parent` (a `screen:` key) and `story` (a `story:` key), which may stay empty; keep `kind: place`.\n  3. For each object in `tables` of the element, take `heading`, `columns` and `keys` in the workspace language as step 1 says. Under `## \u003Cheading>` add one row per row the person names, in the person's order, with one cell per column of `columns`, in that order; a cell of a column listed in `keys` is an element key. With no rows keep only the header and separator lines. For `ui-migration`: under `## Transitions` (`## Переходы` with language `ru`, columns `Действие`, `Цель`) add one row `| \u003Caction> | \u003Ctarget> |` per transition; every target is a `screen:` key.\n  4. Only when the person chose a stream, edit `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002Fstream.json`, keeping two spaces of indentation per level, as `json.dumps(indent=2)` writes it:\n     - Scope: when `scope` is the one line `  \"scope\": [],`, replace it with the three lines `  \"scope\": [`, `    \"\u003Cprefix>:\u003Cdomain>\u002F\u003Cname>\"`, `  ],`. Otherwise add a comma at the end of the last string line of `scope` and insert the line `    \"\u003Cprefix>:\u003Cdomain>\u002F\u003Cname>\"` directly above `  ],`.\n     - Stage: the stage order is `goal`, `map`, `decomposition`, `ready`, `delivery`, `done`. When `stage` is `goal` or `map`, change nothing else. When `stage` is `decomposition`, `ready`, `delivery` or `done`:\n       - set `\"stage\": \"map\"`;\n       - remove every approval object whose `\"stage\"` is `map`, `decomposition`, `ready`, `delivery` or `done`, and keep the others in their order; every kept object except the last one ends with `    },`, the last one with `    }`; when no object is left, write the one line `  \"approvals\": []`;\n       - tell the person: \"The scope of stream:\u003Cdomain>\u002F\u003Cstream> grew after its map was approved, so the stream is back at stage `map` and the approvals of `map` and every later stage are removed. The map and the later stages must be approved again.\"\n\n     Example: stream `migration` at stage `ready`, adding `screen:risks\u002Flimits`. Before:\n     ```json\n     {\n       \"key\": \"stream:risks\u002Fmigration\",\n       \"profile\": \"ui-migration\",\n       \"stage\": \"ready\",\n       \"scope\": [\n         \"screen:risks\u002Foverview\"\n       ],\n       \"approvals\": [\n         {\n           \"stage\": \"goal\",\n           \"by\": \"anna\",\n           \"date\": \"2026-09-01\"\n         },\n         {\n           \"stage\": \"map\",\n           \"by\": \"anna\",\n           \"date\": \"2026-09-05\"\n         },\n         {\n           \"stage\": \"decomposition\",\n           \"by\": \"oleg\",\n           \"date\": \"2026-09-08\"\n         }\n       ]\n     }\n     ```\n     After:\n     ```json\n     {\n       \"key\": \"stream:risks\u002Fmigration\",\n       \"profile\": \"ui-migration\",\n       \"stage\": \"map\",\n       \"scope\": [\n         \"screen:risks\u002Foverview\",\n         \"screen:risks\u002Flimits\"\n       ],\n       \"approvals\": [\n         {\n           \"stage\": \"goal\",\n           \"by\": \"anna\",\n           \"date\": \"2026-09-01\"\n         }\n       ]\n     }\n     ```\n  5. Generated files: the tables between the `map:` markers in `domains\u002F\u003Cdomain>\u002FMAP.md`.\n- stand:\n  1. Ask the person for `purpose`, `access`, and every service with its base URL. Never invent a value.\n  2. Write every value as a JSON string: inside it write `\"` as `\\\"` and `\\` as `\\\\`. For example the access `Ask \"platform\" team, C:\\vpn` becomes `\"access\": \"Ask \\\"platform\\\" team, C:\\\\vpn\"`.\n  3. Write the new entry with two spaces of indentation per level, as `json.dumps(indent=2)` writes it:\n     - `{` and the closing `}` of the entry: 4 spaces;\n     - the lines `\"key\"`, `\"purpose\"`, `\"access\"`, `\"services\": {` and the closing `}` of `services`: 6 spaces, in this order;\n     - each service line `\"\u003Cservice>\": \"\u003Cbase url>\"`: 8 spaces;\n     - a comma at the end of the `\"key\"`, `\"purpose\"` and `\"access\"` lines;\n     - a comma after every service line except the last one;\n     - no comma after the closing `}` of `services` and no comma after the closing `}` of the entry.\n  4. Open `environments.json` and find the `stands` list:\n     - When it is the one line `  \"stands\": []`, replace that line with the line `  \"stands\": [`, then the new entry, then the line `  ]`. See example A.\n     - Otherwise the list has entries. Add a comma at the end of the line `    }` that closes the previous last entry, directly above the line `  ]`. Insert the new entry between that line and `  ]`. See example B.\n     - Change nothing else in the file.\n\n     Example A, empty list. `environments.json` before:\n     ```json\n     {\n       \"stands\": []\n     }\n     ```\n     After adding stand `demo` with two services:\n     ```json\n     {\n       \"stands\": [\n         {\n           \"key\": \"stand:demo\",\n           \"purpose\": \"Demonstrations for customers\",\n           \"access\": \"Ask \\\"platform\\\" team, C:\\\\vpn\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.demo.invalid\",\n             \"billing\": \"https:\u002F\u002Fbilling.demo.invalid\"\n           }\n         }\n       ]\n     }\n     ```\n     Example B, a list with one entry. `environments.json` before:\n     ```json\n     {\n       \"stands\": [\n         {\n           \"key\": \"stand:demo\",\n           \"purpose\": \"Demonstrations for customers\",\n           \"access\": \"VPN, ask the platform team\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.demo.invalid\"\n           }\n         }\n       ]\n     }\n     ```\n     After adding stand `load` with one service:\n     ```json\n     {\n       \"stands\": [\n         {\n           \"key\": \"stand:demo\",\n           \"purpose\": \"Demonstrations for customers\",\n           \"access\": \"VPN, ask the platform team\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.demo.invalid\"\n           }\n         },\n         {\n           \"key\": \"stand:load\",\n           \"purpose\": \"Load tests\",\n           \"access\": \"VPN\",\n           \"services\": {\n             \"orders\": \"https:\u002F\u002Forders.load.invalid\"\n           }\n         }\n       ]\n     }\n     ```\n  5. No generated files. Elsewhere refer to the stand only by its key `stand:\u003Cname>`, never by its base URL.\n- variable:\n  1. Ask the person for `issued_by` (who issues the value) and `how_to_get` (how to request it). Never ask for or write the value itself.\n  2. Write every value as a JSON string: inside it write `\"` as `\\\"` and `\\` as `\\\\`. For example `open \"Access\" in C:\\portal` becomes `\"how_to_get\": \"open \\\"Access\\\" in C:\\\\portal\"`.\n  3. Write the new entry with two spaces of indentation per level, as `json.dumps(indent=2)` writes it:\n     - `{` and the closing `}` of the entry: 4 spaces;\n     - the lines `\"name\"`, `\"issued_by\"`, `\"how_to_get\"`: 6 spaces, in this order;\n     - a comma at the end of the `\"name\"` and `\"issued_by\"` lines, none after `\"how_to_get\"`;\n     - no comma after the closing `}` of the entry.\n  4. Open `.agents\u002Fenv.schema.json` and find the `variables` list:\n     - When it is the one line `  \"variables\": []`, replace that line with the line `  \"variables\": [`, then the new entry, then the line `  ]`. See example A.\n     - Otherwise the list has entries. Add a comma at the end of the line `    }` that closes the previous last entry, directly above the line `  ]`. Insert the new entry between that line and `  ]`. See example B.\n     - Change nothing else in the file.\n\n     Example A, empty list. `.agents\u002Fenv.schema.json` before:\n     ```json\n     {\n       \"variables\": []\n     }\n     ```\n     After adding variable `TRACKER_TOKEN`:\n     ```json\n     {\n       \"variables\": [\n         {\n           \"name\": \"TRACKER_TOKEN\",\n           \"issued_by\": \"the tracker admin\",\n           \"how_to_get\": \"open \\\"Access\\\" in C:\\\\portal\"\n         }\n       ]\n     }\n     ```\n     Example B, a list with one entry. `.agents\u002Fenv.schema.json` before:\n     ```json\n     {\n       \"variables\": [\n         {\n           \"name\": \"TRACKER_TOKEN\",\n           \"issued_by\": \"the tracker admin\",\n           \"how_to_get\": \"request it in the access portal\"\n         }\n       ]\n     }\n     ```\n     After adding variable `FORGE_TOKEN`:\n     ```json\n     {\n       \"variables\": [\n         {\n           \"name\": \"TRACKER_TOKEN\",\n           \"issued_by\": \"the tracker admin\",\n           \"how_to_get\": \"request it in the access portal\"\n         },\n         {\n           \"name\": \"FORGE_TOKEN\",\n           \"issued_by\": \"the forge admin\",\n           \"how_to_get\": \"create a personal access token in the forge settings\"\n         }\n       ]\n     }\n     ```\n  5. No generated files. In the report tell people to run the `init` skill again to get the new key in `.local\u002Fenv`.\n\n## Recipes\nUse these only when `python3` is missing. Each recipe gives exactly the bytes `python3 tools\u002Fgenerate.py` writes. Do not change any other generated file.\n\n### Recipe: skill\n1. Run `mkdir -p .claude\u002Fskills\u002F\u003Cname> && cp -R .agents\u002Fskills\u002F\u003Cname>\u002F. .claude\u002Fskills\u002F\u003Cname>\u002F`.\n2. Run `find .claude\u002Fskills\u002F\u003Cname> -name .DS_Store -type f -delete`.\n3. Run `find .claude\u002Fskills\u002F\u003Cname> -name __pycache__ -type d -prune -exec rm -rf {} +`.\n4. Every file of `.agents\u002Fskills\u002F\u003Cname>\u002F` except `.DS_Store` files and files inside `__pycache__` directories now has a byte copy at the same path under `.claude\u002Fskills\u002F\u003Cname>\u002F`, and `.claude\u002Fskills\u002F\u003Cname>\u002F` has no other files.\n\nExample for skill `release-notes`:\n\n```\nmkdir -p .claude\u002Fskills\u002Frelease-notes && cp -R .agents\u002Fskills\u002Frelease-notes\u002F. .claude\u002Fskills\u002Frelease-notes\u002F\nfind .claude\u002Fskills\u002Frelease-notes -name .DS_Store -type f -delete\nfind .claude\u002Fskills\u002Frelease-notes -name __pycache__ -type d -prune -exec rm -rf {} +\n```\n\nResult: `.agents\u002Fskills\u002Frelease-notes\u002FSKILL.md` and `.claude\u002Fskills\u002Frelease-notes\u002FSKILL.md` are identical; `cmp .agents\u002Fskills\u002Frelease-notes\u002FSKILL.md .claude\u002Fskills\u002Frelease-notes\u002FSKILL.md` prints nothing, and `find .claude\u002Fskills\u002Frelease-notes -name .DS_Store -o -name __pycache__` prints nothing.\n\n### Recipe: agent\n1. Run `mkdir -p .claude\u002Fagents .opencode\u002Fagents && cp .agents\u002Fagents\u002F\u003Cname>.md .claude\u002Fagents\u002F\u003Cname>.md`.\n2. Write `.opencode\u002Fagents\u002F\u003Cname>.md` with these lines, in order:\n   - the line `---`;\n   - the first `description:` line of the source frontmatter, copied exactly (write `description: ` when the source has none);\n   - the line `mode: subagent`;\n   - the line `---`;\n   - every line after the source's closing `---`, unchanged (the whole source when it has no frontmatter).\n3. The file ends with a newline, like the source.\n\nExample for agent `reviewer`. Source `.agents\u002Fagents\u002Freviewer.md`:\n\n```\n---\nname: reviewer\ndescription: Reviews a merge request diff against the workspace rules.\n---\n# Reviewer\n\nRead the diff and list findings as `path:line message`.\n```\n\n`.claude\u002Fagents\u002Freviewer.md` is the same file. `.opencode\u002Fagents\u002Freviewer.md`:\n\n```\n---\ndescription: Reviews a merge request diff against the workspace rules.\nmode: subagent\n---\n# Reviewer\n\nRead the diff and list findings as `path:line message`.\n```\n\n### Recipe: rule\n1. Run `mkdir -p .cursor\u002Frules`.\n2. Write `.cursor\u002Frules\u002F\u003Cname>.mdc` with these lines, in order:\n   - the line `---`;\n   - the line `description: \u003Ctext of the first line of the rule without \"# \">`;\n   - the line `alwaysApply: true`;\n   - the line `---`;\n   - the whole rule file `.agents\u002Frules\u002F\u003Cname>.md`, unchanged.\n\nExample for rule `sql-style`. Source `.agents\u002Frules\u002Fsql-style.md`:\n\n```\n# SQL style\n\n- Write SQL keywords in upper case.\n```\n\n`.cursor\u002Frules\u002Fsql-style.mdc`:\n\n```\n---\ndescription: SQL style\nalwaysApply: true\n---\n# SQL style\n\n- Write SQL keywords in upper case.\n```\n\n### Recipe: map element\nUse it for kind `map-element`, and for kind `domain`, whose new `MAP.md` has no elements yet. In `domains\u002F\u003Cdomain>\u002FMAP.md` change only the lines strictly between a `\u003C!-- map:\u003Cblock>:begin -->` line and its `\u003C!-- map:\u003Cblock>:end -->` line; every other line stays as it is. When `MAP.md` lacks the marker lines of a block, skip that block.\n\n1. Blocks come from `elements` in `.agents\u002Fprofiles\u002F*\u002Fprofile.json`: one block `map:\u003Ckind>s` per element kind, and one block per table of the kind, named `map:` + the table heading in lower case with spaces written as `-`. Take every table `heading` and `columns` in the workspace language as step 1 says. For `ui-migration` these are `map:screens` (fields `key`, `route`, `kind`, `section`, `parent`, `access`, `label`, `wave`, `story`) and `map:transitions` (table `Transitions`, columns `Action`, `Target`); with language `ru` the second block is `map:переходы` (table `Переходы`, columns `Действие`, `Цель`).\n2. The `map:screens` block holds, in this order:\n   - the header `| key | route | kind | section | parent | access | label | wave | story |`: `| `, the field names joined with ` | `, then ` |`;\n   - the separator `|---|---|---|---|---|---|---|---|---|`: `|`, then `---|` once per field;\n   - one row per element file `domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F*.md`, with `\u003Cdir>` from the element in `profile.json` (`map` for `ui-migration`): `| `, its frontmatter values in field order joined with ` | `, then ` |`. Copy every value verbatim without surrounding quotes; join a list (`[a, b]` or lines starting with `  - `) with `, `; write a missing or empty value as the empty string, which gives two spaces between bars (`|  |`).\n3. The block of a table, `map:transitions` for `ui-migration`, holds, in this order:\n   - the header `| From | Action | Target |`: `| `, the first column name, ` | `, the table columns joined with ` | `, then ` |`. Take the first column name from `map_doc.from_column` in the `profile.json` that declares the element kind, in the workspace language as step 1 says; when it is absent, use `From`. For `ui-migration` with language `ru` the header is `| Откуда | Действие | Цель |`;\n   - the separator `|---|---|---|`: `|`, then `---|` once per column plus one;\n   - for each element file, one row per row of its `## \u003Cheading>` table (`## Transitions`, or `## Переходы` with language `ru`), in the order of that file: `| \u003Celement key> | ` followed by its cells in the order of the profile columns, joined with ` | `, then ` |`, each cell with surrounding spaces removed. An element whose table has no rows adds nothing.\n4. Order: elements go in ascending order of file name (`\u003Cslug>.md`), compared character by character by character code; for example `limit-card.md` comes before `limit.md`, because `-` sorts before `.`. In `map:transitions` the rows of one element stay together and follow the same element order.\n5. To add one element:\n   - When a block is empty, that is its begin line is directly followed by its end line, first write its header and separator lines between them.\n   - In `map:screens` insert the new row directly above the first row whose file name sorts after the new file name, or directly above the end line when there is none.\n   - In each table block insert the new element's rows, in file order, directly above the rows of the first element whose file name sorts after the new one, or directly above the end line when there is none.\n6. For a new domain there are no elements: each block gets only its header and separator lines.\n\nExamples A and B use language `en`. With language `ru` the second block of a new domain is:\n\n```\n## Переходы\n\u003C!-- map:переходы:begin -->\n| Откуда | Действие | Цель |\n|---|---|---|\n\u003C!-- map:переходы:end -->\n```\n\nExample A, new domain `risks`. The blocks of `domains\u002Frisks\u002FMAP.md` after the recipe:\n\n```\n## Screens\n\u003C!-- map:screens:begin -->\n| key | route | kind | section | parent | access | label | wave | story |\n|---|---|---|---|---|---|---|---|---|\n\u003C!-- map:screens:end -->\n\n## Transitions\n\u003C!-- map:transitions:begin -->\n| From | Action | Target |\n|---|---|---|\n\u003C!-- map:transitions:end -->\n```\n\nExample B, domain `risks` with `map\u002Falerts.md` and `map\u002Foverview.md`, adding `map\u002Flimits.md`. The blocks before:\n\n```\n## Screens\n\u003C!-- map:screens:begin -->\n| key | route | kind | section | parent | access | label | wave | story |\n|---|---|---|---|---|---|---|---|---|\n| screen:risks\u002Falerts | \u002Frisks\u002Falerts | place | Risks |  | risks.alerts.read | Alerts | 1 |  |\n| screen:risks\u002Foverview | \u002Frisks | place | Risks |  | risks.read | Overview | 1 | story:risks\u002Foverview |\n\u003C!-- map:screens:end -->\n\n## Transitions\n\u003C!-- map:transitions:begin -->\n| From | Action | Target |\n|---|---|---|\n| screen:risks\u002Foverview | Open alerts | screen:risks\u002Falerts |\n\u003C!-- map:transitions:end -->\n```\n\nThe new file `domains\u002Frisks\u002Fmap\u002Flimits.md`:\n\n```\n---\nkey: screen:risks\u002Flimits\nroute: \u002Frisks\u002Flimits\nkind: place\nsection: Risks\nparent: screen:risks\u002Foverview\naccess: risks.limits.read\nlabel: Limits\nwave: 2\nstory:\n---\n\n## Transitions\n| Action | Target |\n|---|---|\n| Back | screen:risks\u002Foverview |\n| Show alerts | screen:risks\u002Falerts |\n```\n\nThe blocks after. `limits.md` sorts after `alerts.md` and before `overview.md`:\n\n```\n## Screens\n\u003C!-- map:screens:begin -->\n| key | route | kind | section | parent | access | label | wave | story |\n|---|---|---|---|---|---|---|---|---|\n| screen:risks\u002Falerts | \u002Frisks\u002Falerts | place | Risks |  | risks.alerts.read | Alerts | 1 |  |\n| screen:risks\u002Flimits | \u002Frisks\u002Flimits | place | Risks | screen:risks\u002Foverview | risks.limits.read | Limits | 2 |  |\n| screen:risks\u002Foverview | \u002Frisks | place | Risks |  | risks.read | Overview | 1 | story:risks\u002Foverview |\n\u003C!-- map:screens:end -->\n\n## Transitions\n\u003C!-- map:transitions:begin -->\n| From | Action | Target |\n|---|---|---|\n| screen:risks\u002Flimits | Back | screen:risks\u002Foverview |\n| screen:risks\u002Flimits | Show alerts | screen:risks\u002Falerts |\n| screen:risks\u002Foverview | Open alerts | screen:risks\u002Falerts |\n\u003C!-- map:transitions:end -->\n```\n\n### Recipe: empty BREAKDOWN.md\nUse it for kind `stream`.\n\n1. Open `.agents\u002Fprofiles\u002F\u003Cprofile>\u002Fprofile.json` of the stream's profile and find its `breakdown` block. Take `\u003Ctitle>`, `\u003Cnote>` and `\u003Ccolumns>` from its `title`, `note` and `columns`, each in the workspace language as step 1 says. When the block or one of these keys is absent, use the default:\n   - title `Breakdown of`;\n   - note `Generated by tools\u002Fgenerate.py from stories\u002F*\u002Fstory.md. Do not edit.`;\n   - columns `Story`, `Wave`, `Scope`, `Unmapped`, `Tracker`, `Depends`.\n2. Write `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cname>\u002FBREAKDOWN.md` with exactly these lines and end the file with a newline after the last line:\n   - `# \u003Ctitle> stream:\u003Cdomain>\u002F\u003Cname>`;\n   - an empty line;\n   - `\u003Cnote>`;\n   - an empty line;\n   - the header: `| `, the columns joined with ` | `, then ` |`;\n   - the separator `|---|---|---|---|---|---|`.\n\nWith the defaults the file is:\n\n```\n# Breakdown of stream:\u003Cdomain>\u002F\u003Cname>\n\nGenerated by tools\u002Fgenerate.py from stories\u002F*\u002Fstory.md. Do not edit.\n\n| Story | Wave | Scope | Unmapped | Tracker | Depends |\n|---|---|---|---|---|---|\n```\n\nWith profile `ui-migration` and language `ru` the first line is `# Разбивка stream:\u003Cdomain>\u002F\u003Cname>`, the note is `Сгенерировано tools\u002Fgenerate.py из stories\u002F*\u002Fstory.md. Не редактировать.` and the header is `| Стори | Волна | Экраны | Без экрана | Трекер | Зависит от |`.\n\nExample for stream `migration` in domain `risks` with language `en`, file `domains\u002Frisks\u002Fstreams\u002Fmigration\u002FBREAKDOWN.md`:\n\n```\n# Breakdown of stream:risks\u002Fmigration\n\nGenerated by tools\u002Fgenerate.py from stories\u002F*\u002Fstory.md. Do not edit.\n\n| Story | Wave | Scope | Unmapped | Tracker | Depends |\n|---|---|---|---|---|---|\n```\n\n### Other recipes\n- Repository: `## Recipe: repository table` in `.agents\u002Fskills\u002Frepos-add\u002FSKILL.md`.\n- ADR: the recipe in `.agents\u002Fskills\u002Fdecide\u002FSKILL.md`.\n- Domain and map element: `### Recipe: map element`. Stream: `### Recipe: empty BREAKDOWN.md`.\n- Role, stand and variable have no generated files and need no recipe.\n\n## Conflicts\nA file is generated when its path starts with `.claude\u002F`, `.opencode\u002F` or `.cursor\u002F`, when it is exactly `CLAUDE.md`, `.agents\u002Findex.json` or `REPOSITORIES.md`, or when it matches `domains\u002F\u003Cdomain>\u002Fstreams\u002F\u003Cstream>\u002FBREAKDOWN.md`. Every other file is not generated, with one exception: `domains\u002F\u003Cdomain>\u002FMAP.md`.\n\n`domains\u002F\u003Cdomain>\u002FMAP.md` mixes generated tables with hand-written text. Only the lines strictly between a `\u003C!-- map:\u003Cblock>:begin -->` line and its `\u003C!-- map:\u003Cblock>:end -->` line are generated. Run `grep -n '^\u003C\u003C\u003C\u003C\u003C\u003C\u003C\\|^>>>>>>>\\|\u003C!-- map:' domains\u002F\u003Cdomain>\u002FMAP.md`. Treat the file as generated for this conflict only when every `\u003C\u003C\u003C\u003C\u003C\u003C\u003C` line and its following `>>>>>>>` line lie between one begin line and its end line; otherwise treat it as not generated. Never run `git checkout --ours` on `MAP.md`: it would drop the lines your branch changed outside the blocks that git merged cleanly. Resolve a generated `MAP.md` by editing it instead: in each conflicted hunk keep the lines of one side, either will do, and delete the `\u003C\u003C\u003C\u003C\u003C\u003C\u003C`, `=======` and `>>>>>>>` lines; leave every line outside the hunks as it is. Regeneration then rewrites the blocks: without Python re-apply `### Recipe: map element`, adding every element file in `domains\u002F\u003Cdomain>\u002F\u003Cdir>\u002F` (for each `dir` of the profile's `elements`) that is missing from the blocks, so rows added on the default branch are kept too.\n\n1. List all conflicted files: `git diff --name-only --diff-filter=U`. Write the list down before you change anything.\n2. First check the whole list for any file that is not generated, including a `MAP.md` with a conflict outside its marker blocks. If there is one:\n   - Run `git rebase --abort`. Do not touch any file first, not even the generated ones.\n   - For each file that is not generated, show the person both versions with these labels:\n     - \"default branch\": the output of `git show origin\u002F\u003Cdefault>:\u003Cfile>`;\n     - \"your branch\": the output of `git show extend-\u003Ckind>-\u003Cname>:\u003Cfile>`.\n     When one of the two commands fails, tell the person that side has no such file.\n   - Stop and wait for the person.\n3. Only when every file in the list is generated:\n   - For each file in the list except `domains\u002F\u003Cdomain>\u002FMAP.md`, run `git checkout --ours -- \u003Cfile>`. During a rebase `--ours` is the default branch version.\n   - For each `domains\u002F\u003Cdomain>\u002FMAP.md` in the list, edit its conflicted hunks as described above; do not run `git checkout` on it.\n   - Regenerate: if `command -v python3` prints a path, run `python3 tools\u002Fgenerate.py`; otherwise apply the recipe of your kind in `## Recipes` again.\n   - For each file in the list, run `git add \u003Cfile>`. Also `git add` any generated file of your kind that the regeneration changed.\n   - Run `GIT_EDITOR=true git rebase --continue`.\n   - If `command -v python3` prints a path, run `python3 tools\u002Fcheck.py` again and fix findings as in step 7.\n\n## Without Python\n1. In step 6, apply the recipe of the kind in `## Recipes` instead of `python3 tools\u002Fgenerate.py`.\n2. Skip `python3 tools\u002Fgenerate.py` and `python3 tools\u002Fcheck.py` everywhere, including `## Conflicts`.\n3. End the report with the line:\n\ncheck not run: python3 missing\n",{"name":5,"description":7},"main","84be7f584d7d6998f014342de57ee511e9596cd2","tests\u002Ffixtures\u002Fnormalize-team\u002F.agents\u002Fskills\u002Fextend","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config","https:\u002F\u002Fgithub.com\u002Fmaximk777","2026-10-30 20:22:07",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add maximk777\u002Fopencode-config --skill extend",{"tool":35,"command":36},"bunx","bunx skills add maximk777\u002Fopencode-config --skill extend",{"tool":38,"command":39},"pnpm","pnpm dlx skills add maximk777\u002Fopencode-config --skill extend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.agents\u002Fskills\u002Fextend\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7CQCJ5WYEQM6E1T0RDVKWAY","verify","Use when a change in __SERVICE__ must be checked before review","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fworkspace-repo-kits\u002Fkit-1.1.0\u002Ffiles\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7CQCG5MCSNDNS98TGAGXP7E","work-record","Use when you finished work on a tracker task and it must be recorded in the workspace through a merge request.","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.claude\u002Fskills\u002Fwork-record\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7CQCDGQBT2GXCKQAC1B5R0R","task-new","Use to create one story in a stream from the stream profile's story template, link it from its scope screens and open a merge request.","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.claude\u002Fskills\u002Ftask-new\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7CQC93WN986EY48RFPZHZM7","task-decompose","Use to split a stream at the decomposition stage into stories - list scope screens without a story, create the accepted stories and close the stage through a merge request.","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.claude\u002Fskills\u002Ftask-decompose\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7CQC5FZQWPTBK0J0FHWS513","task-context","Use to gather the context of a story key or a tracker id - its story, stream stage, scope screens, repositories, decisions, mockups and work records.","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.claude\u002Fskills\u002Ftask-context\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7CQC1Q2YECCM2N9TPJAAJQA","repos-sync","Use to update clones of your repositories under repos\u002F and see their branch, lag and uncommitted changes.","https:\u002F\u002Fgithub.com\u002Fmaximk777\u002Fopencode-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fnormalize-team\u002F.claude\u002Fskills\u002Frepos-sync\u002FSKILL.md",[],[]]