[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y9ACT850Q7098CA40JEWB":3,"skill-same:01M72Y9ACT850Q7098CA40JEWB":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M72Y9ACT850Q7098CA40JEWB","legacy-tests",null,"Use when running Step 3.2 of legacy refactoring protocol — generates contract\u002Fcharacterization\u002Farchitecture tests for the new module before any cutover. Triggers on '\u002Flegacy-tests \u003Cmodule>' or when user asks to 'згенерувати тести для legacy', 'characterization tests', 'fix point of reference'.","genkovich\u002Fagentic-engineering-course-public","genkovich","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14920737?v=4","01M72Y5BWEEZ8VT4DFW6AGGE8X","Kirill Sulimovsky","01M72Y5BXYRGV5PKCVCHEX81WY",15,"MIT","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F4-prompting-mastery\u002F4.9-legacy-refactor\u002F.claude\u002Fskills\u002Flegacy-tests\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: legacy-tests\ndescription: Use when running Step 3.2 of legacy refactoring protocol — generates contract\u002Fcharacterization\u002Farchitecture tests for the new module before any cutover. Triggers on '\u002Flegacy-tests \u003Cmodule>' or when user asks to 'згенерувати тести для legacy', 'characterization tests', 'fix point of reference'.\nargument-hint: \u003Cmodule-name>\nallowed-tools: Read, Write, Edit, Bash, Glob\ndisable-model-invocation: false\n---\n\n# legacy-tests — Step 3.2 фіксація поведінки тестами\n\nГенерує три обовʼязкові типи тестів у `tests\u002F\u003Cmodule>\u002F` + два опційні. Усі мають бути зелені на legacy-реалізації перед finalize-плану.\n\n## Аргументи\n\n- `\u003Cmodule-name>` — імʼя нового модуля.\n\n## Inputs\n\n- `LEGACY\u002F\u003Cmodule>.md` (Step 2)\n- `PLAN.md` skeleton (Step 3.1) — для public interface\n\n## Three obligatory test types\n\n### 1. Contract tests — `tests\u002F\u003Cmodule>\u002Fcontract\u002F`\n\nПеревіряють що public interface поводить себе як описано у `apps\u002Fapi\u002Fopenapi.yaml` (відповіді, статус-коди, формат). Не перевіряють внутрішню логіку.\n\n### 2. Characterization tests — `tests\u002F\u003Cmodule>\u002Fcharacterization\u002F`\n\nПараметризовані тести з 15-20 кейсами вхід→вихід (кейси беруться з `LEGACY\u002F\u003Cmodule>.md` секція 4 + доповнюються через subagent).\n\n### 3. Architecture tests — `tests\u002F\u003Cmodule>\u002Farchitecture\u002F`\n\nПеревіряють що нова архітектура `domain → app → infra → ports` дотримана. Через `import-linter` або `pytest`-кастомні правила:\n\n```python\n# tests\u002Faccount\u002Farchitecture\u002Ftest_layers.py\nimport pytest\nimport importlib\nimport inspect\n\ndef test_domain_does_not_import_infra():\n    domain = importlib.import_module(\"internal.account.domain\")\n    src = inspect.getsource(domain)\n    assert \"internal.account.infra\" not in src, \"domain не має знати про infra\"\n```\n\nАбо через `.importlinter` config + `lint-imports`.\n\n## Optional (nice to have)\n\n### 4. Integration tests — `tests\u002F\u003Cmodule>\u002Fintegration\u002F`\n\nЧерез `server.setup_app()`: повний флоу через DI-точку. HTTP-шару в демо немає; у проєкті з веб-фреймворком тут був би його тестовий клієнт.\n\n### 5. Unit tests — `tests\u002F\u003Cmodule>\u002Funit\u002F`\n\nТочкові тести на domain validators (для edge cases hypothesis-based).\n\n## Subagent для генерації characterization-кейсів\n\n```\nRead LEGACY\u002F\u003Cmodule>.md + public interface з PLAN.md skeleton.\nПоверни 15-20 пар вхід→вихід у форматі:\n\n@pytest.mark.parametrize(\"input1,input2,expected\", [\n  (\"...\", \"...\", \"...\"),\n  ...\n])\n\nВключи:\n- Усі приклади з LEGACY секція 4\n- Edge cases: empty, very long, unicode, duplicates\n- Error cases: invalid format, taken value, expired token\n- Race condition cases (rate limit, concurrent register)\n\nБез імплементації тесту, тільки список кейсів і необхідні моки.\n```\n\n## Acceptance criteria\n\n- `tests\u002F\u003Cmodule>\u002F{contract,characterization,architecture}\u002F` створені\n- Кожна папка має ≥1 `test_*.py` файл\n- characterization має 15-20 кейсів через `parametrize`\n- architecture перевіряє хоча б 1 layer constraint\n- `pytest tests\u002F\u003Cmodule>` зелений\n- Тести **не використовують** мовчазних мокіів — кожен мок або підтверджує виклик через `mock.assert_called_with(...)`, або не використовується\n\n## Verification: smell-test через \"deliberate breakage\"\n\nПеред тим як finalize-плану — тимчасово зламай legacy реалізацію:\n\n```bash\n# у internal\u002Fusers\u002Fregistration.py замінити return на None\nsed -i.bak 's\u002Freturn {\"status\"\u002Freturn None  # broken\u002F' internal\u002Fusers\u002Fregistration.py\npytest tests\u002Faccount\u002F  # має почервоніти\nmv internal\u002Fusers\u002Fregistration.py.bak internal\u002Fusers\u002Fregistration.py\npytest tests\u002Faccount\u002F  # знов зелено\n```\n\nЯкщо breakage не червонить тест — це привид. Виправ, потім finalize.\n\n## Examples\n\n```\n\u002Flegacy-tests account\npytest tests\u002Faccount\u002F  # has to be green\n\u002Flegacy-plan account --phase=finalize\n```\n\n## Anti-patterns\n\n- **Не дозволь subagent повертати тест із `assert True`** — це привид. Skill валідовує: `grep \"assert True\" tests\u002F\u003Cmodule>` має дати 0 матчів.\n- **Не мокай так, щоби мок повертав None** — це призводить до silent pass. Кожен мок має або реальний return value, або `assert_called_with`.\n- **Не лий усі тести в один файл** — три типи тестів живуть у трьох папках, інакше характеристичні і архітектурні мішаються і ламається структура звіту.\n","# legacy-tests — Step 3.2 фіксація поведінки тестами\n\nГенерує три обовʼязкові типи тестів у `tests\u002F\u003Cmodule>\u002F` + два опційні. Усі мають бути зелені на legacy-реалізації перед finalize-плану.\n\n## Аргументи\n\n- `\u003Cmodule-name>` — імʼя нового модуля.\n\n## Inputs\n\n- `LEGACY\u002F\u003Cmodule>.md` (Step 2)\n- `PLAN.md` skeleton (Step 3.1) — для public interface\n\n## Three obligatory test types\n\n### 1. Contract tests — `tests\u002F\u003Cmodule>\u002Fcontract\u002F`\n\nПеревіряють що public interface поводить себе як описано у `apps\u002Fapi\u002Fopenapi.yaml` (відповіді, статус-коди, формат). Не перевіряють внутрішню логіку.\n\n### 2. Characterization tests — `tests\u002F\u003Cmodule>\u002Fcharacterization\u002F`\n\nПараметризовані тести з 15-20 кейсами вхід→вихід (кейси беруться з `LEGACY\u002F\u003Cmodule>.md` секція 4 + доповнюються через subagent).\n\n### 3. Architecture tests — `tests\u002F\u003Cmodule>\u002Farchitecture\u002F`\n\nПеревіряють що нова архітектура `domain → app → infra → ports` дотримана. Через `import-linter` або `pytest`-кастомні правила:\n\n```python\n# tests\u002Faccount\u002Farchitecture\u002Ftest_layers.py\nimport pytest\nimport importlib\nimport inspect\n\ndef test_domain_does_not_import_infra():\n    domain = importlib.import_module(\"internal.account.domain\")\n    src = inspect.getsource(domain)\n    assert \"internal.account.infra\" not in src, \"domain не має знати про infra\"\n```\n\nАбо через `.importlinter` config + `lint-imports`.\n\n## Optional (nice to have)\n\n### 4. Integration tests — `tests\u002F\u003Cmodule>\u002Fintegration\u002F`\n\nЧерез `server.setup_app()`: повний флоу через DI-точку. HTTP-шару в демо немає; у проєкті з веб-фреймворком тут був би його тестовий клієнт.\n\n### 5. Unit tests — `tests\u002F\u003Cmodule>\u002Funit\u002F`\n\nТочкові тести на domain validators (для edge cases hypothesis-based).\n\n## Subagent для генерації characterization-кейсів\n\n```\nRead LEGACY\u002F\u003Cmodule>.md + public interface з PLAN.md skeleton.\nПоверни 15-20 пар вхід→вихід у форматі:\n\n@pytest.mark.parametrize(\"input1,input2,expected\", [\n  (\"...\", \"...\", \"...\"),\n  ...\n])\n\nВключи:\n- Усі приклади з LEGACY секція 4\n- Edge cases: empty, very long, unicode, duplicates\n- Error cases: invalid format, taken value, expired token\n- Race condition cases (rate limit, concurrent register)\n\nБез імплементації тесту, тільки список кейсів і необхідні моки.\n```\n\n## Acceptance criteria\n\n- `tests\u002F\u003Cmodule>\u002F{contract,characterization,architecture}\u002F` створені\n- Кожна папка має ≥1 `test_*.py` файл\n- characterization має 15-20 кейсів через `parametrize`\n- architecture перевіряє хоча б 1 layer constraint\n- `pytest tests\u002F\u003Cmodule>` зелений\n- Тести **не використовують** мовчазних мокіів — кожен мок або підтверджує виклик через `mock.assert_called_with(...)`, або не використовується\n\n## Verification: smell-test через \"deliberate breakage\"\n\nПеред тим як finalize-плану — тимчасово зламай legacy реалізацію:\n\n```bash\n# у internal\u002Fusers\u002Fregistration.py замінити return на None\nsed -i.bak 's\u002Freturn {\"status\"\u002Freturn None  # broken\u002F' internal\u002Fusers\u002Fregistration.py\npytest tests\u002Faccount\u002F  # має почервоніти\nmv internal\u002Fusers\u002Fregistration.py.bak internal\u002Fusers\u002Fregistration.py\npytest tests\u002Faccount\u002F  # знов зелено\n```\n\nЯкщо breakage не червонить тест — це привид. Виправ, потім finalize.\n\n## Examples\n\n```\n\u002Flegacy-tests account\npytest tests\u002Faccount\u002F  # has to be green\n\u002Flegacy-plan account --phase=finalize\n```\n\n## Anti-patterns\n\n- **Не дозволь subagent повертати тест із `assert True`** — це привид. Skill валідовує: `grep \"assert True\" tests\u002F\u003Cmodule>` має дати 0 матчів.\n- **Не мокай так, щоби мок повертав None** — це призводить до silent pass. Кожен мок має або реальний return value, або `assert_called_with`.\n- **Не лий усі тести в один файл** — три типи тестів живуть у трьох папках, інакше характеристичні і архітектурні мішаються і ламається структура звіту.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"disable-model-invocation":20},"Read, Write, Edit, Bash, Glob","\u003Cmodule-name>","main","2dc9bdfa5d508a04d414fb0991617e6722ec635a","modules\u002F4-prompting-mastery\u002F4.9-legacy-refactor\u002F.claude\u002Fskills\u002Flegacy-tests",13,"https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public","https:\u002F\u002Ft.me\u002Fgenkovich","https:\u002F\u002Fgithub.com\u002Fgenkovich","https:\u002F\u002Ft.me\u002Fbeerphp","Beer::PHP 🍺 telegram-channel author \r\n","2026-11-12 03:03:13",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add genkovich\u002Fagentic-engineering-course-public --skill legacy-tests",{"tool":42,"command":43},"bunx","bunx skills add genkovich\u002Fagentic-engineering-course-public --skill legacy-tests",{"tool":45,"command":46},"pnpm","pnpm dlx skills add genkovich\u002Fagentic-engineering-course-public --skill legacy-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F4-prompting-mastery\u002F4.9-legacy-refactor\u002F.claude\u002Fskills\u002Flegacy-tests\u002FSKILL.md",true,[],[51,59,66,73,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":58},"01M72YGBW5JKECT8WSRHK1YBCJ","release","Run the whole local release pipeline in order, stopping at each human gate. Triggers on \"run the release\", \"prepare a release\", \"\u002Frelease\", \"зроби реліз\", \"підготуй реліз\". Drives the four stages back to back — bump-version → curate-changelog → release-notes → check-docs-drift — pausing after each so the human reviews the diff before the next stage. Prepares everything in the working tree; never tags, commits, or pushes. The tag push (which fires CI) stays the human's action.","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F9-collaboration\u002F9.7-release-docs\u002F.claude\u002Fskills\u002Frelease\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":58},"01M72YG87VQ89PRCYQSMNAP5RW","release-notes","Draft partner-facing release notes from the same commits as the changelog. Triggers on \"draft release notes\", \"release notes for the next version\", \"\u002Frelease-notes\", \"нотатки релізу\", \"release notes партнеру\". Same input as curate-changelog, different audience and tone: a short, benefit-first narrative for a user or partner — \"what's new for you\" — not a categorized engineer's list. Keeps only changes a user actually notices; drops internal refactors and tooling. Prints the notes to the chat to seed a GitHub Release description or a partner announcement. Writes no file.","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F9-collaboration\u002F9.7-release-docs\u002F.claude\u002Fskills\u002Frelease-notes\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":58},"01M72YG4BXJH9R6QQZD3G8E358","curate-changelog","Curate the [Unreleased] section of docs\u002FCHANGELOG.md from git history. Triggers on \"curate the changelog\", \"update the changelog\", \"\u002Fcurate-changelog\", \"онови changelog\", \"курування журналу\". Reads git log since the last tag, FILTERS out what a reader never feels (test\u002Fci\u002Fchore\u002Fmerge), GROUPS commits about one feature into one bullet, and REWRITES technical subjects into plain language under the six Keep a Changelog categories (Added\u002FChanged\u002FDeprecated\u002F Removed\u002FFixed\u002FSecurity). The result must have FEWER lines than the raw log — that is the proof of curation, not a dump. Leaves the edit in the working tree; never commits or pushes.","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F9-collaboration\u002F9.7-release-docs\u002F.claude\u002Fskills\u002Fcurate-changelog\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":58},"01M72YFZDKNXQ7WF9ARC5KQ4F5","codify-rule","Turn a repeated mistake into a durable, path-scoped rule in .claude\u002Frules\u002F. Triggers on \"codify this rule\", \"make a rule so this doesn't happen again\", \"\u002Fcodify-rule\", \"закодифікуй правило\", \"петля помилка-правило\". Use only when the same mistake showed up TWICE (twice = a pattern, once = noise). Names the wrong shape and the right shape with one short example of each, scopes the rule to the paths that matter, and leaves the edit in the working tree so the next agent on this repo inherits the fix. Edits only .claude\u002Frules\u002F; never commits or pushes.","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F9-collaboration\u002F9.7-release-docs\u002F.claude\u002Fskills\u002Fcodify-rule\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":58},"01M72YFVKC19NCQDD30R1C282Q","check-docs-drift","Find and fix where docs\u002Fapi.md fell behind the code. Triggers on \"check for doc drift\", \"is the API doc up to date\", \"\u002Fcheck-docs-drift\", \"перевір дрейф документації\", \"docs drift\". Runs the deterministic scripts\u002Fcheck-docs-drift.py (parses the public NoteBook methods with ast, compares to what docs\u002Fapi.md documents — NO LLM finds the gap), reports the drift, and PROPOSES the doc edit that closes it. The gap is found by parsing; the agent writes the missing documentation in the doc's existing style. Edits only docs\u002F; never commits or pushes.","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F9-collaboration\u002F9.7-release-docs\u002F.claude\u002Fskills\u002Fcheck-docs-drift\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":58},"01M72YFQSJ21QX4SQADQ1SQDZR","bump-version","Decide and apply the next semver for a release. Triggers on \"bump the version\", \"what version is next\", \"\u002Fbump-version\", \"простав версію\", \"яка наступна версія\". Reads the next number from the deterministic scripts\u002Fnext-version.sh (NEVER guesses it), explains in plain language WHICH part moved and why (e.g. \"MINOR, because a feat landed: filter notes by tag\"), edits the version line in pyproject.toml, and proposes the matching `git tag vX.Y.Z`. The number is decided by a rule; the agent explains and applies — the human confirms the tag. Never pushes a tag itself.","https:\u002F\u002Fgithub.com\u002Fgenkovich\u002Fagentic-engineering-course-public\u002Fblob\u002Fmain\u002Fmodules\u002F9-collaboration\u002F9.7-release-docs\u002F.claude\u002Fskills\u002Fbump-version\u002FSKILL.md",[],[]]