Skill站外收录 @skilllib/skill-2117939930272411883
subagent
支持在代码仓库中启动无交互式子代理执行任务,可自动完成大规模代码阅读、多步操作或脚本化工作流,输出命令行结果并按需修改文件,适用于无需人工干预的深度代码探索与自动化维护场景。
软件开发 AI 技能
Skills.MD
# Subagent
## When to use
- Delegate large codebase reading, searching, or multi-step actions to a non-interactive exec run.
- Offload scripted or CI-style tasks that should finish without questions.
## Inputs / outputs
- Inputs: a prompt string; optional flags such as `--cd`, `--model`, `--json`, or `--full-auto`.
- Outputs: CLI output from the exec run; possible file edits in the target repo.
## Prompt template
Use a structured prompt to keep exec runs focused:
```
Goal:
Scope/paths:
Constraints:
Deliverables:
Context:
```
## Steps
1. Decide the task and repo root; include constraints and expected deliverables in the prompt.
2. Choose a model using `resources/references/codex-exec.md` heuristics.
3. Prefer resuming when the follow-up builds on the same context (e.g., providers after a repo overview, reviewing verbose test output, or continuing a multi-step investigation). Use `codex exec resume <SESSION_ID> "<prompt>"`.
4. Start a new run when the task changes repos, needs a clean context, or should branch into a separate thread (e.g., exploring three unrelated areas in parallel).
5. Run `codex exec` directly with flags; attach images with `-i/--image` when needed. Use `--skip-git-repo-check` when running outside a Git repo.
6. Wait for completion; review output and any file changes.
7. If the task references a plan directory, update `learnings.md` in that plan directory with key findings and decisions.
## Result checklist
- Did it identify the right files and entry points?
- Are key decisions and rationale explicit?
- Are edits (if any) listed clearly?
- Are tests or verification steps noted?
## Session tracking
- Always copy the exec `session id` into the main thread for resuming.
## Safety
- Avoid `--yolo` unless inside an isolated runner.
- Prefer `--full-auto` or explicit sandbox settings when you need workspace changes.
- Keep prompts specific about allowed paths and operations.
## Resources
- `resources/references/codex-exec.md` includes flags, model selection, and code-reading guidance.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「subagent」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次