Communitygithub.com

使用HERO约束编码代理的过度防御

粘贴HERO的范围限制契约,使编码代理保持修复适度,避免不必要的哈希、边缘情况强化、评分循环和过度构建。

使用HERO约束编码代理的过度防御 是什么?

HERO(范围限制契约)是一个专门用于约束编码代理过度防御行为的技能。它通过将一份范围限制契约粘贴到始终加载的代理配置文件中,让编码代理在修复问题时保持适度,避免了不必要的哈希、边缘情况强化、评分循环和过度构建。该技能支持Codex、Claude Code、Antigravity、GitHub Copilot、Cursor、Windsurf和Gemini CLI等多种编码代理平台,每个平台都有对应的指令文件(如AGENTS.md、CLAUDE.md、copilot-instructions.md等)。安装过程简单,只需将RULES.md中的规范范围限制块复制到代理主机自动加载的指令文件中。使用时,用户应在临时仓库中测试,通过要求代理修复测试文档中的一个错字来验证其行为是否保持适度,且不提出不相关的基础设施更改或移除必要测试。

兼容平台✓Claude Code✓Codex CLI✓Cursor✓Antigravity✓Gemini CLI✓Windsurf
npx skills add https://github.com/agentskillexchange/skills/tree/main/skills/constrain-coding-agent-over-defense-with-hero

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

使用HERO约束编码代理的过度防御 是做什么的?

将HERO的范围限制契约粘贴到始终加载的代理配置文件中,使编码代理保持修复适度,避免不必要的哈希、边缘情况强化、评分循环和过度构建。

先决条件

一个能够加载持久指令文件的编码代理主机,例如Codex的AGENTS.md、Claude Code的CLAUDE.md、Antigravity的AGENTS.md、GitHub Copilot的copilot-instructions.md、Cursor规则、Windsurf规则或Gemini CLI的GEMINI.md。

安装

从源支持的指令中安装或设置:

将RULES.md中的规范范围限制块复制到代理主机自动加载的指令文件中。对于Codex和Antigravity,使用项目根目录下的AGENTS.md;对于Claude Code,使用CLAUDE.md;对于GitHub Copilot,使用.github/copilot-instructions.md;对于Cursor、Windsurf和Gemini CLI,使用hosts/README.md中记录的特定于主机的文件。将案例目录保留在加载的提示之外,仅在校准有争议的行为时引用案例。

使用与验证

在临时仓库中试用。在复制之前审查上游的RULES.md;保留现有的项目指令、安全要求和批准边界。记录您审查的上游修订版本,以便后续更新时可以有针对性地进行比较。

启动一个新的代理会话,并要求制定一个只读计划来纠正测试文档中的一个错字。检查主机是否加载了预期的指令文件,计划是否保持在该文档范围内,且代理未提出不相关的基础设施更改或移除必要测试。与添加HERO之前使用相同任务进行比较。这是一个建议的本地验收练习,而非上游基准或可靠性证明。

在保留更改之前检查指令文件的差异。如果行为变差,仅移除添加的HERO块。范围限制不得抑制错误披露或削弱必要的安全检查。

文档

来源

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Academic Paper Citation Network Mapper

Builds citation networks from Semantic Scholar API and CrossRef DOI metadata. Visualizes paper influence graphs using NetworkX, identifies seminal works, and tracks research lineage across fields.

ACF Custom Fields REST Exposer

Exposes Advanced Custom Fields data through the WordPress REST API using register_rest_field and acf_format_value. Handles repeater fields, flexible content layouts, and gallery fields with proper serialization.

ACF Extended for Advanced Custom Fields Workflows

An ASE skill built around ACF Extended, the WordPress enhancement suite for Advanced Custom Fields that adds field types, admin improvements, front-end forms, options pages, and developer tooling. It is a practical fit for agents working inside complex WordPress content models and custom field workflows.

ACF to Gutenberg Block Migrator

Converts Advanced Custom Fields field groups into native Gutenberg blocks using the ACF Block API v2 and @wordpress/scripts build pipeline. Maps ACF repeaters, groups, and flexible content to InnerBlocks and block attributes with server-side rendering via acf_register_block_type().

Activepieces Open Source Workflow Automation

Activepieces is an open-source, self-hostable workflow automation platform with 200+ integrations. It provides a visual builder for creating automated workflows and exposes all its connectors as MCP servers for AI agent use.

ActivityWatch Cross-Platform Automated Time Tracker and Producti

ActivityWatch is a privacy-first, open-source automated time tracker that records application usage, browser activity, and AFK status across Windows, macOS, and Linux. With 16k+ GitHub stars, it provides detailed productivity analytics without sending data to external servers.

act Local GitHub Actions Runner

act is an open-source CLI tool that runs GitHub Actions workflows locally using Docker, enabling fast feedback on workflow changes without pushing to GitHub. It is a standard tool for local Actions development and testing.

Add a browser review checkpoint before risky agent actions with

Use AgentClick when an agent should pause before risky commands, plans, drafts, or code changes so a human can inspect, edit, approve, or reject them in a purpose-built browser UI.

Add Claude design-system and accessibility workflows with UX/UI

Use UX/UI Agent Skills when Claude should generate tokens, component specs, accessibility audits, and framework-specific UI code from a repeatable design workflow.

Add executable smoke tests for shell scripts and CLIs before ref

Use Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refactor, release, or incident fix goes out.

Add graph-backed memory and context retrieval to agent workflows

Use Cognee to ingest project knowledge into graph and vector memory so agents can retrieve durable context across sessions and workflows.

Add IDE-style semantic code navigation and symbol-safe refactors

Give a coding agent symbol-aware lookup, cross-file rename, and structural edit tools before it starts making brittle text-only changes.

Add managed long-term memory to LangGraph agents with LangMem

Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions.

Add multimodal lifelong memory to MCP and Python agents with Sim

Use SimpleMem to store, compress, index, and retrieve text or multimodal memories for agents through MCP or Python integrations.

Add persistent project memory and hook-driven synthesis with Cla

Keep Claude Code sessions grounded in prior decisions, project context, and daily handoff notes instead of starting from zero every time.

Add Postgres-native vector retrieval to agent and RAG workflows

Store embeddings beside application data in Postgres, create vector indexes, and query nearest neighbors for semantic search, RAG, recommendations, or agent memory retrieval.

Address GitHub PR review comments from the current branch with g

Find the open PR for the current branch, gather unresolved review comments, and drive a focused comment-resolution workflow with gh-authenticated context.

Add runtime guardrails to TypeScript agents with VoltAgent

Use VoltAgent to intercept, validate, and enforce input/output policies in TypeScript agent workflows.

Add temporal context memory to agent workflows with Zep

Use Zep as an external context layer for agents that need to store events, assemble temporal graph context, and retrieve relevant memory before model calls.

Adobe Firefly API Batch Image Generator

Calls Adobe Firefly

相关技能