adr
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Feature verification (READ-ONLY, P0-P5). Use when: verifying feature behavior after deployment, validating API responses, diagnosing production issues, post-deploy smoke test. Not for: modifying data (use feature-dev), code review (use codex-review-fast), writing tests (use
$ npx -y skills add sd0xdev/sd0x-dev-flow --skill feature-verify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/feature-verifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Feature verification (READ-ONLY, P0-P5). Use when: verifying feature behavior after deployment, validating API responses, diagnosing production issues, post-deploy smoke test. Not for: modifying data (use feature-dev), code review (use codex-review-fast), writing tests (use
name: feature-verify description: "Feature verification (READ-ONLY, P0-P5). Use when: verifying feature behavior after deployment, validating API responses, diagnosing production issues, post-deploy smoke test. Not for: modifying data (use feature-dev), code review (use codex-review-fast), writing tests (use codex-test-gen), security audit (use codex-security)." allowed-tools: Read, Grep, Glob, Bash, WebFetch, Task, Skill context: fork
| Need | Use Instead | | ---- | ----------- | | Modify data or state | `/feature-dev` | | Code quality review | `/codex-review-fast` | | Generate unit tests | `/codex-test-gen` | | Security audit | `/codex-security` | | Run local tests | `/verify` | | Review test coverage | `/codex-test-review` |
⚠️ ALL OPERATIONS MUST BE READ-ONLY ⚠️ Claude independent analysis → Codex third-perspective confirmation → Integrated verdict
> **Tool safety note**: `allowed-tools` includes `Bash` for curl/log queries. Read-only enforcement is behavioral — all commands MUST be reviewed against `references/safety-rules.md` before execution. Codex independently verifies compliance at P5.
Auto-detect from `references/environments.md` configuration:
| Level | Available Resources | P3 API | P4 Observation | Confidence Cap | | ----- | ------------------- | ------ | -------------- | -------------- | | **L4** | API + Log + Metrics | Full | Log + Metrics | High | | **L3** | API + Log | Full | Log only | High | | **L2-API** | API only | Full | Response-only | Medium | | **L2-OBS** | Log only (API unreachable) | Skip | Time-window scan | Medium | | **L1** | No runtime access | Skip P3/P4 | Code review only | Low |
**Auto-detection logic** (see `references/environments.md` § Degradation Detection):
| API Status | Log System | Metrics | Level | |------------|------------|---------|-------| | Reachable | Yes | Yes | L4 | | Reachable | Yes | No | L3 | | Reachable | No | — | L2-API | | **Unreachable** | **Yes** | — | **L2-OBS** | | Unreachable | No | — | L1 |
**Fail-closed**: If Endpoint Allowlist section is missing, skip P3 (cannot call unverified endpoints). At L1, skip P3 and P4. Provide code-review-based analysis only with Low confidence. At L2-OBS, skip P3 (API unreachable); execute P4 time-window scan and background service observation only.
sequenceDiagram
participant C as Claude
participant U as User
participant API as Target API
participant Log as Log System
participant Cx as Codex
C->>C: P0: Scope & Safety
C->>C: P1: Diff-Lite Scoping
C->>U: P2: Test Charter (approve?)
U->>C: Approved
C->>API: P3: API Execute (read-only)
C->>Log: P4: Observation Correlate
C->>Cx: P5: Codex independent review
Cx-->>C: Codex verdict
C->>U: P5: Integrated Verdict ReportRead [safety-rules.md](references/safety-rules.md) and [environments.md](references/environments.md).
| Check | Method | Fail Action | | ----- | ------ | ----------- | | Environment select | `--env` flag or ask user; load from `references/environments.md` | Default to test | | Read-only confirmed | Review `references/safety-rules.md` and load the endpoint allowlist. **This row runs before any request is made** — see below | — | | API reachable | Deterministic health-check (3x, 2s timeout — see `references/environments.md`) | Unreachable + Log config → L2-OBS; Unreachable + no Log → L1 | | Deployment aligned | Compare local HEAD with deployed version | Mismatch → warn, lower confidence | | Degradation level | Check `references/environments.md` for log/metrics config | Set level (L1-L4) |
**The health check is a request, so the allowlist gates it too.** A reviewer found this skill calling the configured health endpoint *before* enforcing its own deny-all policy — which is the one request the policy could never have approved, because nothing had loaded the allowlist yet. Validate the health endpoint and its method against the allowlist first; if the allowlist is missing, or the health endpoint is not on it, **make no request** and degrade on that basis (unreachable-equivalent), recording why. "It is only a health check" is exactly the reasoning the deny-all policy exists to refuse.
Read [blackbox-testing.md § P1](references/blackbox-testing.md#p1-diff-lite-scoping).
**Scope only — no code quality judgment.**
1. Get diff: `git diff main...HEAD --name-only` (or user-provided scope) 2. Map changed files → affected endpoints → dependency chains 3. Identify L1 regression endpoints, L2 trigger cases, L3 passive targets
**Fallback**: If no git diff available, ask user for feature description and build scope manually.
**`--level` override**: If user passes `--level L2-API`, skip log/metrics cases even if configured. `--level L2-OBS` forces observation-only mode. `--level L2` defaults to `L2-API` for backward compatibility.
Read [blackbox-testing.md § P2](references/blackbox-testing.md#p2-test-charter-design).
Generate test cases dynamically from P1 results:
| Type | Goal | When | | ---- | ---- | ---- | | **L1 Regression** | Affected API returns expected results | L2-API+ (N/A for L2-OBS) | | **L2 Active Trigger** | New code path exercised, verify response | L2-API+ (N/A for L2-OBS) | | **L3 Passive Observe** | Background service running, check logs | L3+ only | | **M1 Metrics** | Metrics correctly emitted with right labels | L4 only |
**User approval gate**: Present charter table to user for confirmation before proceeding to P3. User may add/remove/modify cases.
**Prerequisites**: P2 approved, degradatio
Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Full control plane on Claude Code. Skills-only distribution for Codex CLI and other compatible agents.
Repo: sd0xdev/sd0x-dev-flow
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Architecture design and documentation. Produces 3-architecture.md with component diagrams, data flow, integration points, and architecture decisions. Reads…
Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or skills during development. Not…
Industry best practices conformance audit with mandatory adversarial debate. Produces audit artifact: verdict (OK/WARN/FAIL) + gap roadmap + debate proof. Use…
Bug fix workflow. Use when: fixing bugs, resolving issues, regression fixes. Not for: new features (use feature-dev), understanding code (use code-explore).…
Bump package and plugin version in sync. Updates package.json, .claude-plugin/plugin.json, and install-state manifest to the same version. Use when: user says…