# Managing Pivotal Tracker

> Use when working with Pivotal Tracker — pivotal Tracker project management covering projects, stories, epics, iterations, and velocity analytics. Use when auditing Pivotal Tracker usage, managing stories and epics, analyzing iteration velocity, or reviewing backlog health across Pivotal Tracker projects.

- Skill: `cloudthinker-ai/managing-pivotal-tracker` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cloudthinker-ai/managing-pivotal-tracker`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cloudthinker-ai/managing-pivotal-tracker/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: cloudthinker-ai (https://skillmd.com/u/cloudthinker-ai)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/cloudthinker-ai/managing-pivotal-tracker

---


# Managing Pivotal Tracker

Pivotal Tracker project management analysis via the Pivotal Tracker REST API.

## Discovery Phase

```bash
#!/bin/bash
PT_BASE="https://www.pivotaltracker.com/services/v5"

echo "=== Current User ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/me" | jq '{id, name, email, initials, kind}'

echo ""
echo "=== Projects ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects" \
  | jq -r '.[] | "\(.id)\t\(.name[0:30])\t\(.current_velocity)\tvel\t\(.iteration_length) week sprints"' | column -t

echo ""
PROJECT_ID="${1:?Project ID required}"
echo "=== Project Details ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID" \
  | jq '{name, point_scale, current_velocity, iteration_length, number_of_done_iterations_to_show, start_date}'

echo ""
echo "=== Memberships ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/memberships" \
  | jq -r '.[] | "\(.person.name)\t\(.role)\t\(.person.email)"' | column -t

echo ""
echo "=== Epics ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/epics" \
  | jq -r '.[] | "\(.id)\t\(.name[0:35])\t\(.label.name // "none")"' | column -t
```

## Analysis Phase

```bash
#!/bin/bash
PT_BASE="https://www.pivotaltracker.com/services/v5"
PROJECT_ID="${1:?Project ID required}"

echo "=== Current Iteration ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/iterations?scope=current" \
  | jq -r '.[0] | "Iteration \(.number): \(.start[0:10]) to \(.finish[0:10])\nStories: \(.stories | length)\nPoints: \([.stories[].estimate // 0] | add)"'

echo ""
echo "=== Current Iteration Stories ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/iterations?scope=current" \
  | jq -r '.[0].stories[] | "\(.id)\t\(.story_type)\t\(.current_state)\t\(.estimate // "-")pts\t\(.name[0:40])"' | column -t

echo ""
echo "=== Backlog Stories ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/stories?with_state=unstarted&limit=15" \
  | jq -r '.[] | "\(.id)\t\(.story_type)\t\(.estimate // "-")pts\t\(.name[0:40])"' | column -t

echo ""
echo "=== Velocity (last 5 iterations) ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/iterations?scope=done&limit=5&offset=-5" \
  | jq -r '.[] | "Iter \(.number)\t\(.start[0:10])\t\([.stories[] | select(.current_state == "accepted") | .estimate // 0] | add) pts accepted"' | column -t

echo ""
echo "=== Blockers ==="
curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" \
  "$PT_BASE/projects/$PROJECT_ID/stories?filter=has:blockers" \
  | jq -r '.[:10][] | "\(.id)\t\(.name[0:40])\t\(.current_state)"' | column -t
```

## Output Format

```
PIVOTAL TRACKER HEALTH: [project_name]
Velocity:       [current_velocity] pts/iteration
Sprint Length:   [n] weeks
Current Sprint:  Iteration [n]

CURRENT ITERATION
Type         State       Count  Points
feature      accepted    [n]    [n]
bug          started     [n]    -
chore        unstarted   [n]    -

VELOCITY TREND (Last 5)
Iteration    Accepted Points
[n]          [pts]

BACKLOG
Unestimated Stories:  [count]
Total Backlog:        [count] stories
Blocked Stories:      [count]
```

## Anti-Hallucination Rules

1. **NEVER assume resource names** — always discover via CLI/API in Phase 1 before referencing in Phase 2.
2. **NEVER fabricate metric names or dimensions** — verify against the service documentation or `--help` output.
3. **NEVER mix CLI commands between service versions** — confirm which version/API you are targeting.
4. **ALWAYS use the discovery → verify → analyze chain** — every resource referenced must have been discovered first.
5. **ALWAYS handle empty results gracefully** — an empty response is valid data, not an error to retry.

## Counter-Rationalizations

| Shortcut | Counter | Why |
|----------|---------|-----|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |


