[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78B46EHZE7R75D4AHV3PD65":3,"skill-same:01M78B46EHZE7R75D4AHV3PD65":81},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M78B46EHZE7R75D4AHV3PD65","refactoring-safely",null,"Plan and review behaviour-preserving code restructuring through characterization evidence, small named transformations, and verification between steps without modifying code.","hermes-jarvis-bot\u002Fhermes-agent-config-kit","hermes-jarvis-bot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F288284026?v=4","01M78AV3BBD4M67J3YWSQRKP1Q","01M78AV3C2SKH53E0PZMXAKTTS",1,"MIT","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: refactoring-safely\ndescription: \"Plan and review behaviour-preserving code restructuring through characterization evidence, small named transformations, and verification between steps without modifying code.\"\nversion: 0.1.0\nlicense: MIT\nmetadata:\n  hermes_config_kit:\n    source_repo: AnastasiyaW\u002Fclaude-code-config\n    source_path: skills\u002Fdevelopment\u002Frefactoring-safely\u002FSKILL.md\n    adapter: hermes-agent-config-kit\n    conversion: adapted\n---\n\n# Refactoring Safely\n\nSource: `AnastasiyaW\u002Fclaude-code-config\u002Fskills\u002Fdevelopment\u002Frefactoring-safely\u002FSKILL.md`.\n\nThis module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.\n\n# Refactoring Safely\n\nUse this module when existing code must change shape without changing its observable\nbehaviour: a module is oversized, responsibilities are misplaced, a safe extraction is\nneeded, or a legacy area needs a controlled structural improvement. It is a read-only\nplanning and review protocol: it does not modify code, run transformations, add tests,\nor authorise a refactor.\n\n## Scope and exclusions\n\nThis module governs a named, behaviour-preserving transformation with a safety net.\nUse `architecture-first` to decide target system boundaries and code placement;\n`code-complexity` to analyse function shape, names, interfaces, and local complexity;\n`system-and-data-design` for capacity, storage, scaling, or distributed-system choices;\nand `lean-code` when removing unjustified scope is the primary outcome. A behaviour\nchange, bug fix, dependency upgrade, or feature addition is a separate change with its\nown acceptance criteria and verification; do not disguise it as refactoring.\n\n## Read-only refactoring protocol\n\n1. Establish the affected behaviour from call sites, public contracts, current tests,\n   runtime evidence, and known failure paths. If relevant behaviour lacks coverage,\n   propose focused characterization checks before changing structure.\n2. Name one concrete smell and one smallest candidate transformation. Prefer extracting\n   a coherent responsibility, moving state with its owner, or simplifying a conditional\n   only where the existing behaviour and boundary are understood.\n3. Define the safety net: exact focused checks, the expected unchanged outcomes, rollback\n   point, and the maximum file scope. If the checks are already failing or cannot observe\n   the changed seam, report that evidence gap rather than claiming safe refactoring.\n4. Keep structural and behavioural work separate. Plan one transformation at a time with\n   a verification result between steps; record any discovered defect as separate work.\n5. For mutable shared state, concurrency primitives, caches, or locks, state the invariant\n   and move the state with the protection that preserves it. Escalate cross-module or\n   deployment-facing scope to the appropriate architecture or system-design review.\n\n## Output\n\nReport the observed smell, protected behaviour, candidate transformation, evidence gap\nor characterization plan, focused verification and rollback boundary, excluded behaviour\nchanges, residual risk, and the next operator-confirmation point before any write-impacting\nwork. Load the relevant reference only for the named transformation; examples remain\nreviewed data, not commands to execute.\n","# Refactoring Safely\n\nSource: `AnastasiyaW\u002Fclaude-code-config\u002Fskills\u002Fdevelopment\u002Frefactoring-safely\u002FSKILL.md`.\n\nThis module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.\n\n# Refactoring Safely\n\nUse this module when existing code must change shape without changing its observable\nbehaviour: a module is oversized, responsibilities are misplaced, a safe extraction is\nneeded, or a legacy area needs a controlled structural improvement. It is a read-only\nplanning and review protocol: it does not modify code, run transformations, add tests,\nor authorise a refactor.\n\n## Scope and exclusions\n\nThis module governs a named, behaviour-preserving transformation with a safety net.\nUse `architecture-first` to decide target system boundaries and code placement;\n`code-complexity` to analyse function shape, names, interfaces, and local complexity;\n`system-and-data-design` for capacity, storage, scaling, or distributed-system choices;\nand `lean-code` when removing unjustified scope is the primary outcome. A behaviour\nchange, bug fix, dependency upgrade, or feature addition is a separate change with its\nown acceptance criteria and verification; do not disguise it as refactoring.\n\n## Read-only refactoring protocol\n\n1. Establish the affected behaviour from call sites, public contracts, current tests,\n   runtime evidence, and known failure paths. If relevant behaviour lacks coverage,\n   propose focused characterization checks before changing structure.\n2. Name one concrete smell and one smallest candidate transformation. Prefer extracting\n   a coherent responsibility, moving state with its owner, or simplifying a conditional\n   only where the existing behaviour and boundary are understood.\n3. Define the safety net: exact focused checks, the expected unchanged outcomes, rollback\n   point, and the maximum file scope. If the checks are already failing or cannot observe\n   the changed seam, report that evidence gap rather than claiming safe refactoring.\n4. Keep structural and behavioural work separate. Plan one transformation at a time with\n   a verification result between steps; record any discovered defect as separate work.\n5. For mutable shared state, concurrency primitives, caches, or locks, state the invariant\n   and move the state with the protection that preserves it. Escalate cross-module or\n   deployment-facing scope to the appropriate architecture or system-design review.\n\n## Output\n\nReport the observed smell, protected behaviour, candidate transformation, evidence gap\nor characterization plan, focused verification and rollback boundary, excluded behaviour\nchanges, residual risk, and the next operator-confirmation point before any write-impacting\nwork. Load the relevant reference only for the named transformation; examples remain\nreviewed data, not commands to execute.\n",{"name":5,"license":14,"version":23,"metadata":24,"description":7},"0.1.0",{"hermes_config_kit":25},{"adapter":26,"conversion":27,"source_path":28,"source_repo":29},"hermes-agent-config-kit","adapted","skills\u002Fdevelopment\u002Frefactoring-safely\u002FSKILL.md","AnastasiyaW\u002Fclaude-code-config","main","07d02526f424fc814f8350d6b0b728e81576603d","hermes\u002Fskills\u002Frefactoring-safely",0,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot","2026-11-14 18:25:27",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add hermes-jarvis-bot\u002Fhermes-agent-config-kit --skill refactoring-safely",{"tool":43,"command":44},"bunx","bunx skills add hermes-jarvis-bot\u002Fhermes-agent-config-kit --skill refactoring-safely",{"tool":46,"command":47},"pnpm","pnpm dlx skills add hermes-jarvis-bot\u002Fhermes-agent-config-kit --skill refactoring-safely","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002FSKILL.md",true,[51,57,61,65,69,73,77],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Frefactoring-patterns-original.md","REFERENCE","参考文档",20987,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns-original.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Frefactoring-patterns\u002Fcomposing-methods.md",12264,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns\u002Fcomposing-methods.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Frefactoring-patterns\u002Fmoving-features.md",12620,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns\u002Fmoving-features.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Frefactoring-patterns\u002Forganizing-data.md",13335,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns\u002Forganizing-data.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Frefactoring-patterns\u002Frefactoring-workflow.md",14651,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns\u002Frefactoring-workflow.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Frefactoring-patterns\u002Fsimplifying-conditionals.md",13489,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns\u002Fsimplifying-conditionals.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Frefactoring-patterns\u002Fsmell-catalog.md",13856,"https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Frefactoring-safely\u002Freferences\u002Frefactoring-patterns\u002Fsmell-catalog.md",[82,88,95,102,109,116],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M78BHH6VNT0MKZXGMP2F50X1","owner-voice","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fowner-voice\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M78BHD34XJHAK6EMZ7J1M80X","humanize-russian","Редактировать русский текст для ясности и естественного звучания, сохраняя факты,\nтермины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст\nживее, отредактировать русский черновик или статью перед публикацией.\nНе определяет авторство и не обещает обход детекторов. Для английского —\nhumanize-english; для структуры и доказательств — article-structure-review.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fhumanize-russian\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M78BH9D09HCA7ECZMPEEAE5Y","humanize-english","Edit English drafts for clear, natural language while preserving facts, uncertainty,\ntechnical meaning, citations and genre. Use when: humanize this text, remove AI-style\nfiller, improve English prose, or edit an English article before publication.\nNot an authorship detector or a promise to bypass one. For Russian use\nhumanize-russian; for thesis\u002Fevidence and structure use article-structure-review.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fhumanize-english\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M78BH44Q25YMA16MC6FKZ2WY","caveman","Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse \"caveman\" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says \"caveman\", \"talk like caveman\", \"use caveman\", \"less tokens\", \"be brief\", or Russian \"пещерный режим\", \"говори как пещерный\", \"кратко\", \"меньше токенов\", \"экономь токены\" — or invokes \u002Fcaveman. Preserves the user's language (Russian in → Russian caveman out). Off only: \"stop caveman\" \u002F \"normal mode\" \u002F \"обычный режим\". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Fcaveman\u002FSKILL.md",[],[],{"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":18},"01M78BGY0JTMTW3J3YE5RQTHCK","article-structure-review","Проверить структуру технической статьи после черновика: задача читателя, жанр,\nопора значимых утверждений на доказательства и честные ограничения.\nUse after the first draft, before publication. Исправлять структуру, когда это\nвходит в запрос; не создавать обязательный конвейер из других навыков.\nДля локальной языковой редактуры — humanize-english или humanize-russian.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fwriting\u002Farticle-structure-review\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":18},"01M78BGRJYZGK1TNTCHWGY32W3","video-post-production","Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames\u002Fscenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.","https:\u002F\u002Fgithub.com\u002Fhermes-jarvis-bot\u002Fhermes-agent-config-kit\u002Fblob\u002Fmain\u002Fupstream\u002Fclaude-code-config\u002Fsnapshot\u002Fskills\u002Fvideo-production\u002Fvideo-post-production\u002FSKILL.md",[],[]]