[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71R1A1P4K84S3PJ98WCNJRR":3,"skill-same:01M71R1A1P4K84S3PJ98WCNJRR":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M71R1A1P4K84S3PJ98WCNJRR","command-wrapper",null,"Run commands safely — description, error handling, output parsing, and safety wrappers for destructive operations","LuisAlbertoMK\u002Fgentleman-agent-gh","LuisAlbertoMK","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F96153499?v=4","01M71QZX0CF9KKGQZ8ZN9BME63","01M71QZX11P5X6Z27HE1GQDF71",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcommand-wrapper\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"command","Wrapper","command wrapper","docs","run","error handling","Safety","parsing","operations","commands","error","output","for","2026-11-10 13:02:02",false,"---\nname: command-wrapper\ndescription: \"Run commands safely — description, error handling, output parsing, and safety wrappers for destructive operations\"\ntriggers: \"Command wrapper, error handling, output parsing\"\nchangelog: docs\u002Fciclos\u002Fcycle28-20260815.md\ntoken_budget: 3000\n---\n\n## When to Use\nRunning bash commands, detecting errors, parsing output.\n\n## COMMAND CONTRACT\nEvery bash command MUST include: 1. **Description**: 5-10 words. 2. **Error handling**: check exit code, parse stderr for known patterns. 3. **Output validation**: does output match expected format?\n\n## ERROR HANDLING PATTERNS\n| Error pattern | Action |\n|---|---|\n| `command not found` | Install dependency or report missing tool |\n| `permission denied` | Check file permissions, suggest fix |\n| `exit code 1` (git) | Check git status, resolve merge conflicts |\n| `exit code 1` (build) | Parse compiler errors, fix file:line |\n| Timeout (>30s) | Kill process, retry with simpler command |\n| Network error | Retry once → report connectivity issue |\n| Empty output | Check if source exists, validate path |\n\n## OUTPUT PARSING RULES\n- Always trim whitespace from output\n- Parse structured output (JSON, table) with explicit format expectations\n- If output has warnings + results → extract BOTH, don't skip warnings\n- If output exceeds context limits → save to file, read relevant portions\n\n## SAFETY WRAPPERS\nDestructive commands → BLOCK (ask required). Example — commands that require explicit approval before any run:\n```bash\ngit push --force\nrm -rf \u003Cpath>\n```\n`git commit` → quality gate first.\n\n## PRE-EXEC\nside-effects>scripts\u002Fpre-exec-review.ps1 -Command (-Mode strict)\nPASS>procede;WARN>procede+warn(strict>FAIL);FAIL(2)>no corre,reporta,sigue\nread-only>no;shell=bare pwsh\n\n## LOGGING (post-command)\nAfter critical commands, log to Engram: `title:\"Command: {summary}\" type:discovery|config content:\"**What**: command | **Exit code**: N | **Output**: summary | **Learned**: gotchas\"`\n\n## Anti-Rationalization\n\n| Rationalization | Red Flag | Verification |\n|-----------------|----------|--------------|\n| \"destructivo sin -WhatIf\" | rm -rf \u003Cpath> o force-push sin safety wrapper | bloquear destructivo o usar -WhatIf + quality gate file:line |\n| \"output sin parsear se pierde\" | output con warnings+results sin parsear | trim + parse JSON\u002Ftable + extraer warnings y results file:line |\n| \"ignorar exit code\" | exit code ≠0 sin diagnosticar stderr | check exit code + parse stderr patterns file:line |\n\n## Red Flags\n- Doing work before checking output format → STOP, re-read skill\n- Second occurrence of same rationalization → force RED zone\n\n## Verification\n- Output matches skill ## Output contract + file:line citaton\n- cross-ref-check.ps1 → SKILL.md OK\n## Refs\nsecurity-scanner · delivery-harness · subagent-isolation · recovery-protocol · context-watchdog · quick-executor · server-commands\n\n## Anti-Patterns\nSkip description · Ignore stderr · Parse output by eye · Raw bash for destructive ops · No timeout\n\n## Reference\n> docs\u002Fskills\u002Fcommand-wrapper\u002Freference.md\n\n","## When to Use\nRunning bash commands, detecting errors, parsing output.\n\n## COMMAND CONTRACT\nEvery bash command MUST include: 1. **Description**: 5-10 words. 2. **Error handling**: check exit code, parse stderr for known patterns. 3. **Output validation**: does output match expected format?\n\n## ERROR HANDLING PATTERNS\n| Error pattern | Action |\n|---|---|\n| `command not found` | Install dependency or report missing tool |\n| `permission denied` | Check file permissions, suggest fix |\n| `exit code 1` (git) | Check git status, resolve merge conflicts |\n| `exit code 1` (build) | Parse compiler errors, fix file:line |\n| Timeout (>30s) | Kill process, retry with simpler command |\n| Network error | Retry once → report connectivity issue |\n| Empty output | Check if source exists, validate path |\n\n## OUTPUT PARSING RULES\n- Always trim whitespace from output\n- Parse structured output (JSON, table) with explicit format expectations\n- If output has warnings + results → extract BOTH, don't skip warnings\n- If output exceeds context limits → save to file, read relevant portions\n\n## SAFETY WRAPPERS\nDestructive commands → BLOCK (ask required). Example — commands that require explicit approval before any run:\n```bash\ngit push --force\nrm -rf \u003Cpath>\n```\n`git commit` → quality gate first.\n\n## PRE-EXEC\nside-effects>scripts\u002Fpre-exec-review.ps1 -Command (-Mode strict)\nPASS>procede;WARN>procede+warn(strict>FAIL);FAIL(2)>no corre,reporta,sigue\nread-only>no;shell=bare pwsh\n\n## LOGGING (post-command)\nAfter critical commands, log to Engram: `title:\"Command: {summary}\" type:discovery|config content:\"**What**: command | **Exit code**: N | **Output**: summary | **Learned**: gotchas\"`\n\n## Anti-Rationalization\n\n| Rationalization | Red Flag | Verification |\n|-----------------|----------|--------------|\n| \"destructivo sin -WhatIf\" | rm -rf \u003Cpath> o force-push sin safety wrapper | bloquear destructivo o usar -WhatIf + quality gate file:line |\n| \"output sin parsear se pierde\" | output con warnings+results sin parsear | trim + parse JSON\u002Ftable + extraer warnings y results file:line |\n| \"ignorar exit code\" | exit code ≠0 sin diagnosticar stderr | check exit code + parse stderr patterns file:line |\n\n## Red Flags\n- Doing work before checking output format → STOP, re-read skill\n- Second occurrence of same rationalization → force RED zone\n\n## Verification\n- Output matches skill ## Output contract + file:line citaton\n- cross-ref-check.ps1 → SKILL.md OK\n## Refs\nsecurity-scanner · delivery-harness · subagent-isolation · recovery-protocol · context-watchdog · quick-executor · server-commands\n\n## Anti-Patterns\nSkip description · Ignore stderr · Parse output by eye · Raw bash for destructive ops · No timeout\n\n## Reference\n> docs\u002Fskills\u002Fcommand-wrapper\u002Freference.md\n\n",{"name":5,"triggers":36,"changelog":37,"description":7,"token_budget":38},"Command wrapper, error handling, output parsing","docs\u002Fciclos\u002Fcycle28-20260815.md",3000,"main","4af6946b30783e2c8f9182082324d530fc28f838",".agents\u002Fskills\u002Fcommand-wrapper","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK","2026-11-10 18:34:27",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add LuisAlbertoMK\u002Fgentleman-agent-gh --skill command-wrapper",{"tool":51,"command":52},"bunx","bunx skills add LuisAlbertoMK\u002Fgentleman-agent-gh --skill command-wrapper",{"tool":54,"command":55},"pnpm","pnpm dlx skills add LuisAlbertoMK\u002Fgentleman-agent-gh --skill command-wrapper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcommand-wrapper\u002FSKILL.md",true,[],[60,87,109,126,148,172],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":31},"01M71R7K35P668DYEPYGDQP2QA","web-quality-audit","Comprehensive web audit: performance, a11y, SEO, responsive, animation, design tokens.","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002Fdocs\u002Fciclos\u002Fc28-w1-backup\u002Fweb-quality-audit\u002FSKILL.md",[],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],"quality","quality audit","web quality audit","audit","web","Animation","design audit","design","website","ui","responsive","seo","tokens","ui audit","Lighthouse","performance","review","optimize","a11y","page",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":31},"01M71R7H1RA7CQ568DHRK37PE2","ui-engine","UI system — Grid\u002FFlexbox\u002F@layer\u002F:has(), container queries, compositor-only animation, OKLCH tokens, component patterns","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002Fdocs\u002Fciclos\u002Fc28-w1-backup\u002Fui-engine\u002FSKILL.md",[],[94,95,76,72,96,97,98,86,99,79,100,101,102,74,103,104,105,106,107,108],"ui engine","engine","compositor","css","dark","system","mode","hooks","container","only","query","components","dark mode","grid","queries",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":31},"01M71R7EPMZFKB833WE4B3GTHC","baseline-ui","Anti-slop UI — layout, typography, responsive, animation, tokens. Use for cleanup or polish.","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002Fdocs\u002Fciclos\u002Fc28-w1-backup\u002Fbaseline-ui\u002FSKILL.md",[],[116,117,76,72,118,119,30,120,79,121,102,74,122,123,124,80,125,104,107,83],"baseline ui","baseline","generic","slop","anti-slop","fix","interface","cleanup","design review","use",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":31},"01M71R7CWK3FBW77Z8WD9GXQFE","skill-creator","Create new AI agent skills following Agent Skills spec -- auto-bootstrap unknown tasks, define structure, register in AGENTS.md","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002F.archive\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[133,134,135,136,137,138,139,140,141,142,143,144,145,146,147],"skill creator","creator","create","structure","register","2026","spec","new","ai skill","auto","define","ai agent","unknown","tasks","bootstrap",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":31},"01M71R78DZM1GA16F1KN8ND926","senior-engineer","Apply senior engineering competencies — system design, trade-off analysis, delegation, mentoring, and tech debt strategy","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002F.archive\u002Fskills\u002Fsenior-engineer\u002FSKILL.md",[],[155,156,157,158,159,160,161,74,162,163,138,164,165,166,99,167,168,169,170,171],"engineer","senior","senior engineer","system design","trade-offs","senior engineering","delegation","senior architect","analysis","debt","architect","tech","strategy","apply","trade","tech debt","engineering",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":31},"01M71R74WQTXZMG3219RND96CE","prompt-engineering","Design effective prompts using SPEARS framework — scope, principles, examples, assertions, refinements, with ReAct and multi-agent patterns","https:\u002F\u002Fgithub.com\u002FLuisAlbertoMK\u002Fgentleman-agent-gh\u002Fblob\u002Fmain\u002F.archive\u002Fskills\u002Fprompt-engineering\u002FSKILL.md",[],[179,180,171,181,182,74,183,138,184,185,186,187,188,189,190,191,192,193,194,195],"prompt","prompt engineering","scope","improve","react","security","patterns","multi-agent","framework","agent patterns","assertions","examples","with","multi","principles","improve prompt","prompts"]