# Test Task Dynamic Id

> Test if we can dynamically set CLAUDE_CODE_TASK_LIST_ID

- Skill: `majiayu000/test-task-dynamic-id` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/test-task-dynamic-id`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/test-task-dynamic-id/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/test-task-dynamic-id

---


# Test: Dynamic Task List ID Setting

**Objective**: Can we change CLAUDE_CODE_TASK_LIST_ID dynamically within a skill?

## Instructions

1. Check current CLAUDE_CODE_TASK_LIST_ID
2. List current tasks (baseline)
3. Try to set CLAUDE_CODE_TASK_LIST_ID via export
4. Create a task AFTER setting the env var
5. Check if task goes to new list or same list
6. Write results

## Output

Write to: `earnings-analysis/test-outputs/task-dynamic-id-result.txt`

Execute these exact steps:

```bash
# Step 1: Check current env
echo "BEFORE: CLAUDE_CODE_TASK_LIST_ID=$CLAUDE_CODE_TASK_LIST_ID"

# Step 2: Set new ID
export CLAUDE_CODE_TASK_LIST_ID="dynamic-test-list"

# Step 3: Verify it's set in bash
echo "AFTER EXPORT: CLAUDE_CODE_TASK_LIST_ID=$CLAUDE_CODE_TASK_LIST_ID"
```

Then use TaskList to see current tasks.
Then use TaskCreate to create: "DYNAMIC_ID_TEST_TASK"
Then use TaskList again.

Report:
- Did the env var change affect which task list is used?
- Can tasks be isolated by dynamically setting the ID?

