ワンクリックで
code-generation
Use this skill when implementing code for any module in this repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use this skill when implementing code for any module in this repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Offload expensive agent work to a go-orca cluster via the mcp-orca MCP bridge (workflows and ad-hoc persona runs).
How to configure, connect to, and use MCP (Model Context Protocol) servers in go-orca workflows.
Use when implementing or reviewing Next.js App Router applications in go-orca workflows.
Model routing and structured-output rules for go-orca workflow personas (Director, Project Manager, Architect).
Techniques for writing clear, compelling technical blog posts and documentation.
Checklists and patterns for systematic QA review of code, APIs, and infrastructure changes.
| name | code-generation |
| description | Use this skill when implementing code for any module in this repository. |
Use this skill when implementing code for any module in this repository.
Software workflows are orchestrated by go-orca personas before any code is written. When changing persona behavior or debugging “stuck” workflows:
workflow-orchestration skill and prompts/personas/director.md / project_manager.md — do not rely on per-request prompt hacks.When creating a new project or major module, select the matching profile below and keep file paths consistent with it. Do not invent ad-hoc directory trees.
Use this as default for production Go services. It follows the common Go community layout style (cmd + internal + pkg) while keeping it pragmatic.
.
├── cmd/
│ └── <app-name>/
│ └── main.go
├── internal/
│ ├── app/ # wiring/bootstrap
│ ├── domain/ # core business types/rules
│ ├── service/ # use-cases
│ ├── transport/ # http/grpc handlers
│ └── store/ # db/repository adapters
├── pkg/ # optional reusable public packages
├── api/ # OpenAPI/proto (optional)
├── migrations/ # db migrations (optional)
├── test/ # integration/e2e harness (optional)
├── go.mod
└── README.md
Rules:
cmd/<app-name>/main.go is the only process entrypoint.internal/; handlers call services, not raw SQL.go.mod at repo root (single-module default).cmd/.Before writing any Go source file, verify that the module directive in go.mod exactly matches
the import prefix used throughout the codebase.
github.com/go-orca/go-orca/internal/config, then go.mod must declare module github.com/go-orca/go-orca.go.mod declares a different module path while code imports github.com/go-orca/go-orca/...) typically causes Go to report module-resolution errors such as no required module provides package github.com/go-orca/go-orca/... rather than resolving those imports correctly.go.mod first. If the module path does not
match the intended import prefix used by the repository, correct it before writing any source files.go version directive unchanged when correcting the module path..
├── pyproject.toml
├── src/
│ └── <package_name>/
│ ├── __init__.py
│ ├── app.py
│ ├── domain/
│ ├── services/
│ └── adapters/
├── tests/
├── scripts/ # optional operational scripts
└── README.md
Rules:
src/ layout for import safety.tests/.app.py or main.py, not mixed into domain code..
├── package.json
├── tsconfig.json
├── src/
│ ├── index.ts # startup/bootstrap
│ ├── domain/
│ ├── services/
│ ├── routes/
│ ├── middleware/
│ └── infra/
├── test/ # unit/integration tests
├── dist/ # build output (generated)
└── README.md
Rules:
src/; never mix generated output into source paths.src/infra/config.ts).Use when the workflow request targets Next.js, React Server Components, or a full-stack TypeScript web UI. See also the nextjs-generation skill for scope discipline, client components, and preflight rules.
.
├── package.json
├── tsconfig.json
├── next.config.ts
├── app/
│ ├── layout.tsx
│ ├── page.tsx
│ └── <route>/page.tsx
├── components/
├── lib/ # db clients, auth, shared utilities
├── prisma/ # optional, when using Postgres + Prisma
└── README.md
Rules:
app/) over pages/ unless the repo already uses Pages Router.page.js and page.tsx at the same segment.scripts.build must be next build, not echo stubs; the engine preflight rejects no-op builds.package.json.@latest) unless the constitution or repository policy explicitly pins versions.useState, localStorage) requires "use client" at the top of the file.app/api/ or colocated with routes as appropriate.go.mod for a Next.js-only stack unless the constitution explicitly requires a polyglot repo.package.json, base app/layout.tsx) must be an early task with no code-task dependencies on it..
├── Cargo.toml
├── src/
│ ├── main.rs # binary entrypoint
│ ├── lib.rs # optional reusable crate API
│ ├── domain/
│ ├── service/
│ └── adapters/
├── tests/ # integration tests
└── README.md
Rules:
src/lib.rs + thin main.rs for testability..
├── pom.xml | build.gradle
├── src/
│ ├── main/
│ │ ├── java/<base_package>/
│ │ └── resources/
│ └── test/
│ ├── java/<base_package>/
│ └── resources/
└── README.md
Rules:
resources/ and business logic in package modules.errors.New / fmt.Errorf("%w", ...) for error wrapping; never swallow errors silently.(n int, err error) is idiomatic).interface{} / any in public API surface; use concrete or constrained generic types.t.Run are the default test structure.internal/ packages unexported to the module boundary; expose stable API via top-level packages.cmd/ only for main packages.*_test.go) MUST share the same package declaration as their implementation file. Never use a different package name or a special _test package for Go code.testing package; only add testify if it meaningfully reduces boilerplate.In remediation cycles, never create new artifact versions for the same component. If multiple artifacts exist for a requirement:
This discipline ensures workflow progress by preventing artifact proliferation in remediation cycles.
package <name> declarationpackage <name> declaration as the implementationgo build (implementation) and go test (tests)context.Context as the first parameter to any function that may block.sync.WaitGroup or errgroup.Group for fan-out; document lifecycle clearly.var ErrFoo = errors.New("...")) belong at the package level.log.Fatal / os.Exit are only acceptable in main() after setup failures.When handling QA blocking issues:
wg.Wait() and not hardcoded expectationsUnixMilli())