Agent助手
- 作者仓库星标 0
- 作者更新于 实时读取
- 作者仓库 skills-registry
- 领域
- AI 智能
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需手动接入
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- Docker
- 底层运行要求
- Docker
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 读取环境变量
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: agent-instructions
description: Creates or updates an AGENTS.md file for the current repository, or converts existing agent/copi…
category: AI 智能
runtime: Docker
---
# agent-instructions 输出预览
## PART A: 任务判断
- 适用问题:提示词、Agent 工作流、模型评估或自动化推理。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“When to Use This Skill / Constraints (Always Apply) / Research Phase — Do This Before Writing”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于提示词、Agent 工作流、模型评估或自动化推理,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“When to Use This Skill / Constraints (Always Apply) / Research Phase — Do This Before Writing”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、读取环境变量、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令、读取环境变量;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令、读取环境变量。
先用一个小任务确认它会围绕“When to Use This Skill / Constraints (Always Apply) / Research Phase — Do This Before Writing”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: agent-instructions
description: Creates or updates an AGENTS.md file for the current repository, or converts existing agent/copi…
category: AI 智能
source: tomevault-io/skills-registry
---
# agent-instructions
## 什么时候使用
- 把 AI / Agent方向的常用动作沉淀成 Agent 可调用的技能 适合处理AI Agent、提示词、模型评估与自动化推理,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查…
- 面向提示词、Agent 工作流、模型评估或自动化推理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「When to Use This Skill / Constraints (Always Apply) / Research Phase — Do This Before Writing」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令、读取环境变量;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "agent-instructions" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> When to Use This Skill / Constraints (Always Apply) / Research Phase — Do This Before Writing
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> Docker | 读取文件、写入/修改文件、执行终端命令、读取环境变量 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Agent Instructions Skill
A skill for generating, maintaining, and converting agent instruction files into AGENTS.md — the permanent context file that helps any AI coding agent orient quickly and work efficiently in this repository.
When to Use This Skill
- User asks to create or update
AGENTS.md - User wants to convert an existing instruction file (
.github/copilot-instructions.md,CLAUDE.md,.cursorrules, etc.) intoAGENTS.md - User wants to initialize agent context for a repository
- User asks to "add agent instructions" or "set up agent context"
- User wants to improve agent quality by providing standing codebase context
Constraints (Always Apply)
- Length: The finished file must fit within two printed pages — roughly 80–120 lines. Be ruthless about brevity. Every sentence must earn its place.
- Not task-specific: Do not include instructions about a current bug, feature, or PR. The file describes the codebase permanently, not a transient task.
- No duplication of tool output: Never reproduce what
--help,make help, or a schema already provides authoritatively. Reference the command instead. - Plain markdown only: No frontmatter, no HTML. The file is read verbatim by agents, so keep formatting clean and skimmable.
Research Phase — Do This Before Writing
Before writing a single line, gather the following. Take your time here — thorough research produces dramatically better instructions.
1. Understand what the repo does
- Read
README.md(purpose, audience, key features) - Read any top-level docs (
docs/,CONTRIBUTING.md,ARCHITECTURE.md) if present - Scan entry points (
main.*,cmd/,app/,src/index.*,lib/) to confirm the README matches reality
2. Identify languages, frameworks, and tooling
- Check for:
go.mod,package.json,Cargo.toml,pyproject.toml/setup.py,Gemfile,pom.xml,build.gradle - Note key frameworks, major libraries, and runtime versions where specified
- Identify infrastructure tooling: Docker, Terraform, Helm, etc.
3. Map the build and validation workflow
- Look for
Makefile,Taskfile,justfile,.github/workflows/,scripts/ - Identify the commands used in CI for: building, testing, linting, formatting
- Note any required env vars or one-time setup steps documented in the README or CONTRIBUTING
4. Map the layout and architecture
- Note top-level directory purposes (a single sentence each is enough)
- Identify where the main entry points live
- Note any non-obvious conventions: generated code directories, vendored code, monorepo structure
- Identify where configuration lives (env files, config packages, infrastructure definitions)
- Note where tests live and how they are organized (unit vs integration, co-located vs separate)
5. Check for existing AI context files
Other AI tools often have their own context files that may already contain accurate, well-considered descriptions of the codebase. Read all of these before writing — they are high-signal sources and should be mined heavily. When the user asks to convert one of these files, it becomes the primary source. If AGENTS.md already exists in the repo, treat it as the primary source and update it rather than recreating it from scratch.
| File | Tool | What it typically contains |
|---|---|---|
CLAUDE.md |
Anthropic Claude | Architecture, conventions, build commands, gotchas |
AGENTS.md |
OpenAI Codex / custom agents | Agent-specific workflow instructions |
GEMINI.md |
Google Gemini | Repo context and task guidance |
.cursor/rules or .cursorrules |
Cursor | Coding style, conventions, file structure |
.github/copilot-instructions.md |
GitHub Copilot | Repo instructions to consolidate into AGENTS.md |
For each file found: extract facts about purpose, tech stack, conventions, build steps, and architecture. Prefer information from these files over your own inference — they were written by someone who knows the repo.
Where sources conflict: stop and surface each conflict to the user before writing. Present the differing values, which files they came from, and ask the user which one is correct. Do not resolve conflicts by assumption.
Writing the File
Required Sections (in order)
# Agent Instructions
## Overview
One to three sentences: what this project does and who uses it.
## Tech Stack
Bullet list: language(s) + version, primary framework(s), key libraries, infra tooling.
## Build & Validate
Shell commands only — no prose duplication of what `--help` says.
Format each step as a fenced code block with the shell command.
## Repository Layout
Short table or bullet list mapping top-level directories to their purpose.
Only list directories that are non-obvious. Skip `README.md`, `LICENSE`, etc.
## Architecture Notes
A few sentences or bullets on non-obvious design decisions, patterns, or constraints
an agent should know before making changes. Examples:
- "All database queries go through the repository layer in internal/store/"
- "Proto definitions live in api/; generated code in gen/ — never edit gen/ directly"
- "Config is loaded once at startup from environment variables; no config files at runtime"
## Key Conventions
Bullet list of 3–8 hard rules or patterns the agent must follow.
Focus on things that are easy to get wrong and costly to fix.
Optional Sections (include only if genuinely useful)
## External Dependencies
Services, APIs, or credentials an agent needs to know about (not secrets — just names/roles).
## Known Landmines
Specific files, directories, or patterns to avoid touching or to treat with extra care.
Tone and Style Rules
- Write for a capable software engineer reading for the first time, not a beginner
- Use imperative voice for conventions: "Always wrap errors", not "Errors should be wrapped"
- Prefer concrete examples over abstract descriptions when space allows
- Use backticks for all file paths, commands, directory names, and symbol names
- Keep each bullet to one line where possible; two lines maximum
Listen for Standard Updates
If at any point the user says something like:
- "every AGENTS.md should have a X section"
- "add Y to the required sections"
- "we should always include Z"
Do not update SKILL.md immediately. Instead:
- Acknowledge the suggestion
- Propose the addition: show exactly what it would look like in
SKILL.md - Note whether it should be required or optional (and if optional, the qualifying condition)
- Wait for explicit confirmation before modifying
- After confirmation, update
SKILL.mdat~/dotfiles/copilot/skills/agent-instructions/SKILL.md - Tell the user to commit the change to
~/dotfilesand runskills-syncto persist it
Output
- Write the file to
AGENTS.mdat the repository root (create it if it does not exist) - If
.github/copilot-instructions.mdwas the source of a conversion, delete it automatically after writingAGENTS.md. For any other converted instruction file, note which file was converted and offer to delete or archive it. - If updating an existing
AGENTS.md, show a brief diff summary of what changed and why - Tell the user: length (line count), what was included, and any gaps you could not fill due to missing documentation
Source: dan9186/dotfiles — distributed by TomeVault.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核