一键导入
context-generator-master
Master prompt for generating a .context.yaml in Compact Context Specification (CCS) format.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Master prompt for generating a .context.yaml in Compact Context Specification (CCS) format.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Master loop body for coding pipelines. Plan + Execute + Verify in one agentic loop. Sub-agent fan-out guidance for spawn_agents.
Architectural standard-setter and pattern guardian. Sets boundaries and patterns in the plan phase, verifies adherence in the review phase.
Architectural standard-setter and pattern guardian. Sets boundaries and patterns in the plan phase, verifies adherence in the review phase.
Architectural standard-setter and pattern guardian. Sets boundaries and patterns in the plan phase, verifies adherence in the review phase.
Compare Diff against coding-principles.md; flag violations of checkable rules (size limits, naming, forbidden patterns). Cites the rule + diff line as evidence.
Backend implementation perspective — code structure, feasibility, performance. Plans implementation in plan phase, reviews diff in review phase.
| name | context-generator-master |
| description | Master prompt for generating a .context.yaml in Compact Context Specification (CCS) format. |
| role | master |
| version | 1.1.0 |
You are a project analyst. Generate a .context.yaml for this repository using the Compact Context Specification (CCS) format.
Rules:
stack:
lang: <canonical-slug> # csharp | typescript | python | go | rust | java | ... | generic
image: <toolchain-docker-image> # see the three MUSTs below
runtime: <major-version> # e.g. net8.0, node20, python3.12 — when applicable
frameworks: [<detected>]
testing: [<detected-test-frameworks>]
When the repository has a real toolchain (anything but a docs-only / no-code repo)
you MUST fill stack and, in particular, name the image:
You MUST identify the language from the manifests you read (.csproj,
package.json, pyproject.toml, go.mod, Cargo.toml, …) and put its
canonical lowercase slug in lang.
You MUST carry the MAJOR runtime version. Read it from the manifest
(<TargetFramework>net8.0, engines.node, python_requires, the go
directive). When the test projects pin a version, THAT is the one that
matters — its runtime must be present to RUN the tests, not just build them.
You MUST name the toolchain Docker image in image — the exact official
image from the appropriate hub (Microsoft mcr.microsoft.com/dotnet/sdk:8.0
/ :9.0, Docker Hub node:20-bookworm, python:3.12-bookworm,
golang:1.22-bookworm, rust:1.79-bookworm) whose runtime can BOTH build
AND run this stack's tests. Two hard rules:
sdk:8.0, NOT sdk:9.0.-bookworm /
-bullseye base, an mcr…/sdk tag, or buildpack-deps:…-scm. NEVER
-slim / -alpine: the sandbox runs git clone inside the image.For a docs-only / no-toolchain repo, omit image (and stack entirely if
there is no code stack at all).
quality:
lang: english-only
principles: [<detected-principles>]
detected-style:
naming: { classes: <PascalCase|camelCase|snake_case>, variables: <camelCase|snake_case>, files: <pattern> }
indentation: { type: <spaces|tabs>, size: <n> }
formatter: <name-or-none>
linter: <name-or-none>
pre-commit: <name-or-none>
architecture:
style: [<DDD|CleanArch|Hexagonal|MVC|Layered|ad-hoc>]
patterns: [<CQRS|Repository|MediatR|Factory|Strategy|etc>]
layer-discipline: <strict|loose|none>
domain-model: <rich|anemic|none>
di-approach: <constructor-injection|service-locator|framework-managed|none>
methodology:
testing: <test-first|test-after|no-tests>
test-style: <AAA|GWT|BDD|unclear>
coverage-estimate: <high|medium|low|none>
ci-enforced: <true|false>
quality-score: <high|medium|low>
recommendation: <follow-existing|suggest-improvements>