[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BZC045AVPHJP16YZER4FEA":3,"skill-same:01M7BZC045AVPHJP16YZER4FEA":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7BZC045AVPHJP16YZER4FEA","ds-lessons",null,"Find mistakes agents keep repeating in this repo and turn each into structure that blocks it, preferring types over lint over tests over docs, plus an end-of-session reflection. Use after a user correction, when the same fix comes up twice, at the end of a long session, or for \u002Fds-lessons.","Mostafa-Taher-git\u002FGreeneek","Mostafa-Taher-git","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F178865212?v=4","01M7BZ9VH4JJ0HP475H6CEJCGJ","Mostafa Taher Ahmed","01M7BZ9VHSXZMWJSX2W9MSCMB2",0,"MIT","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fds-lessons\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ds-lessons\ndescription: \"Find mistakes agents keep repeating in this repo and turn each into structure that blocks it, preferring types over lint over tests over docs, plus an end-of-session reflection. Use after a user correction, when the same fix comes up twice, at the end of a long session, or for \u002Fds-lessons.\"\n---\n\n\n# ds-lessons\n\nAn instruction an agent can skip is a wish. Make repeated mistakes fail loudly instead.\n\n## Steps\n\n1. Gather mistakes. Read the current session, recent commits, reverts, review comments, agent instruction files and workaround comments. Group them into classes. A class counts once it happened twice.\n2. For each class, pick the highest level that works:\n   1. Structure: one owner per piece of state, one supported way per task, hidden internals, delete old patterns an agent would copy.\n   2. Types: make the bad state impossible to write.\n   3. Lint or CI check: the error message names the right file, type or function to use. If the bad pattern is already common, fail only on new additions.\n   4. Test: checks behavior, not internals.\n   5. Docs or agent rules: only for judgment calls that cannot be checked. Add a short example of the failure.\n3. Fix the most frequent classes now, one commit each.\n4. Prove each new check. Re-introduce a real past mistake, run the check, and show it fails. Then remove it and show it passes.\n5. Keep a table in the agent instruction file: rule, and what enforces it. If a rule already existed but nothing enforced it, treat it as a repeat and enforce it now.\n6. End-of-session reflection: list what went wrong, what took extra loops and what the user corrected. Route each item to a check, a skill edit or a rule. Drop one-off issues.\n\n## Stop when\n\n- Each chosen class has an enforcement that you showed failing on a real mistake.\n- Or you have handled the top three classes this session. Note the rest.\n\n## Rules\n\n- If the fix is structural, do not also add prose. The prose was the symptom.\n- Report each class with evidence, the level chosen, and why a higher level did not work.\n\n## Greeneek working contract\n\nThis skill is installed in the Greeneek repository. Where a step below conflicts with these rules, these rules win.\n\n- Restate the goal in one line, read the real files before editing, and work on `main` in small vertical slices. Preserve uncommitted and concurrent work; never reset, force-push, or overwrite another session's changes.\n- Evidence before \"done\": run the real check and record the exact command and its output. Never weaken a test, add a blind retry, raise a timeout without a diagnosed cause, or delete a failing assertion to get green.\n- Agent waves never commit, push, tag, or publish. No npm auto-publish on `main`; release tags are immutable and Item 8 stays last.\n- Live model lanes stay BLOCKED without `GREENEEK_API_KEY`; mocked coverage is never reported as real-CLI verification.\n- Registrations are effects, ESM everywhere, and misconfiguration fails at the earliest resolvable point.\n- Source of truth: `.agents\u002Fnotes\u002Fproposed\u002Fprocess\u002F2026-11-01-v0.3.9-master-release-plan.md`. Append evidence to its Execution ledger and keep its Resume State current in the same commit as the change.\n\n## Greeneek-specific override\n\nPrefer an executed top-level gate in `scripts\u002Frun-gates.ts` over prose; this repo's rule is to wire mechanically checkable invariants into a gate and prove each changed acceptance path rejects an invalid case. Add the regression spec beside the generator or checker it pins.\n","# ds-lessons\n\nAn instruction an agent can skip is a wish. Make repeated mistakes fail loudly instead.\n\n## Steps\n\n1. Gather mistakes. Read the current session, recent commits, reverts, review comments, agent instruction files and workaround comments. Group them into classes. A class counts once it happened twice.\n2. For each class, pick the highest level that works:\n   1. Structure: one owner per piece of state, one supported way per task, hidden internals, delete old patterns an agent would copy.\n   2. Types: make the bad state impossible to write.\n   3. Lint or CI check: the error message names the right file, type or function to use. If the bad pattern is already common, fail only on new additions.\n   4. Test: checks behavior, not internals.\n   5. Docs or agent rules: only for judgment calls that cannot be checked. Add a short example of the failure.\n3. Fix the most frequent classes now, one commit each.\n4. Prove each new check. Re-introduce a real past mistake, run the check, and show it fails. Then remove it and show it passes.\n5. Keep a table in the agent instruction file: rule, and what enforces it. If a rule already existed but nothing enforced it, treat it as a repeat and enforce it now.\n6. End-of-session reflection: list what went wrong, what took extra loops and what the user corrected. Route each item to a check, a skill edit or a rule. Drop one-off issues.\n\n## Stop when\n\n- Each chosen class has an enforcement that you showed failing on a real mistake.\n- Or you have handled the top three classes this session. Note the rest.\n\n## Rules\n\n- If the fix is structural, do not also add prose. The prose was the symptom.\n- Report each class with evidence, the level chosen, and why a higher level did not work.\n\n## Greeneek working contract\n\nThis skill is installed in the Greeneek repository. Where a step below conflicts with these rules, these rules win.\n\n- Restate the goal in one line, read the real files before editing, and work on `main` in small vertical slices. Preserve uncommitted and concurrent work; never reset, force-push, or overwrite another session's changes.\n- Evidence before \"done\": run the real check and record the exact command and its output. Never weaken a test, add a blind retry, raise a timeout without a diagnosed cause, or delete a failing assertion to get green.\n- Agent waves never commit, push, tag, or publish. No npm auto-publish on `main`; release tags are immutable and Item 8 stays last.\n- Live model lanes stay BLOCKED without `GREENEEK_API_KEY`; mocked coverage is never reported as real-CLI verification.\n- Registrations are effects, ESM everywhere, and misconfiguration fails at the earliest resolvable point.\n- Source of truth: `.agents\u002Fnotes\u002Fproposed\u002Fprocess\u002F2026-11-01-v0.3.9-master-release-plan.md`. Append evidence to its Execution ledger and keep its Resume State current in the same commit as the change.\n\n## Greeneek-specific override\n\nPrefer an executed top-level gate in `scripts\u002Frun-gates.ts` over prose; this repo's rule is to wire mechanically checkable invariants into a gate and prove each changed acceptance path rejects an invalid case. Add the regression spec beside the generator or checker it pins.\n",{"name":5,"description":7},"main","183a0e26a183c692b6f1fc3d97039183e80c4796",".agents\u002Fskills\u002Fds-lessons","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek","https:\u002F\u002Fgreeneek.vercel.app\u002F","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git","www.mostafa-taher.duckdns.org","2026-11-15 04:10:26",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Mostafa-Taher-git\u002FGreeneek --skill ds-lessons",{"tool":38,"command":39},"bunx","bunx skills add Mostafa-Taher-git\u002FGreeneek --skill ds-lessons",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Mostafa-Taher-git\u002FGreeneek --skill ds-lessons","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fds-lessons\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7BZFPXJY0FHK7MWC9TFFJ6X","user-only-skill","Prove model-disabled skills stay outside the model catalog.","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002Fsnapshots\u002Fsession\u002Fskill-load\u002Fworkspace\u002F.gnk\u002Fskills\u002Fuser-only-skill\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7BZFM9WBCZKC1QHKJNXCGE2","snapshot-skill","Exercise project skill discovery and loading in snapshot tests.","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002Fsnapshots\u002Fsession\u002Fskill-load\u002Fworkspace\u002F.gnk\u002Fskills\u002Fsnapshot-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7BZFK35HJX56MKCBR55BW5A","model-only-skill","Prove user-disabled skills remain available to the model.","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002Fsnapshots\u002Fsession\u002Fskill-load\u002Fworkspace\u002F.gnk\u002Fskills\u002Fmodel-only-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7BZFFRD3339VT24M97Q52ZE","editing-cordis-compositions","Use when creating, changing, or validating a Cordis composition for this harness — writing or editing an agent preset, adding or removing a plugin row, deciding whether something belongs to the host composition or to one session, checking whether a preset you authored actually mounts, or diagnosing a row that mounted but contributed nothing.","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002Fpackages\u002Fpreset\u002Fagent-presets\u002Fpresets\u002Fcordis\u002Fskills\u002Fediting-cordis-compositions\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7BZFAQMT5FNWTPZ9X8JB1RW","cordis-plugin-development","Create, modify, debug, or extend dynamic Cordis Plugins, including Host Services and Events, Client Slot and theme UI, Package-private Client-to-Host calls, dynamic Tools, version updates, approval failures, and runtime diagnostics. Use this Skill to route a user request to the correct platform and Inspect Provider, then define, run, repair, or roll back the Plugin.","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002Fpackages\u002Fpreset\u002Fagent-presets\u002Fpresets\u002Fcordis\u002Fskills\u002Fcordis-plugin-development\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7BZF8Q58ZZ1T0Y08SVHK9XM","preview-tour","Inspect the bundled Preview workspace and its deterministic Session examples.","https:\u002F\u002Fgithub.com\u002FMostafa-Taher-git\u002FGreeneek\u002Fblob\u002Fmain\u002Fpackages\u002Fexperimental\u002Fwebworker-runtime\u002Ftests\u002Ffixtures\u002Fvfs-example\u002Fworkspace\u002F.agents\u002Fskills\u002Fpreview-tour\u002FSKILL.md",[],[]]