ワンクリックで
route
Edit Counterfact route files to add endpoint behavior while keeping handlers thin and delegating business logic to context classes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Edit Counterfact route files to add endpoint behavior while keeping handlers thin and delegating business logic to context classes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Keep contributor changes aligned with repository test patterns, diagnostics, release/versioning workflow, documentation requirements, and compatibility.
Provide Counterfact repository orientation, high-level architecture, and the canonical command reference for install/build/test/lint workflows.
Update Counterfact CLI option behavior, config resolution, telemetry-safe startup handling, and bootstrap/runtime entrypoint flow.
Modify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees.
Safely change Counterfact runtime/server internals while preserving module boundaries, hot reload behavior, and backward compatibility guarantees.
Add and evolve Counterfact context classes in _.context.ts files, including required unit test coverage for context behavior.
| name | route |
| description | Edit Counterfact route files to add endpoint behavior while keeping handlers thin and delegating business logic to context classes. |
| applyTo | ["**/routes/**/*.{ts,js}"] |
Implement or update route behavior in generated route files.
$ API in every handler ($.path, $.query, $.body, $.response,
$.context, $.loadContext)._.context.ts file.routes/ (e.g. routes/pet/{petId}.ts).$ ($.path, $.query, $.body).$.response[status].export const POST: HTTP_POST = ($) => {
const created = $.context.createThing($.body);
return $.response[201].json(created);
};
src/server/dispatcher.ts for runtime handler behavior