一键导入
test-first-executor
Write or update tests before (or alongside) implementation. Ensures every code change is verifiably correct before merging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write or update tests before (or alongside) implementation. Ensures every code change is verifiably correct before merging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | test-first-executor |
| description | Write or update tests before (or alongside) implementation. Ensures every code change is verifiably correct before merging. |
| triggers | ["add tests for","write a test","fix the bug in","any new function, class, or endpoint","any bug fix"] |
| references | ["tests/","AGENTS.md (Testing Expectations section)"] |
Use this skill whenever:
For this repo, tests live in tests/. Match the pattern:
tests/test_<module>.py # mirrors src module name
Test structure template:
"""Tests for <module>.<Class>."""
from __future__ import annotations
import pytest
# imports
# ── Fixtures ──────────────────────────────────────────────────────────────────
@pytest.fixture
def some_fixture():
...
# ── Happy path ────────────────────────────────────────────────────────────────
def test_<function>_<expected_outcome>():
...
# ── Edge cases ────────────────────────────────────────────────────────────────
def test_<function>_raises_on_<bad_input>():
with pytest.raises(SomeError):
...
# ── Regression ────────────────────────────────────────────────────────────────
def test_regression_<issue_description>():
# Previously this caused <symptom>. Fixed in <commit/version>.
...
Run pytest -x tests/test_<module>.py::test_<name>.
A test that passes immediately (before implementation) is not testing the right thing.
pytest -x
All pre-existing tests must still pass.
For any change to admin_auth.py, key_store.py, agent/tools.py:
pytest -x exits 0| Module | Test file |
|---|---|
proxy.py | tests/test_agent_api.py |
agent/loop.py | tests/test_agent_runner.py |
agent/tools.py | tests/test_agent_tools.py |
router/ | tests/test_model_router.py |
| new modules | tests/test_<module_name>.py |
Onboard a new client/company onto this platform's real Agentic OS: create the company record, scan its websites/repos, auto-provision specialist agents, activate its 24x7 agency runtime, and know exactly which "OS" building blocks (memory, integrations, dashboard) already exist versus which are roadmap gaps. ADAPTED FROM: a third-party giveaway skill ("agentic-os-installer" by Gennaro Santoro / Operations Heroes) that described a generic vault + Google-suite + skill-pack installer. That skill's product (Obsidian vault, Gmail/Calendar/ Drive wiring, "skill packs") does not exist in this repo and its promotional content (Skool community link) does not belong here. This is a clean-room rewrite that keeps the useful idea — "stand up a working agency OS for a client from a short checklist" — and maps every step to the real module that already implements it in this codebase, per CLAUDE.md architecture rules.
Agile sprint planning, velocity tracking, and burndown metrics for agent-managed projects
Initiative-level portfolio management with dependency tracking and milestone coordination
AI-assisted engineering impact analysis — productivity metrics and code quality insights
Cross-harness agent patterns — standardize agent execution across different coding assistants
Temporal context graph for agent memory — track entity relationships and state changes over time