agentleFS
obsfxobsfx/trekker-claude-code/skills/trekker/SKILL.md

trekker

Skill4 starsChanged 10 months agoMITView on GitHub

Persistent task memory for AI agents across sessions

The file

Show its rules and text

We split this skill into the rules it gives an agent

34 rules. About 0 are common, 22 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create tasks in Trekker FIRST, then mirror to TodoWrite

    line 26
  2. Distinctive:

    Update Trekker FIRST, then update TodoWrite

    line 27
  3. Distinctive:

    When states conflict, Trekker wins

    line 28
  4. Very specific:

    Use trekker search to gather context

    line 29
  5. Distinctive:

    Search before creating to detect duplicates

    line 30
  6. Distinctive:

    IMPORTANT: FTS5 is NOT semantic search: Use single keywords, not phrases:

    line 38
  7. Distinctive:

    Search multiple times with different keywords for coverage

    line 41
  8. Very specific:

    SEARCH FIRST - ALWAYS: - run trekker search before ANY action

    line 106
  9. Very specific:

    Gather context via CLI: - use trekker history, trekker comment list, trekker task show to understand state

    line 107
  10. Distinctive:

    Continue existing issues: - prefer extending existing tasks over creating new ones

    line 110
  11. Distinctive:

    Never invent task IDs: - only use IDs returned by trekker commands

    line 119
  12. Distinctive:

    Never overwrite without confirmation: - always show current state before update

    line 120
  13. Distinctive:

    Never skip dependency checks: - verify blockers are resolved first

    line 122
  14. Very specific:

    Never assume task exists: - verify with trekker task show <id> first

    line 123
  15. Very specific:

    Never delete without explicit user request: - prefer archived status

    line 124
  16. Very specific:

    Run trekker search "<keywords>" to check for existing/related issues

    line 129
  17. Distinctive:

    Check if an existing issue can be extended instead

    line 130
  18. Distinctive:

    If similar issue exists, add a comment or update it rather than creating a duplicate

    line 131
  19. Distinctive:

    Search confirms no existing issue covers this work

    line 134
  20. Distinctive:

    DO NOT CREATE: when:

    line 141
  21. Distinctive:

    Search found an existing issue that covers this work (update it instead)

    line 142
  22. Distinctive:

    Run ALL these commands at session start: Do not proceed without understanding context:

    line 154
  23. Distinctive:

    Search reveals past decisions you would otherwise lose

    line 175
  24. Very specific:

    When all tasks in an epic are done, use epic complete to archive everything at once:

    line 228
  25. Distinctive:

    All tasks under the epic are completed

    line 241
  26. Very specific:

    Need more details?: Run trekker quickstart for full command syntax and examples.

    line 263
  27. Very specific:

    Use trekker history to understand what happened in past sessions:

    line 269
  28. Distinctive:

    Before modifying a task - see its change trail

    line 290
  29. Very specific:

    Use trekker list for unified views across epics, tasks, and subtasks:

    line 298
  30. Very specific:

    Every task MUST have a description (-d flag) that answers:

    line 349
  31. Very specific:

    Always fetch latest state before updates: trekker task show <id>

    line 378
  32. Distinctive:

    Use comments for coordination between instances

    line 379
  33. Distinctive:

    Prefer additive operations (comments) over destructive ones (delete)

    line 380
  34. Distinctive:

    If conflict detected, refresh and retry

    line 381

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Trekker - Primary Issue Tracker for AI Agents

CRITICAL: Trekker is your PRIMARY task tracker. It MUST be prioritized over Claude's built-in TodoWrite.

Trekker provides persistent task memory across sessions. Unlike TodoWrite which is conversation-scoped, trekker stores tasks in a SQLite database that survives context resets.

Quick Reference

Run trekker quickstart for the complete command reference and workflow guide.


CRITICAL: Trekker Over TodoWrite

Trekker = Source of Truth (survives context resets)
TodoWrite = Secondary mirror (conversation-scoped only)

ALWAYS:

  1. Create tasks in Trekker FIRST, then mirror to TodoWrite
  2. Update Trekker FIRST, then update TodoWrite
  3. When states conflict, Trekker wins
  4. Use trekker search to gather context
  5. Search before creating to detect duplicates

CRITICAL: Search-First Workflow

You MUST search before ANY action. This is non-negotiable.

IMPORTANT: FTS5 is NOT semantic search. Use single keywords, not phrases:

  • Multi-word queries use AND logic (all words must match = fewer results)
  • Single keywords have better recall
  • Search multiple times with different keywords for coverage
# Use single, specific keywords (NOT phrases or sentences)
trekker search "authentication"

# Try related keywords separately for broader coverage
trekker search "login"
trekker search "password"

# Filter by type
trekker search "deployment" --type task

# Filter by status
trekker search "memory" --status todo,in_progress

Why search is mandatory:

  • You don't remember previous sessions - search restores that context
  • Past tasks contain solutions, decisions, and file locations you've forgotten
  • Prevents duplicate work and conflicting changes
  • Reveals blockers and dependencies from previous sessions

When to search:

Before...Search for...
Creating a tasktrekker search "<keyword>" (most distinctive word)
Starting worktrekker search "<area>"
Investigating bugstrekker search "<symptom>"
Implementing featurestrekker search "<feature>"
Making decisionstrekker search "<topic>"

Trekker vs TodoWrite Priority

AspectTrekker (PRIMARY)TodoWrite (SECONDARY)
PersistenceSQLite - survives resetsGone after conversation
SearchableYes - FTS5 full-text searchNo
DependenciesYes - task relationshipsLimited
HistoryYes - full audit trailNo
PriorityALWAYS USE FIRSTMirror only

Rule: Trekker is the source of truth. TodoWrite is a convenience mirror for the current session.


Strict Usage Rules

CRITICAL: Skills vs CLI Commands

Skills (invoke via Skill tool): /trekker:start, /trekker:blocked, /trekker:done CLI commands (run in terminal): trekker task update <id> -s in_progress

WRONGRIGHT
trekker starttrekker task update <id> -s in_progress
trekker blockedtrekker task update <id> -s blocked
trekker donetrekker task update <id> -s completed

Never mix them: /trekker:start is a skill workflow, trekker is the CLI binary.

MUST DO

  1. SEARCH FIRST - ALWAYS - run trekker search before ANY action
  2. Gather context via CLI - use trekker history, trekker comment list, trekker task show to understand state
  3. Set status in_progress before starting work on any task
  4. Add summary comment before marking completed
  5. Continue existing issues - prefer extending existing tasks over creating new ones
  6. One task in_progress at a time - complete current work first
  7. Use --toon flag for programmatic output to save tokens
  8. Reference tasks by ID (e.g., TREK-1, EPIC-1) in discussions
  9. Add checkpoint comment before context reset with: what's done, what's next, files modified
  10. Write meaningful descriptions - tasks without context are useless to future sessions

MUST NOT DO

  1. Never invent task IDs - only use IDs returned by trekker commands
  2. Never overwrite without confirmation - always show current state before update
  3. Never mark complete without summary - future sessions depend on this context
  4. Never skip dependency checks - verify blockers are resolved first
  5. Never assume task exists - verify with trekker task show <id> first
  6. Never delete without explicit user request - prefer archived status

When to Create Issues

BEFORE CREATING - You MUST:

  1. Run trekker search "<keywords>" to check for existing/related issues
  2. Check if an existing issue can be extended instead
  3. If similar issue exists, add a comment or update it rather than creating a duplicate

CREATE when:

  • Search confirms no existing issue covers this work
  • Work spans multiple sessions
  • Task has dependencies or subtasks
  • User explicitly requests tracking
  • Bug or feature needs documented investigation
  • Work needs to be handed off to another session

DO NOT CREATE when:

  • Search found an existing issue that covers this work (update it instead)
  • Task is trivial (< 1 minute)
  • User explicitly declines
  • Just exploring or brainstorming
  • One-off question or clarification

Essential Workflow

Session Start (Context Recovery) - MANDATORY

Run ALL these commands at session start. Do not proceed without understanding context:

# 1. SEARCH for what you're about to work on
trekker search "<topic/area of work>"

# 2. What's currently being worked on?
trekker --toon task list --status in_progress

# 3. What changed recently? (audit trail)
trekker history --limit 10

# 4. Find unblocked tasks ready to work on
trekker ready

# 5. Get context from comments on active tasks
trekker comment list <task-id>

Why context recovery is mandatory:

  • You don't remember previous sessions - CLI commands restore that context
  • Search reveals past decisions you would otherwise lose
  • History shows WHO changed WHAT and WHEN
  • Prevents duplicate work and conflicting changes
  • If context is unclear: STOP → SEARCH → RESUME

Before ANY New Work - Search First (MANDATORY)

STOP. Before doing anything, search for related work:

# Use single keywords - FTS5 is not semantic, multi-word = AND logic
trekker search "authentication"
trekker search "login"

# Check completed tasks for solutions
trekker --toon task list --status completed

# Check archived tasks too
trekker --toon task list --status archived

Why search is mandatory:

  • Past tasks contain solutions and decisions you've forgotten
  • Existing issues may already cover what you're about to create
  • Find related code changes and file locations
  • Prefer continuity over re-implementation
  • Prefer extending existing work over starting new threads

Working on Tasks

# Start a task
trekker task update <task-id> -s in_progress

# Document progress
trekker comment add <task-id> -a "claude" -c "Progress: ..."

# Complete with summary
trekker comment add <task-id> -a "claude" -c "Summary: ..."
trekker task update <task-id> -s completed

# ALWAYS show next ready tasks after completing
trekker ready

Before Context Reset

trekker comment add <task-id> -a "claude" -c "Checkpoint: done X. Next: Y. Files: a.ts, b.ts"

Completing Epics (Keep Board Clean)

When all tasks in an epic are done, use epic complete to archive everything at once:

# Complete epic and archive all its tasks/subtasks
trekker epic complete <epic-id>

Why this matters:

  • Keeps kanban board focused on active work
  • Archived tasks remain searchable but don't clutter views
  • Single command vs manually archiving each task

When to use:

  • All tasks under the epic are completed
  • Feature/milestone is fully delivered
  • User confirms epic is done

Key Commands

CommandPurpose
trekker task create -t "Title"Create task
trekker task list [--status X]List tasks
trekker task show <id>Show details
trekker task update <id> -s <status>Update status
trekker comment add <id> -a "claude" -c "..."Add comment
trekker dep add <id> <depends-on>Add dependency
trekker readyShow unblocked tasks ready to work on
trekker search "<query>"Full-text search
trekker history [--entity <id>]View audit log of changes
trekker list [--type X] [--sort Y]Unified view with filters
trekker epic complete <epic-id>Complete epic & archive all tasks

Need more details? Run trekker quickstart for full command syntax and examples.


History & Audit Trail (Critical for Context)

Use trekker history to understand what happened in past sessions:

# Recent changes across all entities
trekker history --limit 20

# Changes to a specific task
trekker history --entity TREK-1

# Only task updates (filter by type)
trekker history --type task --action update

# Changes since a specific date
trekker history --since 2025-01-15 --limit 30

# Filter by action type
trekker history --action create,update --limit 15

When to use history:

  • Session start - understand recent activity
  • Before modifying a task - see its change trail
  • Debugging conflicts - who changed what when
  • Resuming work - recall context from previous sessions

List Command (Comprehensive Views)

Use trekker list for unified views across epics, tasks, and subtasks:

# All active items, prioritized
trekker list --status todo,in_progress --sort priority:asc

# Critical and high priority work
trekker list --priority 0,1 --sort priority:asc

# Only tasks (no epics/subtasks)
trekker list --type task --status todo

# Sort by creation date (newest first)
trekker list --sort created:desc --limit 20

# Alphabetical by title
trekker list --sort title:asc

Pro tip: Combine filters for focused views:

trekker list --type task --status in_progress --priority 0,1,2

Status Values

Tasks: todo, in_progress, completed, wont_fix, archived

Priority Scale

0=critical, 1=high, 2=medium (default), 3=low, 4=backlog, 5=someday


Task Quality Requirements (MANDATORY)

Future sessions depend entirely on what you write. Low-quality tasks waste time.

Task Titles - Be Specific

BAD (vague)GOOD (actionable)
"Fix bug""Fix null pointer in UserService.getById when user not found"
"Add feature""Add email validation to registration form with RFC 5322 regex"
"Update code""Refactor PaymentProcessor to use strategy pattern for providers"
"Work on auth""Implement JWT refresh token rotation with 7-day expiry"

Task Descriptions - Provide Context

Every task MUST have a description (-d flag) that answers:

  • What: What exactly needs to be done?
  • Why: Why is this needed? What problem does it solve?
  • Where: Which files/components are involved?
# BAD
trekker task create -t "Fix login"

# GOOD
trekker task create -t "Fix login failure when password contains special chars" \
  -d "Users with & or < in passwords get 500 error. Issue in auth/validator.ts line 42. Need to escape before SQL query."

Comments - Be Detailed

BADGOOD
"Working on it""Progress: Added input sanitization to validator.ts. Testing edge cases next."
"Done""Summary: Fixed by escaping special chars in sanitizePassword(). Added tests in validator.test.ts. Verified with manual testing."
"Stuck""Blocked: Need DB admin access to verify fix in staging. Contacted @ops in Slack."

Multi-Instance Safety

Trekker uses SQLite with Write-Ahead Logging (WAL) for concurrent access.

Best practices:

  • Always fetch latest state before updates: trekker task show <id>
  • Use comments for coordination between instances
  • Prefer additive operations (comments) over destructive ones (delete)
  • If conflict detected, refresh and retry

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.