编译代理上下文
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 文档
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Compile Agents Context
## Overview
Use this skill to run the old `init` command workflow as a Codex-native skill. It standardizes AGENTS discovery and regeneration with explicit options.
## Inputs
- `scan_depth`: `shallow`, `medium`, or `deep` (default `medium`)
- `include_dependencies`: `true` or `false` (default `true`)
- `auto_watch`: `true` or `false` (default `true`)
## Workflow
### 1. Discover project context
- Read root project files (`README`, manifests, config files).
- Scan directories according to `scan_depth`:
- `shallow`: root + first-level key folders.
- `medium`: default, includes feature/service folders.
- `deep`: broad scan for full architecture and conventions.
### 2. Discover agents and skills
- Search for agents in `.cursor/agents`, `.cline/agents`, `.agents`, `agents`, `.ai`, `prompts`, `system-prompts`.
- Search for skills in `.cursor/skills`, `.codex/skills`, `.agents/skills`, and user-level paths if accessible.
- Capture each discovered item with name, location, purpose, and trigger scenarios.
### 3. Extract conventions
- Capture coding and formatting standards from lint/format configs.
- Capture architecture, testing, and build/deploy patterns from project files and docs.
- Include dependency context only when `include_dependencies=true`.
### 4. Generate or refresh AGENTS.md
- Write a complete `AGENTS.md` in repository root.
- Include project overview, stack, structure, agent ecosystem, skill registry, conventions, and workflows.
- Preserve existing high-signal custom instructions when regenerating.
### 5. Configure auto-maintenance rule (optional)
- If `auto_watch=true`, create/update `.cursor/rules/agents-maintainer.md`.
- Define a rule that prompts AGENTS refresh when significant project structure changes occur.
## Reference
Use `/Users/carloscaceres/local/marius/code_samples/credit-applications-hub/.agents/skills/context-compilation-guide/SKILL.md` for the detailed section template and generation depth guidance.
## Output Contract
- Updated `/Users/carloscaceres/local/marius/code_samples/credit-applications-hub/AGENTS.md`
- Optional `/Users/carloscaceres/local/marius/code_samples/credit-applications-hub/.cursor/rules/agents-maintainer.md`
- Short summary listing files updated and discovery statistics
---
> Source: [cmcp0/credit-applications-hub](https://github.com/cmcp0/credit-applications-hub) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
章节与文件索引
按说明文件中的顺序排列。
概述
输入
1. 发现项目背景
2. 发现代理和技能
3. 提取约定
文件/命令 -> init · scan_depth · shallow · medium · deep · include_dependencies · true · false
内容校验值 -> b7ae971c444f
当前原文的自动摘译,尚未人工审校。
概述
使用此技能作为 Codex 原生技能运行旧的
init命令工作流程。它通过明确的选项标准化代理的发现和再生。输入
scan_depth:shallow、medium或deep(默认medium)include_dependencies:true或false(默认true)auto_watch:true或false(默认true)1. 发现项目背景
读取根项目文件(
README、清单、配置文件)。按照scan_depth扫描目录:shallow:根+一级关键文件夹。medium:默认,包括功能/服务文件夹。deep:广泛扫描完整的架构和约定。2. 发现代理和技能
搜索
.cursor/agents、.cline/agents、.agents、agents、.ai、prompts、system-prompts中的代理。在.cursor/skills、.codex/skills、.agents/skills和用户级路径(如果可以访问)中搜索技能。捕获每个发现的项目的名称、位置、用途和触发场景。3. 提取约定
从 lint/format 配置中捕获编码和格式化标准。从项目文件和文档中捕获架构、测试和构建/部署模式。仅当
include_dependencies=true时才包含依赖上下文。