[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C1222QWTDD64D9B9VPXCQ6":3,"skill-same:01M6C1222QWTDD64D9B9VPXCQ6":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6C1222QWTDD64D9B9VPXCQ6","reflection-injection","智能体反思注入","Inject relevant past reflections into agent context at iteration start so agents learn from prior mistakes without repeating them","在迭代开始时，将相关的过往反思注入智能体上下文，使智能体从先前的错误中学习，避免重蹈覆辙。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Freflection-injection\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41],"injection","reflection injection","reflection","learn","start","context","iteration","relevant","past","at","mistakes","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: reflection-injection\nplatforms: [all]\ndescription: Inject relevant past reflections into agent context at iteration start so agents learn from prior mistakes without repeating them\n---\n\n# reflection-injection\n\nAutomatically inject relevant past reflections into agent context when starting new iterations or retrying after failures.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"inject reflection\" → explicit reflection injection shorthand\n- \"add metacognition\" → metacognitive step insertion\n\n## Purpose\n\nThis skill implements the Reflexion episodic memory injection pattern. Before each iteration, it loads relevant past reflections and injects them into the agent's context, enabling learning from past mistakes without repeating them.\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Load reflection history**:\n   - Read `.aiwg\u002Fralph\u002Freflections\u002Floops\u002F` for current loop reflections\n   - Read `.aiwg\u002Fralph\u002Freflections\u002Fpatterns\u002F` for cross-loop patterns\n   - Apply sliding window: k=5 most recent reflections\n\n2. **Filter for relevance**:\n   - Match reflections by task type similarity\n   - Match by error type if retrying after failure\n   - Match by file\u002Fmodule if working on specific code\n\n3. **Format for injection**:\n   - Convert reflections to natural language summary\n   - Use @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Ftemplates\u002Fself-reflection-prompt.md template\n   - Prepend to agent context\n\n4. **Track usage**:\n   - Record which reflections were injected\n   - Track whether injected reflections led to success\n   - Update pattern effectiveness scores\n\n## Activation Conditions\n\n```yaml\nactivation:\n  always_active_for:\n    - ralph-loop-orchestrator\n    - ralph-verifier\n\n  triggered_by:\n    - ralph_iteration_start\n    - agent_retry_after_failure\n    - explicit_user_request\n\n  skip_when:\n    - no_reflection_history: true\n    - first_iteration_of_first_loop: true\n```\n\n## Integration\n\nThis skill uses:\n- `project-awareness`: Context for relevance filtering\n- Agent Loop Orchestrator: Provides iteration state\n- Reflection memory at `.aiwg\u002Fralph\u002Freflections\u002F`\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fschemas\u002Freflection-memory.json - Schema\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fdocs\u002Freflection-memory-guide.md - Guide\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Ftemplates\u002Fself-reflection-prompt.md - Prompt template\n- @.aiwg\u002Fresearch\u002Ffindings\u002FREF-021-reflexion.md - Research foundation\n\n## Storage Routing (#934, #967)\n\nThis skill's persistence flows through `resolveStorage('reflections')`. On the default `fs` backend reflections live at `.aiwg\u002Freflections\u002F`. To redirect into Obsidian, Logseq, Fortemi, or another backend without changing this skill, configure `roots.reflections` or `backends.reflections` in `.aiwg\u002Fstorage.config` (#934).\n\nWhen this skill needs to read\u002Fwrite reflections from a Bash step, prefer the storage-routed CLI:\n\n```bash\naiwg reflections list --prefix sessions\u002F\naiwg reflections get sessions\u002F2026-04-28.md\necho \"# reflection\" | aiwg reflections put sessions\u002F2026-04-28.md\necho '{\"event\":\"reflect\",\"summary\":\"...\"}' | aiwg reflections append-log sessions\u002Flog.jsonl\n```\n\nThe legacy direct-fs paths continue to work on the default `fs` backend — byte-identical to what the adapter writes — but only the adapter route honors `storage.config` redirection.\n","# reflection-injection\n\nAutomatically inject relevant past reflections into agent context when starting new iterations or retrying after failures.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"inject reflection\" → explicit reflection injection shorthand\n- \"add metacognition\" → metacognitive step insertion\n\n## Purpose\n\nThis skill implements the Reflexion episodic memory injection pattern. Before each iteration, it loads relevant past reflections and injects them into the agent's context, enabling learning from past mistakes without repeating them.\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Load reflection history**:\n   - Read `.aiwg\u002Fralph\u002Freflections\u002Floops\u002F` for current loop reflections\n   - Read `.aiwg\u002Fralph\u002Freflections\u002Fpatterns\u002F` for cross-loop patterns\n   - Apply sliding window: k=5 most recent reflections\n\n2. **Filter for relevance**:\n   - Match reflections by task type similarity\n   - Match by error type if retrying after failure\n   - Match by file\u002Fmodule if working on specific code\n\n3. **Format for injection**:\n   - Convert reflections to natural language summary\n   - Use @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Ftemplates\u002Fself-reflection-prompt.md template\n   - Prepend to agent context\n\n4. **Track usage**:\n   - Record which reflections were injected\n   - Track whether injected reflections led to success\n   - Update pattern effectiveness scores\n\n## Activation Conditions\n\n```yaml\nactivation:\n  always_active_for:\n    - ralph-loop-orchestrator\n    - ralph-verifier\n\n  triggered_by:\n    - ralph_iteration_start\n    - agent_retry_after_failure\n    - explicit_user_request\n\n  skip_when:\n    - no_reflection_history: true\n    - first_iteration_of_first_loop: true\n```\n\n## Integration\n\nThis skill uses:\n- `project-awareness`: Context for relevance filtering\n- Agent Loop Orchestrator: Provides iteration state\n- Reflection memory at `.aiwg\u002Fralph\u002Freflections\u002F`\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fschemas\u002Freflection-memory.json - Schema\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fdocs\u002Freflection-memory-guide.md - Guide\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Ftemplates\u002Fself-reflection-prompt.md - Prompt template\n- @.aiwg\u002Fresearch\u002Ffindings\u002FREF-021-reflexion.md - Research foundation\n\n## Storage Routing (#934, #967)\n\nThis skill's persistence flows through `resolveStorage('reflections')`. On the default `fs` backend reflections live at `.aiwg\u002Freflections\u002F`. To redirect into Obsidian, Logseq, Fortemi, or another backend without changing this skill, configure `roots.reflections` or `backends.reflections` in `.aiwg\u002Fstorage.config` (#934).\n\nWhen this skill needs to read\u002Fwrite reflections from a Bash step, prefer the storage-routed CLI:\n\n```bash\naiwg reflections list --prefix sessions\u002F\naiwg reflections get sessions\u002F2026-04-28.md\necho \"# reflection\" | aiwg reflections put sessions\u002F2026-04-28.md\necho '{\"event\":\"reflect\",\"summary\":\"...\"}' | aiwg reflections append-log sessions\u002Flog.jsonl\n```\n\nThe legacy direct-fs paths continue to work on the default `fs` backend — byte-identical to what the adapter writes — but only the adapter route honors `storage.config` redirection.\n",{"name":5,"namespace":47,"platforms":48,"description":7},"aiwg",[49],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Freflection-injection",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add jmagly\u002Faiwg --skill reflection-injection",{"tool":66,"command":67},"bunx","bunx skills add jmagly\u002Faiwg --skill reflection-injection",{"tool":69,"command":70},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill reflection-injection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Fagent-loop\u002Fskills\u002Freflection-injection\u002FSKILL.md",true,[],[75,83,88,115,135,140],{"skillNo":76,"name":77,"nameZh":17,"description":78,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":84,"name":77,"nameZh":17,"description":78,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":82},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":42},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":42},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[122,123,124,125,126,127,100,128,106,113,108,129,96,130,110,131,132,114,133,134],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":136,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":42},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[95,96,97,112,113,114,107,111,103,99,100,101,102,104,105,106,98,108,109,110],{"skillNo":141,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":42},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[122,123,134,133,126,132,131,110,125,127,100,128,106,124,108,129,96,114,113,130]]