agentleFS
catlog22catlog22/Claude-Code-Workflow/.claude/skills/team-frontend-debug/SKILL.md

team-frontend-debug

Skill2.1k starsChanged 7 months agoMITArchived repositoryView on GitHub

Frontend debugging team using Chrome DevTools MCP. Dual-mode — feature-list testing or bug-report debugging. Triggers on "team-frontend-debug", "frontend debug".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run Bash({ command: "pwd" }) → capture project_root (absolute path)

    line 70
  2. Very specific:

    All worker role_spec values MUST use <skill_root>/roles/<role>/role.md (absolute)

    line 76
  3. Distinctive:

    All browser inspection operations use Chrome DevTools MCP.

    line 82
  4. Distinctive:

    When pipeline completes, coordinator presents:

    line 146

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Debug Team

Dual-mode frontend debugging: feature-list testing or bug-report debugging, powered by Chrome DevTools MCP.

Architecture

Skill(skill="team-frontend-debug", args="feature list or bug description")
                    |
         SKILL.md (this file) = Router
                    |
     +--------------+--------------+
     |                             |
  no --role flag              --role <name>
     |                             |
  Coordinator                  Worker
  roles/coordinator/role.md    roles/<name>/role.md
     |
     +-- analyze input → select pipeline → dispatch → spawn → STOP
                                    |
         ┌──────────────────────────┼──────────────────────┐
         v                         v                       v
    [test-pipeline]          [debug-pipeline]          [shared]
     tester(DevTools)        reproducer(DevTools)      analyzer
                                                       fixer
                                                       verifier

Pipeline Modes

InputPipelineFlow
Feature list / 功能清单test-pipelineTEST → ANALYZE → FIX → VERIFY
Bug report / 错误描述debug-pipelineREPRODUCE → ANALYZE → FIX → VERIFY

Role Registry

RolePathPrefixInner Loop
coordinatorroles/coordinator/role.md——
testerroles/tester/role.mdTEST-*true
reproducerroles/reproducer/role.mdREPRODUCE-*false
analyzerroles/analyzer/role.mdANALYZE-*false
fixerroles/fixer/role.mdFIX-*true
verifierroles/verifier/role.mdVERIFY-*false

Role Router

Parse $ARGUMENTS:

  • Has --role <name> → Read roles/<name>/role.md, execute Phase 2-4
  • No --role → @roles/coordinator/role.md, execute entry router

Shared Constants

  • Session prefix: TFD
  • Session path: .workflow/.team/TFD-<slug>-<date>/
  • CLI tools: ccw cli --mode analysis (read-only), ccw cli --mode write (modifications)
  • Message bus: mcp__ccw-tools__team_msg(session_id=<session-id>, ...)

Workspace Resolution

Coordinator MUST resolve paths at Phase 2 before TeamCreate:

  1. Run Bash({ command: "pwd" }) → capture project_root (absolute path)
  2. skill_root = <project_root>/.claude/skills/team-frontend-debug
  3. Store in team-session.json:
    { "project_root": "/abs/path/to/project", "skill_root": "/abs/path/to/skill" }
  4. All worker role_spec values MUST use <skill_root>/roles/<role>/role.md (absolute)

This ensures workers spawned with run_in_background: true always receive an absolute, resolvable path regardless of their working directory.

Chrome DevTools MCP Tools

All browser inspection operations use Chrome DevTools MCP. Reproducer and Verifier are primary consumers.

ToolPurpose
mcp__chrome-devtools__navigate_pageNavigate to target URL
mcp__chrome-devtools__take_screenshotCapture visual state
mcp__chrome-devtools__take_snapshotCapture DOM/a11y tree
mcp__chrome-devtools__list_console_messagesRead console logs
mcp__chrome-devtools__get_console_messageGet specific console message
mcp__chrome-devtools__list_network_requestsMonitor network activity
mcp__chrome-devtools__get_network_requestInspect request/response detail
mcp__chrome-devtools__performance_start_traceStart performance recording
mcp__chrome-devtools__performance_stop_traceStop and analyze trace
mcp__chrome-devtools__clickSimulate user click
mcp__chrome-devtools__fillFill form inputs
mcp__chrome-devtools__hoverHover over elements
mcp__chrome-devtools__evaluate_scriptExecute JavaScript in page
mcp__chrome-devtools__wait_forWait for element/text
mcp__chrome-devtools__list_pagesList open browser tabs
mcp__chrome-devtools__select_pageSwitch active tab

Worker Spawn Template

Coordinator spawns workers using this template:

Agent({
  subagent_type: "team-worker",
  description: "Spawn <role> worker",
  team_name: <team-name>,
  name: "<role>",
  run_in_background: true,
  prompt: `## Role Assignment
role: <role>
role_spec: <skill_root>/roles/<role>/role.md
session: <session-folder>
session_id: <session-id>
team_name: <team-name>
requirement: <task-description>
inner_loop: <true|false>

## Progress Milestones
session_id: <session-id>
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
Report blockers immediately via team_msg type="blocker".
Report completion via team_msg type="task_complete" after final SendMessage.

Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
})

User Commands

CommandAction
check / statusView execution status graph
resume / continueAdvance to next step
revise <TASK-ID> [feedback]Revise specific task
feedback <text>Inject feedback for revision
retry <TASK-ID>Re-run a failed task

Completion Action

When pipeline completes, coordinator presents:

AskUserQuestion({
  questions: [{
    question: "Pipeline complete. What would you like to do?",
    header: "Completion",
    multiSelect: false,
    options: [
      { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
      { label: "Keep Active", description: "Keep session for follow-up debugging" },
      { label: "Export Results", description: "Export debug report and patches" }
    ]
  }]
})

Specs Reference

  • specs/pipelines.md — Pipeline definitions and task registry
  • specs/debug-tools.md — Chrome DevTools MCP usage patterns and evidence collection

Session Directory

.workflow/.team/TFD-<slug>-<date>/
├── team-session.json           # Session state + role registry
├── evidence/                   # Screenshots, snapshots, network logs
├── artifacts/                  # Test reports, RCA reports, patches, verification reports
├── wisdom/                     # Cross-task debug knowledge
└── .msg/                       # Team message bus

Error Handling

ScenarioResolution
All features pass testReport success, pipeline completes without ANALYZE/FIX/VERIFY
Bug not reproducibleReproducer reports failure, coordinator asks user for more details
Browser not availableReport error, suggest manual reproduction steps
Analysis inconclusiveAnalyzer requests more evidence via iteration loop
Fix introduces regressionVerifier reports fail, coordinator dispatches re-fix
No issues found in testSkip downstream tasks, report all-pass
Unknown commandError with available command list
Role not foundError with role registry

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.