Agent skill
test-trade-earnings-pattern
Test task dependencies for tradeEarnings workflow pattern
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/test-trade-earnings-pattern
SKILL.md
Test: tradeEarnings Workflow Pattern with Task Dependencies
Objective: Create tasks matching the tradeEarnings workflow and verify dependency structure.
Workflow Pattern
Wave 1 (Parallel):
├── news-impact (no deps)
└── guidance-inventory (no deps)
│
▼
Wave 2:
└── prediction (blocked by news-impact AND guidance-inventory)
│
▼
Wave 3:
└── attribution (blocked by prediction)
Instructions
Step 1: Create Tasks
Create these 4 tasks with TaskCreate:
-
Subject: "AAPL-Q1: News Impact Analysis" Description: "Analyze news sentiment and events around AAPL Q1 earnings" ActiveForm: "Analyzing news impact"
-
Subject: "AAPL-Q1: Guidance Inventory Update" Description: "Update cumulative guidance inventory with Q1 data" ActiveForm: "Building guidance inventory"
-
Subject: "AAPL-Q1: Earnings Prediction" Description: "Predict stock direction at T=0 using PIT data" ActiveForm: "Making prediction"
-
Subject: "AAPL-Q1: Earnings Attribution" Description: "Analyze why stock moved after earnings (T+1)" ActiveForm: "Attributing movement"
Step 2: Set Up Dependencies
Using TaskUpdate with addBlockedBy:
- Task 3 (prediction) blocked by tasks 1 AND 2
- Task 4 (attribution) blocked by task 3
Step 3: Verify Structure
Run TaskList and TaskGet for each task to verify:
- Tasks 1 and 2 have NO blockers (can run parallel)
- Task 3 blocked by 1 and 2
- Task 4 blocked by 3
Step 4: Simulate Execution
- Mark tasks 1 and 2 as in_progress (simulating parallel execution)
- Mark tasks 1 and 2 as completed
- Verify task 3 is now unblocked
- Mark task 3 as in_progress, then completed
- Verify task 4 is now unblocked
- Mark task 4 as completed
Output
Write to: earnings-analysis/test-outputs/trade-earnings-pattern-result.txt
Format:
TEST: trade-earnings-pattern
TIMESTAMP: {ISO timestamp}
TASK STRUCTURE CREATED:
[List all 4 tasks with their IDs]
DEPENDENCY VERIFICATION:
- Task 1 (news-impact): [no blockers] ✓
- Task 2 (guidance): [no blockers] ✓
- Task 3 (prediction): [blocked by #1, #2] ✓
- Task 4 (attribution): [blocked by #3] ✓
EXECUTION SIMULATION:
Wave 1 Start: Tasks 1,2 marked in_progress
Wave 1 Complete: Tasks 1,2 marked completed
Task 3 Status: [should show unblocked]
Wave 2 Start: Task 3 marked in_progress
Wave 2 Complete: Task 3 marked completed
Task 4 Status: [should show unblocked]
Wave 3 Complete: Task 4 marked completed
FINAL TASK LIST:
{TaskList output showing all 4 completed}
CONCLUSION: tradeEarnings pattern {WORKS|FAILED}
Return summary of findings.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?