[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DDD4G2KKPVXT37YTHTGY15":3,"skill-same:01M7DDD4G2KKPVXT37YTHTGY15":48},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7DDD4G2KKPVXT37YTHTGY15","pluginrsi-extend",null,"Build new research on top of PluginRSI - write new plugins or seed harnesses, add a benchmark, or change the optimization algorithm (new search stage, selection rule, proposer instructions). Use when the user wants to implement, modify or ablate a harness-optimization method in this repository.","syr-cn\u002FPluginRSI","syr-cn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83259989?v=4","01M7DDD25B45WWGEF1YZMG6G2H","shiyaorui","01M7DDD26D6C6B5ZPFJ1V4VCQ8",61,"MIT","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpluginrsi-extend\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pluginrsi-extend\ndescription: Build new research on top of PluginRSI - write new plugins or seed harnesses, add a benchmark, or change the optimization algorithm (new search stage, selection rule, proposer instructions). Use when the user wants to implement, modify or ablate a harness-optimization method in this repository.\n---\n\n# Extend PluginRSI\n\n## Mental model (paper §3, Algorithm 1)\n\nA harness `H(W, P)` is a workflow `W` (`seeds\u002Fagents\u002F\u003Ctask>\u002Fv0001\u002Fworkflow.py`) plus a set of\nplugins `P`, chosen in `harness.yaml` from a plugin library `L`. Each iteration runs the\nstages listed in `PHASES` (`src\u002Fpluginrsi\u002Fsearch\u002Floop.py`):\n\n1. `plugin_mutation` (`search\u002Fmutation.py`): `N = offspring_per_phase` branches. Each branch\n   samples a balanced minibatch of `b = feedback_batch_size` held-in tasks, and a proposer\n   rewrites **one** plugin while the workflow and all other plugins stay frozen. If the\n   paired gain over the incumbent is strictly positive, the variant is published to `L`.\n2. `harness_recomposition` (`Search.harness_recomposition`): a proposer picks plugins from\n   the updated `L` and rewrites the workflow. The candidate is evaluated on the full held-in\n   set and replaces the incumbent only if its score is strictly higher.\n\n## Where things live\n\n| Concern | File |\n| --- | --- |\n| Plugin interfaces (`Role`, `Tool`, `Skill`, `Memory`) and `Task` \u002F `SolveResult` | `src\u002Fpluginrsi\u002Fcontracts.py` |\n| Runtime contract shown to proposers | `src\u002Fpluginrsi\u002Fprompts\u002Finterfaces.md` |\n| Plugin and harness manifests, run config (`SearchOptions`, `EvaluationConfig`) | `src\u002Fpluginrsi\u002Fschemas.py` |\n| Loading and validating harnesses | `src\u002Fpluginrsi\u002Floader.py` |\n| Optimization loop, evaluation budget, proposals, held-out report | `src\u002Fpluginrsi\u002Fsearch\u002Floop.py` |\n| Plugin mutation stage | `src\u002Fpluginrsi\u002Fsearch\u002Fmutation.py` |\n| Stage instructions given to the proposer | `src\u002Fpluginrsi\u002Fprompts\u002F\u003Cstage>.md`, `fitness_contract.md` |\n| Proposer agent (tools, workspace, evidence) | `search\u002Fapi_proposer.py`, `text_proposer.py`, `structured_proposer.py`, `json_proposer.py` |\n| Proposal validation rules per stage | `search\u002Fproposer.py::validate_proposal` |\n| Benchmark workers | `src\u002Fpluginrsi\u002Fevaluation\u002Fworker.py`, `evaluation\u002Fbenchmarks\u002F*.py` |\n| Evaluation scheduling, retries, quality threshold | `src\u002Fpluginrsi\u002Fevaluation\u002Frunner.py` |\n\n## Recipes\n\n### New plugin\n1. Create `seeds\u002Fplugin_library\u002F\u003Ckind>\u002F\u003Cname>\u002Fv0001\u002F` containing `__init__.py`, `plugin.yaml`\n   and `implementation.py`. Copy an existing plugin of the same kind as a template (for\n   example `skill\u002Fdebugging\u002Fv0001`).\n2. Fill `plugin.yaml`: `schema_version: 1`, `kind`, `name`, `version`,\n   `entrypoint: implementation:\u003CClass>`, `description`, `config_schema`, and `provenance`\n   (`label`, `sources`, `upstream_assets`, `adaptation`).\n3. Subclass the matching base class in `contracts.py`. Use relative imports only, never\n   import another plugin, and avoid `hashlib` (proposal validation rejects it). Files the\n   plugin reads go next to it and are accessed via `self.services.resource_dir`.\n4. Add the plugin to a harness under an alias in `harness.yaml`, then run\n   `pluginrsi validate --harness \u003Charness_dir> --library seeds\u002Fplugin_library`.\n\n### New seed harness or task\nCopy `seeds\u002Fagents\u002F\u003Ctask>\u002Fv0001\u002F`. The workflow class needs\n`async run(task, runtime, plugins) -> SolveResult`; it decides when each plugin alias is\ncalled. Point `seed:` in the config at the new directory.\n\n### New benchmark\n1. Add the name to `EvaluationConfig.benchmark` in `schemas.py`.\n2. Implement `async evaluate_\u003Cname>(request) -> dict` in `evaluation\u002Fbenchmarks\u002F\u003Cname>.py`.\n   It must run `loader.execute(...)` on the candidate, write the trajectory to\n   `work_dir\u002Ftrajectory.jsonl`, and return `{\"score\": float, \"status\": ...}`. `status` is\n   one of `completed`, `solver_limit`, `infra_error` or `candidate_error`. `infra_error`\n   tasks are excluded from accuracy and retried; any `candidate_error` invalidates the\n   whole evaluation.\n3. Dispatch to it in `evaluation\u002Fworker.py`. Add any data preparation under `scripts\u002F`,\n   ship the split ID files under `datasets\u002F\u003Cname>\u002F`, and add a config in `configs\u002F`.\n4. `qa_transfer.py` is the simplest complete example; Harbor-based tasks use `terminal_bench.py`.\n\n### Change the algorithm\n- **New stage:** append its name to `PHASES`, register a coroutine for it in\n  `Search.phase()`, add `prompts\u002F\u003Cstage>.md`, and teach `validate_proposal` and\n  `api_proposer.py` which files that stage may write. The stage count is derived from\n  `PHASES` everywhere else.\n- **Selection or retention rule:** mutation retention is `mutation.paired`; incumbent\n  replacement is `Search.admit` plus `selection.top_w`.\n- **Minibatch sampling and branch setup:** `mutation.balanced_batch` and `create_branches`.\n- **Proposer behaviour:** edit the markdown files in `prompts\u002F`. Keep `fitness_contract.md`\n  truthful about how candidates are actually scored.\n- Expose new hyperparameters as fields on `SearchOptions` and annotate them with the\n  paper symbol they correspond to.\n\n## Invariants (do not break)\n\n- Held-out tasks never influence selection. They are evaluated for reporting only.\n- Published library plugins are immutable. Mutated plugins get the controller-assigned\n  version `v_\u003Ccandidate_id>`.\n- Every evaluation goes through `Search.checked_evaluate`, which reserves the held-out\n  budget against `max_task_rollouts`.\n- The search must be resumable. Allocate IDs before any async work, persist records with\n  `write_json` after each state change, and make every stage idempotent when re-entered.\n- Rank candidates only after their evaluation wave finishes, so that completion order\n  cannot decide ties.\n\n## Testing without APIs or Docker\n\nTests run fully offline. `tests\u002Ftest_full_search.py` provides `config_at` (benchmark\n`fixture`), a deterministic `Evaluator` and a file-writing `Proposer`. Reuse them for new\nsearch logic and assert on `runs\u002F...\u002Fiterations\u002Fiter_*\u002F\u003Cstage>.json`. Run\n`python3 -m pytest -q` before finishing. QA tests additionally need\n`scripts\u002Fprepare_hf_data.py qa_transfer` to have been run.\n","# Extend PluginRSI\n\n## Mental model (paper §3, Algorithm 1)\n\nA harness `H(W, P)` is a workflow `W` (`seeds\u002Fagents\u002F\u003Ctask>\u002Fv0001\u002Fworkflow.py`) plus a set of\nplugins `P`, chosen in `harness.yaml` from a plugin library `L`. Each iteration runs the\nstages listed in `PHASES` (`src\u002Fpluginrsi\u002Fsearch\u002Floop.py`):\n\n1. `plugin_mutation` (`search\u002Fmutation.py`): `N = offspring_per_phase` branches. Each branch\n   samples a balanced minibatch of `b = feedback_batch_size` held-in tasks, and a proposer\n   rewrites **one** plugin while the workflow and all other plugins stay frozen. If the\n   paired gain over the incumbent is strictly positive, the variant is published to `L`.\n2. `harness_recomposition` (`Search.harness_recomposition`): a proposer picks plugins from\n   the updated `L` and rewrites the workflow. The candidate is evaluated on the full held-in\n   set and replaces the incumbent only if its score is strictly higher.\n\n## Where things live\n\n| Concern | File |\n| --- | --- |\n| Plugin interfaces (`Role`, `Tool`, `Skill`, `Memory`) and `Task` \u002F `SolveResult` | `src\u002Fpluginrsi\u002Fcontracts.py` |\n| Runtime contract shown to proposers | `src\u002Fpluginrsi\u002Fprompts\u002Finterfaces.md` |\n| Plugin and harness manifests, run config (`SearchOptions`, `EvaluationConfig`) | `src\u002Fpluginrsi\u002Fschemas.py` |\n| Loading and validating harnesses | `src\u002Fpluginrsi\u002Floader.py` |\n| Optimization loop, evaluation budget, proposals, held-out report | `src\u002Fpluginrsi\u002Fsearch\u002Floop.py` |\n| Plugin mutation stage | `src\u002Fpluginrsi\u002Fsearch\u002Fmutation.py` |\n| Stage instructions given to the proposer | `src\u002Fpluginrsi\u002Fprompts\u002F\u003Cstage>.md`, `fitness_contract.md` |\n| Proposer agent (tools, workspace, evidence) | `search\u002Fapi_proposer.py`, `text_proposer.py`, `structured_proposer.py`, `json_proposer.py` |\n| Proposal validation rules per stage | `search\u002Fproposer.py::validate_proposal` |\n| Benchmark workers | `src\u002Fpluginrsi\u002Fevaluation\u002Fworker.py`, `evaluation\u002Fbenchmarks\u002F*.py` |\n| Evaluation scheduling, retries, quality threshold | `src\u002Fpluginrsi\u002Fevaluation\u002Frunner.py` |\n\n## Recipes\n\n### New plugin\n1. Create `seeds\u002Fplugin_library\u002F\u003Ckind>\u002F\u003Cname>\u002Fv0001\u002F` containing `__init__.py`, `plugin.yaml`\n   and `implementation.py`. Copy an existing plugin of the same kind as a template (for\n   example `skill\u002Fdebugging\u002Fv0001`).\n2. Fill `plugin.yaml`: `schema_version: 1`, `kind`, `name`, `version`,\n   `entrypoint: implementation:\u003CClass>`, `description`, `config_schema`, and `provenance`\n   (`label`, `sources`, `upstream_assets`, `adaptation`).\n3. Subclass the matching base class in `contracts.py`. Use relative imports only, never\n   import another plugin, and avoid `hashlib` (proposal validation rejects it). Files the\n   plugin reads go next to it and are accessed via `self.services.resource_dir`.\n4. Add the plugin to a harness under an alias in `harness.yaml`, then run\n   `pluginrsi validate --harness \u003Charness_dir> --library seeds\u002Fplugin_library`.\n\n### New seed harness or task\nCopy `seeds\u002Fagents\u002F\u003Ctask>\u002Fv0001\u002F`. The workflow class needs\n`async run(task, runtime, plugins) -> SolveResult`; it decides when each plugin alias is\ncalled. Point `seed:` in the config at the new directory.\n\n### New benchmark\n1. Add the name to `EvaluationConfig.benchmark` in `schemas.py`.\n2. Implement `async evaluate_\u003Cname>(request) -> dict` in `evaluation\u002Fbenchmarks\u002F\u003Cname>.py`.\n   It must run `loader.execute(...)` on the candidate, write the trajectory to\n   `work_dir\u002Ftrajectory.jsonl`, and return `{\"score\": float, \"status\": ...}`. `status` is\n   one of `completed`, `solver_limit`, `infra_error` or `candidate_error`. `infra_error`\n   tasks are excluded from accuracy and retried; any `candidate_error` invalidates the\n   whole evaluation.\n3. Dispatch to it in `evaluation\u002Fworker.py`. Add any data preparation under `scripts\u002F`,\n   ship the split ID files under `datasets\u002F\u003Cname>\u002F`, and add a config in `configs\u002F`.\n4. `qa_transfer.py` is the simplest complete example; Harbor-based tasks use `terminal_bench.py`.\n\n### Change the algorithm\n- **New stage:** append its name to `PHASES`, register a coroutine for it in\n  `Search.phase()`, add `prompts\u002F\u003Cstage>.md`, and teach `validate_proposal` and\n  `api_proposer.py` which files that stage may write. The stage count is derived from\n  `PHASES` everywhere else.\n- **Selection or retention rule:** mutation retention is `mutation.paired`; incumbent\n  replacement is `Search.admit` plus `selection.top_w`.\n- **Minibatch sampling and branch setup:** `mutation.balanced_batch` and `create_branches`.\n- **Proposer behaviour:** edit the markdown files in `prompts\u002F`. Keep `fitness_contract.md`\n  truthful about how candidates are actually scored.\n- Expose new hyperparameters as fields on `SearchOptions` and annotate them with the\n  paper symbol they correspond to.\n\n## Invariants (do not break)\n\n- Held-out tasks never influence selection. They are evaluated for reporting only.\n- Published library plugins are immutable. Mutated plugins get the controller-assigned\n  version `v_\u003Ccandidate_id>`.\n- Every evaluation goes through `Search.checked_evaluate`, which reserves the held-out\n  budget against `max_task_rollouts`.\n- The search must be resumable. Allocate IDs before any async work, persist records with\n  `write_json` after each state change, and make every stage idempotent when re-entered.\n- Rank candidates only after their evaluation wave finishes, so that completion order\n  cannot decide ties.\n\n## Testing without APIs or Docker\n\nTests run fully offline. `tests\u002Ftest_full_search.py` provides `config_at` (benchmark\n`fixture`), a deterministic `Evaluator` and a file-writing `Proposer`. Reuse them for new\nsearch logic and assert on `runs\u002F...\u002Fiterations\u002Fiter_*\u002F\u003Cstage>.json`. Run\n`python3 -m pytest -q` before finishing. QA tests additionally need\n`scripts\u002Fprepare_hf_data.py qa_transfer` to have been run.\n",{"name":5,"description":7},"main","bafab39e4c62b7f0aa252f2ffd891886b45c82f8",".claude\u002Fskills\u002Fpluginrsi-extend",1,"https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI","https:\u002F\u002Fhuggingface.co\u002Fpapers\u002F2609.32423","https:\u002F\u002Fgithub.com\u002Fsyr-cn","https:\u002F\u002Fsyr-cn.github.io\u002F","Agentic RL. Researcher@Meituan&USTC","2026-10-18 13:21:28",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add syr-cn\u002FPluginRSI --skill pluginrsi-extend",{"tool":40,"command":41},"bunx","bunx skills add syr-cn\u002FPluginRSI --skill pluginrsi-extend",{"tool":43,"command":44},"pnpm","pnpm dlx skills add syr-cn\u002FPluginRSI --skill pluginrsi-extend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpluginrsi-extend\u002FSKILL.md",true,[],[49,55,60,65,72,79],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7DDKR1NV6B4NC610EPYZJ39","v0001","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002Fseeds\u002Fplugin_library_qa\u002Fskill\u002Fqa_task_analysis\u002Fv0001\u002FSKILL.md",[],[],{"skillNo":56,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7DDKN7WVFT3RKYP91H5RFCF","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002Fseeds\u002Fplugin_library_qa\u002Fskill\u002Fqa_hypothesis_testing\u002Fv0001\u002FSKILL.md",[],[],{"skillNo":61,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DDKKDSGHZ9TEP15J1TPN9F","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002Fseeds\u002Fplugin_library_qa\u002Fskill\u002Fqa_completion_check\u002Fv0001\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7DDKGADPSYPNXV5181EA63Y","trajectory-to-lesson","Extract a bounded transferable procedure or anti-pattern from a completed trajectory.","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002Fseeds\u002Fplugin_library\u002Fskill\u002Fprior_trajectory_to_lesson\u002Fv0001\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7DDKDRBHRMPHE8M659PCART","test-output-interpretation","Turn noisy command output into a localized failure signature without overclaiming.","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002Fseeds\u002Fplugin_library\u002Fskill\u002Fprior_test_output_interpretation\u002Fv0001\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7DDK9SEJJWY00WQ2B90FSHZ","symbol-localization","Rank functions, classes, methods, or configuration blocks inside selected files.","https:\u002F\u002Fgithub.com\u002Fsyr-cn\u002FPluginRSI\u002Fblob\u002Fmain\u002Fseeds\u002Fplugin_library\u002Fskill\u002Fprior_symbol_localization\u002Fv0001\u002FSKILL.md",[],[]]