跳到正文
cccskills
Codex 官方免费在 GitHub 公开

implementation-strategy

Choose bounded implementation scope and existing owning modules before Guardrails runtime, configuration, client, resource, streaming, Agents, or SDK compatibility changes and feedback fixes.

中文简介正在准备中。当前显示原文说明。

集成工具OpenAI
查看安装方法

包含的文件(2)

  • SKILL.md3.7 KB
  • agents/openai.yaml127 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Implementation Strategy

Before implementation or a feedback fix, record the requested outcome, acceptance criteria, affected paths, compatibility requirements, and non-goals. Apply scope discipline. An issue's suggested implementation is evidence, not an approved API design.

Find the owning boundary

Read the repository map and SDK migration guide. Use existing configuration, validation, registry, conversation, and resource pipelines. Identify whether the affected contract is a public export, declaration, configuration format, request/response shape, exception, CLI option, or internal helper. Compare ownership changes against the intended PR base; consult a verified release tag separately when evaluating released compatibility. Report an unavailable or stale release baseline rather than treating branch-only behavior as a released guarantee.

BoundaryPreserve and inspect
OpenAI/Azure clientsAsync create factories, separate check client, caller options and credentials, and initialized guarded clones from withOptions()
ResourcesChat/Responses parameters and request options, SDK-compatible types, and the explicit guardrails namespace; do not imply every inherited SDK method is guarded
OpenAI 7Native Fetch Response/Headers, provider-specific options, and inherited SDK method contracts
Zod 4Existing schemas and their owning validation boundary; GuardrailSpec.schema() returns the definition, not JSON Schema
AgentsPublic @openai/agents imports, built CommonJS behavior, session history, and preflight guards blocking model dispatch
Pipelinepre_flight, input, output ordering and each integration's documented execution model; distinguish tripwires from execution errors
Streaming and historyResource-specific output checks, conversation ordering and roles, tool-call identity, masking, and output error policy

Do not add new guarded SDK methods, normalize omitted options into arbitrary defaults, or duplicate schema/conversation conversion just to accommodate a suggested implementation. Escalate a substantive public API or architecture change before expanding the diff.

Match tests to the changed contract

Use existing unit tests beside the owning area. For SDK boundaries, inspect src/__tests__/integration/sdk-compat.test.ts, sdk-types.test.ts, and sdk-migration-feedback.test.ts: they cover built-package behavior and consumer types that source-only mocks can miss. Build before running these tests. Use Vitest mocks/spies or SDK-provided testing utilities where they model the real protocol. Add only tests needed for the changed behavior.

For a touched security surface, review the relevant trust boundary: untrusted configuration, provider responses, conversation content, or eval inputs, and where validation occurs before side effects. Keep this review scoped to the change; do not convert it into unrelated hardening.

Classify feedback using AGENTS.md. Fix introduced/worsened defects and narrowly necessary corrections. Record broader improvements separately. If repeated special cases suggest the approach fights an existing invariant, revisit the smallest design at the owning boundary before adding more machinery.

Use code-change-verification for checks and the release guide for changeset impact.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

code-change-verification

Codex 官方免费

Select and run Guardrails verification for code, dependency, test, tooling, documentation, or repository-workflow changes.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-js1102026年10月21日 更新

implementation-final-review

Codex 官方免费

Prepare independent review of a complete Guardrails change before pushing or updating a PR, using the repository adversarial-review procedure.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-js1102026年10月21日 更新

implementation-kickoff

Codex 官方免费

Start or resume a requested Guardrails implementation or PR takeover in the selected linked worktree with bounded scope and verification.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-js1102026年10月21日 更新

pr-draft-summary

Codex 官方免费

Draft a Guardrails PR from its complete final diff and carry out authorized CI and review follow-up, including stacked PRs and takeovers.

中文简介正在准备中。当前显示原文说明。

openai/openai-guardrails-js1102026年10月21日 更新

查看 openai 的全部技能

报告此技能的问题