Automated summary
This skill debugs code-agent task execution by fetching task metadata and logs from Firestore using a URL or task ID.
Strengths
- Direct access to structured logs from Firestore to analyze execution
- Integrates orchestrator and Docker container logs for deeper diagnosis
- Automatic environment detection (dev/prod) from the URL
Limitations
- Requires access to the monorepo and associated Claude scripts
- Must not speculate without evidence from logs
- Some logs (orchestrator on mac-dev) are not remotely accessible
When you need to understand why a code-agent task failed or misbehaved, with a URL or task ID.
Do not use for tasks without debugging intent (e.g., simple status query) or when Firestore logs alone are already sufficient for basic understanding.
Security analysis
CautionWhile the skill is intended for legitimate debugging of an internal system, it involves powerful and potentially risky operations such as SSH access to other machines, reading system logs via journalctl, and inspecting Docker containers. The use of firebase-admin suggests access to production data. Though well-written with safety rules, the skill's capabilities warrant a 'caution' rating.
- •The skill includes SSH commands to remote machines (ssh home-dev journalctl...), which if misused could allow unauthorized access.
- •Uses docker commands (docker logs) to inspect containers, potentially exposing internal runtime details.
- •Instructs running a Node.js script with firebase-admin, which likely has elevated database access.
Examples
https://intexuraos.cloud/#/code-tasks/task_abc123 — what went wrong with this task?I need to investigate task_task_xyz789, it looks like it failed.Fetch logs for the task at https://dev.intexuraos.cloud/#/code-tasks/task_def456 — only show the last 50 lines.name: debug-code-task description: Use when user pastes a dev.intexuraos.cloud or intexuraos.cloud code-task URL and asks to debug, investigate, or understand what went wrong. Also use when user mentions a code task ID (task_*) with investigation intent.
Debug Code Task
Investigate code-agent task execution by fetching task metadata and logs from Firestore.
Invocation Detection
| Input Pattern | Action |
| ------------------------------------------------------- | ------------------------- |
| https://dev.intexuraos.cloud/#/code-tasks/task_* | Extract task ID, env=dev |
| https://intexuraos.cloud/#/code-tasks/task_* | Extract task ID, env=prod |
| task_<uuid> + "debug"/"investigate"/"what went wrong" | Use task ID directly |
Phase 1: Environment Detection
Parse the URL. Do NOT fetch it — hash-routed SPA returns only shell HTML.
| Signal | dev | prod |
| ------ | ---------------------- | ------------------------------ |
| URL | dev.intexuraos.cloud | intexuraos.cloud (no dev.) |
Run uname -n to confirm current machine.
Phase 2: Fetch Task Document
Extract task ID from URL hash: /#/code-tasks/{taskId} — everything after the last /.
Run from monorepo root (required for firebase-admin module resolution):
node .claude/skills/debug-code-task/scripts/fetch-task.cjs <taskId>
Print key fields as a summary table: id, status, linearIssueId, workerLocation, agentType, result.summary, error.
Phase 3: Fetch Log Lines
node .claude/skills/debug-code-task/scripts/fetch-task.cjs <taskId> --logs-only
Use --logs instead to fetch both task document and logs in one call. Pipe through head -N if user wants a subset. Logs are ordered by sequence number. Each line has format: [sequence] HH:MM:SS.mmm [source] message.
Present log lines to user. Do NOT analyze or speculate about root cause without evidence from the logs.
Phase 4: Orchestrator & Container Logs (optional, on request)
Only needed when Firestore logs are insufficient.
The orchestrator runs on the same machine as the worker. Read workerLocation from the task document (Phase 2) to determine which machine.
Orchestrator Logs
Check uname -n vs task's workerLocation. If on a different machine:
- From mac-dev → SSH to home-dev:
ssh home-dev journalctl -u intexuraos-orchestrator@pbuchman --since ... --until ... - From home-dev → cannot SSH to mac-dev. Tell the user.
| Machine | How orchestrator runs | Log command |
| ------------ | ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| home-dev | systemd (intexuraos-orchestrator@pbuchman) | journalctl -u intexuraos-orchestrator@pbuchman --since "<time>" --until "<time>" |
| mac-dev | pnpm --filter orchestrator dev in ~/deploy/intexuraos/ | Terminal output where the dev process is running. Code not auto-deployed on push. |
Derive time window from task document createdAt._seconds and completedAt._seconds:
date -d @<createdAt._seconds> '+%Y-%m-%d %H:%M:%S' # --since (subtract 1 min)
date -d @<completedAt._seconds> '+%Y-%m-%d %H:%M:%S' # --until (add 1 min)
Docker Container Logs
Containers are named claude-worker-{taskId}:
docker logs claude-worker-{taskId}
Only available while the container exists (running or exited but not yet removed). If the container is gone, Firestore log lines (Phase 3) are the only source.
Critical Rules
- NEVER WebFetch/curl the SPA URL. Data is in Firestore, not the HTML page.
- NEVER run node scripts from
/tmp.firebase-adminresolves from monoreponode_modules. - NEVER use
node -efor scripts with!. Shell escapes!— use the script file. - NEVER speculate about what went wrong. Present facts from the task document and logs. Let the user drive analysis.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/debug-code-task-mmh8qq5p/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/debug-code-task-mmh8qq5p' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/debug-code-task-mmh8qq5p/download' --output '.skill-downloads/debug-code-task-mmh8qq5p/SKILL.md.part' && mv '.skill-downloads/debug-code-task-mmh8qq5p/SKILL.md.part' '.skill-downloads/debug-code-task-mmh8qq5p/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/debug-code-task-mmh8qq5p/SKILL.md' && test -s '.skill-downloads/debug-code-task-mmh8qq5p/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/debug-code-task' && cp -R '.skill-downloads/debug-code-task-mmh8qq5p' '.claude/skills/debug-code-task'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/debug-code-task-mmh8qq5p'openskills read 'debug-code-task-mmh8qq5p'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/debug-code-task-mmh8qq5p/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.