Foreman Debug
VisionForge-OU/foreman
Headless root-cause debugging loop for a Foreman worker whose tests, build, or acceptance check are failing — especially on a retry.
Guide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design.
$ npx skills add tddworks/ClaudeBar --skill fix-bug -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install tddworks/ClaudeBar fix-bug --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/tddworks/ClaudeBar.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/fix-bug .claude/skills/fix-bug && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "fix-bug" agent skill from https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bug into .claude/skills/fix-bug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-bug", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bugType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add tddworks/ClaudeBar --skill fix-bug -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install tddworks/ClaudeBar fix-bug --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tddworks/ClaudeBar.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/fix-bug .agents/skills/fix-bug && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fix-bug" agent skill from https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bug into .agents/skills/fix-bug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-bug", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add tddworks/ClaudeBar --skill fix-bug -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install tddworks/ClaudeBar fix-bug --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tddworks/ClaudeBar.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/fix-bug .cursor/skills/fix-bug && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "fix-bug" agent skill from https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bug into .cursor/skills/fix-bug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-bug", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/tddworks/ClaudeBar.git --path .claude/skills/fix-bug--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add tddworks/ClaudeBar --skill fix-bug -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install tddworks/ClaudeBar fix-bug --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tddworks/ClaudeBar.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/fix-bug .gemini/skills/fix-bug && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "fix-bug" agent skill from https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bug into .gemini/skills/fix-bug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-bug", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install tddworks/ClaudeBar fix-bugInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add tddworks/ClaudeBar --skill fix-bug -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/tddworks/ClaudeBar.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/fix-bug .github/skills/fix-bug && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "fix-bug" agent skill from https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bug into .github/skills/fix-bug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-bug", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add tddworks/ClaudeBar --skill fix-bug -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install tddworks/ClaudeBar fix-bug --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/tddworks/ClaudeBar.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/fix-bug .opencode/skills/fix-bug && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "fix-bug" agent skill from https://github.com/tddworks/ClaudeBar/tree/main/.claude/skills/fix-bug into .opencode/skills/fix-bug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-bug", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
fix-bugGuide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design.
Fix Bug is an agent skill from tddworks/ClaudeBar. Guide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design. Use this skill when: (1) User reports a bug or unexpected behavior (2) Fixing a defect in existing functionality (3) User asks "fix this bug" or "this doesn't work correctly" (4) Correcting behavior that violates the user's mental model
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Debugging and Test-driven development. The repository describes itself as: A macOS menu bar application that monitors AI coding assistant usage quotas. Keep track of your Claude, Codex, Antigravity ,and Gemini usage at a glance. The licence is Apache-2.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 35486e8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
xcodebuildFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Fix Bug loads about 2.2k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 674 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from tddworks/ClaudeBar at commit 35486e8, republished under its Apache-2.0 licence (© tddworks). 674 words, ~2,214 tokens.
.claude/skills/fix-bug/SKILL.md (or your agent's skills folder).Fix bugs using Chicago School TDD, root cause analysis, and rich domain design.
┌─────────────────────────────────────────────────────────────┐
│ 1. REPRODUCE & UNDERSTAND │
├─────────────────────────────────────────────────────────────┤
│ • Reproduce the bug │
│ • Identify expected vs actual behavior │
│ • Locate the root cause in code │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ 2. WRITE FAILING TEST (Red) │
├─────────────────────────────────────────────────────────────┤
│ • Write test that exposes the bug │
│ • Test should FAIL before fix │
│ • Test should verify CORRECT behavior │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ 3. FIX & VERIFY (Green) │
├─────────────────────────────────────────────────────────────┤
│ • Implement minimal fix │
│ • Test now PASSES │
│ • All existing tests still pass │
└─────────────────────────────────────────────────────────────┘For a provider that shows the wrong thing or fails:
~/Library/Logs/ClaudeBar/ClaudeBar.log (info and above) — which data source answered, which step failed (lookup · fetch · mapping); debug goes to OSLog only (troubleshooting).account.lastFailedStep and lastError say whether the key, the request or the reading broke — fix that piece.Read the design in order — USER_JOURNEYS, CANONICAL_MODEL, TARGET_ARCHITECTURE,
then the feature's or provider's design.md. The design docs are the source of truth (AGENTS.md).
A bug is usually a law in CANONICAL_MODEL.md §5 (or a feature's
design.md) that the code breaks: find the law and its one owner, and fix it there, not
at a call site. If the right fix changes a law or moves it to another owner, that is a
design change: update the doc and ask the user to confirm before fixing. If no law covers
it, propose the law first.
Reference: MODULAR_DESIGN.md (modules) · TARGET_ARCHITECTURE.md (how a provider runs) · ARCHITECTURE.md (the app layers)
Find which module the behaviour lives in before you change it: the table in implement-feature → Architecture is the one map (where each thing lives, and where its tests go).
A bug or improvement in a provider is made in its JSON (or its mapping
script), or generically in DataSources — never with vendor-named Swift, and
never with a line in ClaudeBarApp that names it (providers are found by
ProviderCatalog.detect()). Modules never import Domain.
Check if the bug violates domain invariants that should be maintained:
// Example: QuotaMonitor should maintain selection invariants
// - selectedProviderId should always point to an enabled provider
// - Domain should be self-validating (no external "ensure" calls needed)Name each test should <outcome> [when <situation>], in the person's words, never a method, type or mechanism verb → Naming tests.
We follow Chicago School TDD (state-based testing):
verify() calls - assert on resulting state insteadTest the CORRECT behavior, not the bug:
@MainActor
@Suite
struct {Component}Tests {
@Test func `should {correct outcome} when {the situation that showed the bug}`() async throws {
// Given - the response that triggers the bug, captured from the real CLI/API
let stub = try StubbedProvider(providerId: "codex")
defer { stub.cleanUp() }
stub.answerRPC(#"{"id":2,"result":{"rateLimits":{"primary":{"usedPercent":30,"windowDurationMins":10080}}}}"#)
// When - the real definition reads it
let usage = try await stub.make("codex").refreshPlain()
// Then - assert EXPECTED behavior (will FAIL before fix)
#expect(usage.quota(for: .session)?.windowDuration == 7 * 86400) // the window the provider stated
}
}The test goes beside the code it pins (the table in Phase 1). For a migrated
provider, add the captured response to its golden tests in
Modules/Providers/Tests/; for a generic worker, to Modules/DataSources/Tests/.
tuist test Providers # one module's tests while working (schemes: Providers, DataSources, Domain, Infrastructure, AppTests, AcceptanceTests)
# tuist caches results; one suite for real, and the final check of everything:
xcodebuild test -workspace ClaudeBar.xcworkspace -scheme ClaudeBar-Workspace \
-destination 'platform=macOS,arch=arm64' -only-testing:ProvidersTests/ClaudeAPITests
xcodebuild test -workspace ClaudeBar.xcworkspace -scheme ClaudeBar-Workspace -destination 'platform=macOS,arch=arm64'DataSources that every definition gains — never a branch on a provider's idWhen fixing domain bugs, ensure:
// 1. Domain maintains its own invariants
public init(...) {
// Validate on construction
selectFirstEnabledIfNeeded() // Called internally, not externally
}
// 2. Public API hides implementation details
public func setProviderEnabled(_ id: String, enabled: Bool) {
provider.isEnabled = enabled
if !enabled {
selectFirstEnabledIfNeeded() // Private - called automatically
}
}
// 3. Private methods for internal invariant maintenance
private func selectFirstEnabledIfNeeded() { ... }Run the same suite again (it should PASS now), then the full xcodebuild test
(tuist test skips cached targets). Then the docs in the same change: a
provider's README.md Gotchas when the person can hit it, its design.md
when the reading changed, and the CHANGELOG line.
xcodebuild test green## [Unreleased] in CHANGELOG.md, under its heading (Fixed / Changed): the effect in the person's words, ≤300 characters, an absolute issue or PR link© tddworks, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/fix-bug of tddworks/ClaudeBar.
Open the folder on GitHubat commit 35486e8
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in tddworks/ClaudeBar, which our catalogue first saw on October 7, 2026.
Fix Bug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Fix Bug this skilltddworks/ClaudeBar | 1.5k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| Foreman DebugVisionForge-OU/foreman | 444 | — | ~1.1k | Automated safety check: Pass | Custom licence | |
| Deck Reproasheshgoplani/agent-deck | 1k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Bug Fix TDDstacklok/toolhive-studio | 170 | — | ~1.7k | Automated safety check: Notes | Apache-2.0 | |
| TDD Py4vaspvasp-dev/py4vasp | 100 | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Opsmill Dev Test Driving Bugsopsmill/infrahub | 529 | — | ~4k | Automated safety check: Pass | Apache-2.0 |
VisionForge-OU/foreman
Headless root-cause debugging loop for a Foreman worker whose tests, build, or acceptance check are failing — especially on a retry.
asheshgoplani/agent-deck
Reproduce agent-deck bugs from an issue, transcript excerpt, or description in an isolated environment, and prove fixes with the same reproduction and a regression test.
stacklok/toolhive-studio
Reproduce and fix bugs using TDD. An agent skill from stacklok/toolhive-studio.
vasp-dev/py4vasp
Carry out ONE chunk of a py4vasp change test-first: RED (watch the test fail for the right reason) → GREEN → refactor → one local commit.
opsmill/infrahub
Writes a single failing test that reproduces a bug after its root-cause analysis is complete, before any fix is written.
ruby-git/ruby-git
Follows a strict Test-Driven Development (TDD) workflow with four phases: triage, prepare, execute, and finalize.
tddworks/ClaudeBar
Add an AI provider to ClaudeBar as a JSON definition run by the one generic Provider and DataSource.
tddworks/ClaudeBar
Guide for adding new report cards to ClaudeBar that analyze local data sources and display metrics with comparison deltas.
tddworks/ClaudeBar
Manage ClaudeBar's GitHub Actions CI/CD pipelines: build, test, and release workflows.
tddworks/ClaudeBar
Guide for implementing features in ClaudeBar following architecture-first design, TDD, rich domain models, and Swift 6.2 patterns.
tddworks/ClaudeBar
Guide for making improvements to existing ClaudeBar functionality using TDD.
Categories
Guide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design. Fix Bug is an agent skill from tddworks/ClaudeBar. Guide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design.
Fix Bug fits situations like: user reports a bug; unexpected behavior; fixing a defect in existing functionality; user asks fix this bug.
Run `npx skills add tddworks/ClaudeBar --skill fix-bug -a claude-code`. Or copy the skill folder (.claude/skills/fix-bug in tddworks/ClaudeBar) into .claude/skills/fix-bug in your project. Claude Code loads it when a task matches its description.
Run `npx skills add tddworks/ClaudeBar --skill fix-bug -a codex`. Or copy the skill folder (.claude/skills/fix-bug in tddworks/ClaudeBar) into .agents/skills/fix-bug in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tddworks/ClaudeBar --skill fix-bug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-bug, .gemini/skills/fix-bug, .github/skills/fix-bug and .opencode/skills/fix-bug in your project.
Going by SKILL.md and its folder, Fix Bug needs the command-line tools its instructions call (xcodebuild).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Fix Bug is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Fix Bug: Foreman Debug (VisionForge-OU/foreman, 444 stars), Deck Repro (asheshgoplani/agent-deck, 1k stars), Bug Fix TDD (stacklok/toolhive-studio, 170 stars) and TDD Py4vasp (vasp-dev/py4vasp, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
tddworks (a GitHub organization) maintains it in tddworks/ClaudeBar, which has 1,527 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: tddworks/ClaudeBar on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.