debug-failing-test
Debug a failing test using an iterative logging approach, then clean up and document the learning.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Debug a failing test using an iterative logging approach, then clean up and document the learning.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Entry-point live-market scan. Returns current quote, H1/H4 regime, session state, and watch levels for a default watchlist (gold, US30, US500, US100, EURUSD, GBPUSD, BTCUSD, ETHUSD) — or any custom list. Uses the free yfinance path by default, MT5 if available. USE FOR - scan markets, what's moving, market overview, current prices, what's on the watchlist, show me the markets.
Entry-point ranked-setup feed. Runs the full pair-analyze pipeline against a watchlist and returns the top N highest-grade trade setups right now, sorted by confidence × R:R, with one-line rationale and a copy-pasteable trade plan. USE FOR - what should I trade, recommend trades, best setups, top picks, ranked opportunities, where's the edge.
Entry-point skill discovery. Given a keyword or task description, returns the shortest list of Tradecraft skills that match, with direct invocation recipes. No keyword = show the 5 main entry points. USE FOR - find skill, which skill, how do I, search skills, list skills, what can this do, find command.
Entry-point strategy selector. Lists the available trading strategies with a one-line when-to-use for each, plus a deep-dive drill-down by name. Routes to the right specialist skill (ICT/SMC, breakout, scalping, swing, trend-following, mean-reversion). USE FOR - which strategy, what strategies, strategy selector, strategy list, how should I trade, pick a strategy, ICT or SMC, breakout or trend.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
Agentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
| name | debug-failing-test |
| description | Debug a failing test using an iterative logging approach, then clean up and document the learning. |
| kind | workflow |
| category | dev/testing |
| status | active |
| tags | ["debug","dev","failing","test","testing"] |
| related_skills | ["run-e2e-tests","run-integration-tests","run-pre-commit-checks","run-smoke-tests"] |
Debug a failing unit test by iteratively adding verbose logging, running the test, and analyzing the output until the root cause is found and fixed.
Repeat until the root cause is understood:
Add verbose logging around the suspicious code:
console.log('[DEBUG]', ...) with descriptive labelsRun the test and capture output
Assess the logging output:
Decide next action:
Remove ALL debugging artifacts:
console.log('[DEBUG]', ...) statements addedVerify the test still passes after cleanup
Provide a summary to the user (1-3 sentences):
Record the learning by following the learning instructions (if you have them):
When adding debug logging, use this format for easy identification and removal:
console.log('[DEBUG] <location>:', <value>);
console.log('[DEBUG] before <operation>:', { input, state });
console.log('[DEBUG] after <operation>:', { result, state });
// Added logging example:
console.log('[DEBUG] getEnvironments input:', { workspaceFolder });
const envs = await manager.getEnvironments(workspaceFolder);
console.log('[DEBUG] getEnvironments result:', { count: envs.length, envs });