Skip to content
cccskills
FreePublished on GitHub

write-tests

コードを分析し、テストを段階的に生成・実行

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md2.3 KB
  • LICENSE.txt5.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

<!-- syncToGlobal: true --> <!-- author: aktsmm --> <!-- repository: https://github.com/aktsmm/Agent-Customization --> <!-- license: CC BY-NC-SA 4.0 --> <!-- copyright: Copyright (c) 2025 aktsmm -->

write tests

対象コードを分析し、テストを段階的に生成・実行する。

対象(必須)

  • ファイル: (ファイルを添付 or パスを記載)
  • フレームワーク: pytest / jest / vitest / 他(指定なければ自動検出)
  • 対象ファイルまたはパスが無い場合は、広い範囲を推測せず確認して停止する

指示

Step 1: 分析(SRP)

  • テスト対象の責務を特定する(何をする関数/クラスか)
  • 入出力のパターンを洗い出す
  • 既存テストがあれば確認し、重複を避ける

Step 2: 計画(Transparency)

テストケースを書く前に計画を示す:

ケース入力例期待結果優先度
正常系......高
異常系......中
境界値......中

Step 3: 実装(Iterative)

  1. 1 ケースずつテストを書く
  2. 各テストは AAA パターン(Arrange / Act / Assert)
  3. テスト名は既存 repo と framework の命名規則を最優先する
    • pytest の例: test_<何を>_<どんな条件で>_<期待結果>
    • Jest / Vitest: 既存の describe / it / test の文体と粒度に合わせる

Step 4: 検証(Feedback Loop)

  • テストを実行して全て PASS するか確認
  • VS Code の task 実行(runTask)は使わない(確認待ちを避けるため、powershell で非対話・単発で実行する)
  • テスト実行は execute/runInTerminal を利用可(非対話・単発・timeout 指定を推奨)
  • 失敗したらその場で修正
  • カバレッジを確認(可能なら)

オプション

  • フレームワーク: pytest / jest / 他
  • モック対象: 外部 API / DB など
  • 既存テストファイル: パスを記載

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Design, review, and debug agent workflows, and decide when a request should use a prompt, instruction, skill, agent, or hook before escalating to multi-agent design. Use for .agent.md / .instructions.md / .prompt.md / AGENTS.md work, workflow architecture, orchestration planning, scheduled automation model allocation, or when agent workflows may be overkill. Triggers on 'agent workflow', 'create agent', 'automation models', 'ワークフロー設計', 'orchestrator'.

The English summary is being prepared. Showing the original description.

aktsmm/Agent-Skills26Updated Oct 19, 2026

Design, run, and review fair performance, token, and cost comparisons across GitHub Copilot CLI, Codex CLI, and direct model APIs. Use for AI CLI benchmark, Copilot vs Codex, prompt-cache diagnosis, cache read/write analysis, fresh-process latency measurement, token-cost comparison, or when a benchmark must separate provider caching from local CLI caches.

The English summary is being prepared. Showing the original description.

aktsmm/Agent-Skills26Updated Oct 19, 2026

Analyze historical VS Code GitHub Copilot Chat sessions by model, reasoning effort, AIU, time, reliability, workflow behavior, and external quality evidence, or safely prune workspace-scoped local chat history by age. Use for session analysis, repeated-task retrospectives, model evaluation, cost/performance analysis, and old session cleanup.

The English summary is being prepared. Showing the original description.

aktsmm/Agent-Skills26Updated Oct 19, 2026

Create reproducible animated infographic GIFs from structured data or measured results, with audience-language labels, explicit timing semantics, representative-frame QA, and a static fallback. Use when asked for GIF生成, animated infographic, 動的インフォグラフィック, 結果が流れる図, animated benchmark, or a blog/SNS animation whose displayed metrics must remain traceable to source data.

The English summary is being prepared. Showing the original description.

aktsmm/Agent-Skills26Updated Oct 19, 2026

Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid. Also use for Archify, interactive or animated HTML diagrams, インタラクティブ図, 動く構成図. When an editable .drawio file is required, use the draw.io workflow instead and treat Archify HTML only as a supplement.

The English summary is being prepared. Showing the original description.

aktsmm/Agent-Skills26Updated Oct 19, 2026

Generate ASCII-art text banners for terminals, READMEs, and CLI startup messages. Use when a user asks for an ASCII banner, text art, バナー, アスキーアート, or a decorative header for a script/README.

The English summary is being prepared. Showing the original description.

aktsmm/Agent-Skills26Updated Oct 19, 2026

See all skills by aktsmm

Report a problem with this skill