[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECG4FAB0MF4WEM8VDMYPJN":3,"skill-same:01M7ECG4FAB0MF4WEM8VDMYPJN":66},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7ECG4FAB0MF4WEM8VDMYPJN","wrappers-recording",null,"Apply, inspect, author, and troubleshoot Gymnasium single-environment wrappers, recording helpers, and rendering helpers.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: wrappers-recording\ndescription: \"Apply, inspect, author, and troubleshoot Gymnasium\n  single-environment wrappers, recording helpers, and rendering helpers.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Gymnasium Wrappers and Recording\n\nUse this sub-skill when a task needs single-environment Gymnasium wrappers: applying wrapper chains, inspecting wrapped environments, writing custom wrappers, recording episode statistics or videos, and diagnosing wrapper or render-mode failures.\n\n## Start Here\n\n1. Build the base environment with `gymnasium.make(...)`; most made environments already include `TimeLimit\u003COrderEnforcing\u003CPassiveEnvChecker\u003C...>>>` unless the spec\u002Foptions disable parts of that stack.\n2. Add wrappers outside-in: `env = Wrapper(env, ...)`; the last wrapper assigned is the first object the agent interacts with.\n3. Inspect `env` for the full chain, `env.env` for the next inner layer, and `env.unwrapped` for the original base environment.\n4. After any wrapper that changes observations or actions, verify `env.observation_space`, `env.action_space`, `reset()`, and one `step()` agree.\n5. Use `RecordEpisodeStatistics` for lightweight metrics; add `RecordVideo` only when the environment was created with image-returning rendering such as `render_mode=\"rgb_array\"` and `moviepy` is installed.\n\n## Route by Task\n\n| Task | Read |\n| --- | --- |\n| Choose or order built-in wrappers | [references\u002Fwrapper-catalog.md](references\u002Fwrapper-catalog.md) |\n| Record episode returns, lengths, videos, or render frames | [references\u002Frecording-and-rendering.md](references\u002Frecording-and-rendering.md) |\n| Write `Wrapper`, `ObservationWrapper`, `ActionWrapper`, or `RewardWrapper` subclasses | [references\u002Fcustom-wrappers.md](references\u002Fcustom-wrappers.md) |\n| Diagnose wrapper order, changed spaces, render\u002Fvideo, image wrapper, Atari, or array conversion errors | [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) |\n| Prove a local wrapper chain works | [`scripts\u002Fwrapper_smoke.py`](scripts\u002Fwrapper_smoke.py) |\n\n## Common Patterns\n\n```python\nimport gymnasium as gym\nfrom gymnasium.wrappers import FlattenObservation, RecordEpisodeStatistics, TimeLimit\n\nenv = gym.make(\"CartPole-v1\")\nenv = TimeLimit(env, max_episode_steps=200)\nenv = FlattenObservation(env)\nenv = RecordEpisodeStatistics(env)\nobs, info = env.reset(seed=123)\nobs, reward, terminated, truncated, info = env.step(env.action_space.sample())\n```\n\n```python\nimport gymnasium as gym\nfrom gymnasium.wrappers import RecordVideo\n\nenv = gym.make(\"CartPole-v1\", render_mode=\"rgb_array\")\nenv = RecordVideo(env, video_folder=\"videos\", episode_trigger=lambda episode: True)\n```\n\n## Boundaries\n\n- For vector environments and `gymnasium.wrappers.vector`, use `..\u002Fvectorization\u002FSKILL.md`.\n- For detailed `Space` constructor, flattening, dtype, and `contains` guidance, use `..\u002Fspaces-data\u002FSKILL.md`.\n- For environment registration, `check_env`, and custom `Env` lifecycle, use `..\u002Fenvironment-api\u002FSKILL.md`.\n- For built-in environment family extras such as Box2D, MuJoCo, Atari\u002FALE IDs, or Toy Text action masks, use `..\u002Fbuiltin-envs\u002FSKILL.md`.\n","# Gymnasium Wrappers and Recording\n\nUse this sub-skill when a task needs single-environment Gymnasium wrappers: applying wrapper chains, inspecting wrapped environments, writing custom wrappers, recording episode statistics or videos, and diagnosing wrapper or render-mode failures.\n\n## Start Here\n\n1. Build the base environment with `gymnasium.make(...)`; most made environments already include `TimeLimit\u003COrderEnforcing\u003CPassiveEnvChecker\u003C...>>>` unless the spec\u002Foptions disable parts of that stack.\n2. Add wrappers outside-in: `env = Wrapper(env, ...)`; the last wrapper assigned is the first object the agent interacts with.\n3. Inspect `env` for the full chain, `env.env` for the next inner layer, and `env.unwrapped` for the original base environment.\n4. After any wrapper that changes observations or actions, verify `env.observation_space`, `env.action_space`, `reset()`, and one `step()` agree.\n5. Use `RecordEpisodeStatistics` for lightweight metrics; add `RecordVideo` only when the environment was created with image-returning rendering such as `render_mode=\"rgb_array\"` and `moviepy` is installed.\n\n## Route by Task\n\n| Task | Read |\n| --- | --- |\n| Choose or order built-in wrappers | [references\u002Fwrapper-catalog.md](references\u002Fwrapper-catalog.md) |\n| Record episode returns, lengths, videos, or render frames | [references\u002Frecording-and-rendering.md](references\u002Frecording-and-rendering.md) |\n| Write `Wrapper`, `ObservationWrapper`, `ActionWrapper`, or `RewardWrapper` subclasses | [references\u002Fcustom-wrappers.md](references\u002Fcustom-wrappers.md) |\n| Diagnose wrapper order, changed spaces, render\u002Fvideo, image wrapper, Atari, or array conversion errors | [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) |\n| Prove a local wrapper chain works | [`scripts\u002Fwrapper_smoke.py`](scripts\u002Fwrapper_smoke.py) |\n\n## Common Patterns\n\n```python\nimport gymnasium as gym\nfrom gymnasium.wrappers import FlattenObservation, RecordEpisodeStatistics, TimeLimit\n\nenv = gym.make(\"CartPole-v1\")\nenv = TimeLimit(env, max_episode_steps=200)\nenv = FlattenObservation(env)\nenv = RecordEpisodeStatistics(env)\nobs, info = env.reset(seed=123)\nobs, reward, terminated, truncated, info = env.step(env.action_space.sample())\n```\n\n```python\nimport gymnasium as gym\nfrom gymnasium.wrappers import RecordVideo\n\nenv = gym.make(\"CartPole-v1\", render_mode=\"rgb_array\")\nenv = RecordVideo(env, video_folder=\"videos\", episode_trigger=lambda episode: True)\n```\n\n## Boundaries\n\n- For vector environments and `gymnasium.wrappers.vector`, use `..\u002Fvectorization\u002FSKILL.md`.\n- For detailed `Space` constructor, flattening, dtype, and `contains` guidance, use `..\u002Fspaces-data\u002FSKILL.md`.\n- For environment registration, `check_env`, and custom `Env` lifecycle, use `..\u002Fenvironment-api\u002FSKILL.md`.\n- For built-in environment family extras such as Box2D, MuJoCo, Atari\u002FALE IDs, or Toy Text action masks, use `..\u002Fbuiltin-envs\u002FSKILL.md`.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill wrappers-recording",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill wrappers-recording",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill wrappers-recording","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording\u002FSKILL.md",[48,54,58,62],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fcustom-wrappers.md","REFERENCE","参考文档",5540,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording\u002Freferences\u002Fcustom-wrappers.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Frecording-and-rendering.md",4910,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording\u002Freferences\u002Frecording-and-rendering.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftroubleshooting.md",5709,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording\u002Freferences\u002Ftroubleshooting.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fwrapper-catalog.md",8429,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fgymnasium\u002Fsub-skills\u002Fwrappers-recording\u002Freferences\u002Fwrapper-catalog.md",[67,75,80,87,94,101],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":76,"name":69,"nameZh":6,"description":70,"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":74},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\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":74},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\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":74},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":74},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":74},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]