본문으로 건너뛰기
cccskills
무료GitHub에 공개

build-scenario-tests

Inspect an unfamiliar repository, turn a focused Markdown behavior scenario into a deterministic test in the repository's native test stack, run it, and preserve traceability between intent and code. Use when asked to add scenario tests, compile acceptance criteria or Given/When/Then Markdown into executable tests, reproduce a user-visible regression, or convert a narrow workflow specification into stable web, API, CLI, desktop, or mobile interaction coverage. Do not use for broad exploratory journeys or agent-judged smoke tests.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(8)

  • SKILL.md6.6 KB
  • agents/openai.yaml261 B
  • examples/cli-expired-session.scenario.md1.3 KB
  • examples/test_cli_expired_session.py934 B
  • examples/web-workspace-invite.scenario.md1.4 KB
  • examples/web-workspace-invite.spec.ts1.6 KB
  • README.md660 B
  • references/scenario-format.md2.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Build Scenario Tests

Compile one small behavior contract into deterministic, repository-native test code. Understand the host project before choosing a harness, command, fixture, selector, or assertion.

Operating contract

  • Treat repository instructions and existing tests as authoritative.
  • Keep each scenario focused on one behavior and one reason to fail.
  • Compile into the test stack the repository already uses. Add a dependency only when no suitable harness exists and the user accepts the tradeoff.
  • Make setup, inputs, actions, and expected results deterministic.
  • Prefer public behavior over implementation details. Assert what a user or external caller can observe.
  • Keep the Markdown scenario beside the test or in the repository's established specification directory. Record the mapping in both artifacts.
  • Never weaken an assertion merely to make a test pass.

Workflow

1. Pass the repository-understanding gate

Read the nearest AGENTS.md or equivalent instructions, product README, contribution guide, manifests, test configuration, and the smallest relevant product documentation. Use repository search to find the implementation entry point, neighboring tests, fixtures, stable selectors, and validation commands. Trace the relevant action from its public entry point through the state boundary to the observable result. Do not read the entire tree without a reason.

Before editing, be able to state:

product surface:
behavior source:
relevant architecture and data flow:
runtime or start command:
existing test runner:
nearest tests to imitate:
fixture and state-isolation strategy:
narrow validation command:
full validation command:
known trust or destructive boundaries:

If a material field is unknown, search again. If the repository does not answer it, expose the gap and ask only for the missing product decision. Do not invent commands, selectors, credentials, or expected behavior.

2. Normalize the scenario

Read references/scenario-format.md. If the user provided prose, rewrite it into that contract without changing its intent.

Reject or split a scenario when it:

  • contains multiple independent behaviors;
  • depends on subjective visual judgment;
  • requires uncontrolled third-party state, real payment, or human authorization;
  • uses vague outcomes such as "works correctly";
  • cannot reset its data, time, randomness, or network dependencies.

Route a broad or agent-judged journey to a smoke-test workflow instead.

3. Map intent to the host test stack

Create a compact mapping before writing code:

Scenario elementRepository implementation
Preconditionsfixture, factory, seed, fake, or setup API
User actionpublic UI, CLI, HTTP, SDK, or native interaction
Oraclevisible state, output, response, durable state, or emitted event
Cleanuptransaction rollback, fixture teardown, or isolated temp state

Choose the narrowest existing harness that reaches the behavior:

  • web or desktop UI: the repository's browser or UI runner;
  • API or service: the native integration-test client;
  • CLI: the existing subprocess or command runner;
  • mobile: the project's native UI-test framework;
  • library: the public API through its current test runner.

Do not force a browser test onto behavior that a stable public API test can prove more directly.

4. Compile the deterministic test

Write the test in surrounding style. Preserve this traceability:

  • include the scenario ID in the test name or metadata;
  • link the scenario path from a short code comment when local conventions allow;
  • keep every oracle from the Markdown represented by an assertion;
  • use stable roles, labels, test IDs, public outputs, or API contracts;
  • isolate state with existing factories, fakes, temporary directories, or transactions;
  • control time, randomness, retries, and network calls when they affect results;
  • make cleanup run even after a failed assertion.

Do not copy the bundled demonstration code blindly. It contains fictional fixtures to show the mapping, not reusable project infrastructure.

5. Prove the compilation

Run the new test alone. Confirm it fails for the intended reason without the behavior or regression fix when that check is safe and practical. Then run the nearest relevant suite and the repository's required lint, type, build, and test commands.

Inspect failures semantically. Fix the test only when the test is wrong. Do not change product behavior unless the user asked for the implementation or fix.

Check for:

  • every Markdown oracle has a matching assertion;
  • no accidental live service, account, payment, or production dependency;
  • repeated runs use isolated state and stable ordering;
  • failure output identifies the broken behavior;
  • the scenario and compiled test link to each other.

6. Hand off the evidence

Report:

  1. what repository evidence informed the test design;
  2. the scenario path and compiled test path;
  3. the behavior and boundaries covered;
  4. commands run and results;
  5. anything intentionally left to integration or smoke coverage.

Demonstration examples

Use these to explain the Markdown-to-code model. When applying the skill, derive all commands, fixtures, and assertions from the actual repository.

Failure handling

  • No test harness: document the nearest viable seam and ask before adding a dependency.
  • Behavior is undocumented or contradictory: preserve the evidence and ask the product owner which outcome is authoritative.
  • Failure requires subjective or human judgment: keep the deterministic portion as a scenario test and route the rest to smoke coverage.
  • Test is flaky after two focused attempts: stop, preserve logs, and report the uncontrolled input instead of adding retries.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Transform saved links, papers, articles, posts, videos, and reference collections into approachable AI teaching artifacts for later study. Use when a user wants to queue learning material, create a readable explanation from a source, teach a paper or post step by step, or run an interactive tutor that validates understanding over multiple sessions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tamdogood/builder-essential-skills2262026년 8월 17일 업데이트

Apply a disciplined engineering workflow to any code change. Use whenever implementing a feature, fixing a bug, or refactoring — before writing code, not after. Walks orient → baseline → smallest change → test → verify → self-review, and enforces language-agnostic hard gates (don't mass-reformat, keep the linter and type-checker clean, keep the build and tests green, make interface changes additive, protect security invariants).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tamdogood/builder-essential-skills2262026년 8월 17일 업데이트

Create truthful, human-centered marketing campaigns for an app or product, including positioning, channel copy, original artwork, editable layouts, README banners, and selective website integration. Use when asked to make launch materials, promotional artwork, social assets, campaign kits, ads, or marketing content from an existing product; to adapt a visual reference without copying it; or to add approved campaign art to product surfaces. Do not invent claims, fake UI, publish, deploy, or replace product proof without explicit evidence and authorization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tamdogood/builder-essential-skills2262026년 8월 17일 업데이트

Create or update a complete repository skill from a user's idea, including the workflow instructions, references, scripts or assets, agent metadata, skill-card artwork, cinematic banner artwork, README links, discovery metadata, and validation. Use when the user asks to create a new skill, add a skill to this collection, turn a workflow into a reusable skill, or make a skill's documentation and artwork consistent with the repository.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tamdogood/builder-essential-skills2262026년 8월 17일 업데이트

lead

무료

Use when the user asks to run or continue an autonomous build: turn a goal into an approved plan, dispatch implementation and review agents, and finish with one pull request. The Lead is a provider-neutral orchestrator that makes decisions but never writes code, edits files, runs commands, or reviews its own work.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tamdogood/builder-essential-skills2262026년 8월 17일 업데이트

Provider-neutral deep-research orchestration for brainstorming, technology choices, comparisons, and state-of-the-art surveys. The Research Lead makes scope and decision calls while native subagents scout, search, verify, synthesize, audit, write, and commit every research artifact.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tamdogood/builder-essential-skills2262026년 8월 17일 업데이트

tamdogood의 스킬 모두 보기

이 스킬의 문제 신고