Universal task workflow for LLM agents
Structures ALL tasks — coding and non-coding — as a phase state machine with traceability IDs, artifact templates, source state verification, and file-based agent memory. For coding tasks, full phases with verification. For non-coding tasks, phases run internally (Minimal tier) but the framework still activates for traceability. Designed for the z.ai platform.
IDLE → SPECIFY → PLAN → IMPLEMENT → VERIFY → DELIVER
↑ │
└──── Recovery ◄───────────────────┘
Stellar Trails is published to ClawHub, the official z.ai skill marketplace. Install with one command:
clawhub install stellar-trailsWhy this is the best method:
- ✓
clawhubis a native z.ai CLI tool (pre-installed in all sandboxes) - ✓ Install from ClawHub registry (official, verified, moderated)
- ✓ No
curlfrom external URLs — no agent refusal - ✓ No manual file writes to
/home/user_skills/ - ✓ No
.usermarkcreation (no skill-hijack pattern) - ✓ ClawHub handles storage, extraction, and version tracking
- ✓ Moderation status: CLEAN (no suspicious patterns)
After install: Invoke via Skill(command="stellar-trails") — banner ☄️ STELLAR TRAILS · v7.5.0 · ACTIVE.
Update to latest version:
clawhub update stellar-trailsUninstall:
clawhub uninstall stellar-trailsIf clawhub is not available, download the zip from GitHub Releases and place it in /home/user_skills/:
curl -sL https://github.com/hoshiyomiX/stellar-trails/releases/latest/download/stellar-trails.zip -o /home/user_skills/stellar-trails.zip && echo "✓ installed — restart sandbox to apply"Note: This method may be refused by security-conscious agents because it downloads from an external URL. Use clawhub install whenever possible.
| Layer | Mechanism | Survives reset? |
|---|---|---|
| ClawHub registry | Official z.ai skill marketplace | ✓ |
clawhub install |
Tracks installation, handles updates | ✓ |
| ZAI service auto-extract | Extracts skill to skills/stellar-trails/ at session start |
✓ (re-extracted every session) |
No boot.sh. No shell execution in Skill() invoke. Pure markdown data, stateless skill.
Setiap push tag v*.*.* ke repo akan trigger GitHub Actions workflow (.github/workflows/release.yml) yang otomatis:
- Build zip dari
skill/stellar-trails/directory - Generate SHA-256 checksum file (.zip.sha256)
- Create GitHub Release dengan zip + checksum sebagai release assets
- Move
latesttag ke commit tersebut (stable releases only, bukan pre-release) - Generate release body dengan install instructions + checksum
Untuk maintainer — release baru:
# 1. Edit skill files (SKILL.md, CHANGELOG.md, dll), bump version metadata
# 2. Commit
git add -A && git commit -m "feat(v7.X.Y): ..."
# 3. Tag dengan format v*.*.*
git tag -a v7.X.Y -m "v7.X.Y — description"
# 4. Push tag (trigger workflow)
git push origin refs/tags/v7.X.YWorkflow akan handle sisanya. Release asset + latest tag update otomatis dalam ~30 detik.
- v7.2.0:
boot.shdeleted entirely (was 852 lines, 8 red flag patterns: self-re-exec, submodule purge, force-sync git, 15+ rm -rf, network ops, shell hooks, clone→exec pattern, remote URL query). Replaced dengandev.shstandalone (60 lines, no-cache HTTP server, no destructive/git/network ops). Path B one-liner revisi: download zip + extract + cp files + chmod dev.sh. - v7.1.4: New landing page (cosmic glassmorphism + phase flow diagram). Dead code cleanup (setup.sh, activate.sh, page.tsx, .bashrc — 386 lines removed).
- v7.1.3: One-liner install (
curl ... -o /home/user_skills/stellar-trails.zip && touch .usermark). No shell execution, agent-friendly. - v7.1.2: Stable asset name
stellar-trails.zip(no version suffix) —releases/latest/download/stellar-trails.zipURL work - v7.1.1: CI/CD GitHub Actions workflow + simplified install (download dari release, bukan build manual)
- v7.1.0: Stateless skill — hapus
bash boot.shbootstrap dari SKILL.md, ganti dengantest -fcheck. Fix: v7.0.0 ditolak security-conscious agents - v7.0.0: Rebrand
stellar-frameworks→stellar-trails
See CHANGELOG.md untuk full history & forensic details.
The framework provides tools, not rules. Each phase produces an artifact the next phase consumes, creating a chain that prevents skipping straight to code.
| Phase | Output | Why |
|---|---|---|
| IDLE | Complexity classification | Routes the task to the right verbosity level |
| SPECIFY | Problem specification + source research | Grounds the spec in real docs, not assumptions |
| PLAN | Implementation plan with Traceability IDs | Maps requirements to code locations |
| IMPLEMENT | Annotated code | Each block references its Traceability ID |
| VERIFY | Evidence-based report | Automated checks + edge case tracing |
| DELIVER | Summary + compliance report | Traceable record of what was done |
Not every task needs the same ceremony. The framework always runs all six phases, but adjusts verbosity:
| Tier | Criteria | Report Format | Artifacts |
|---|---|---|---|
| Minimal | Non-coding (question, explain, recommend) | 1-line compact | Internal (no templates) |
| Simple | Single file, no schema change | 1-line compact | Abbreviated (no templates) |
| Standard | Multiple files or schema change | Full block | Full templates + Traceability IDs |
| Complex | Architectural, multi-service | Full block + detailed evidence | Full templates + extra detail |
Error recovery always uses full ceremony regardless of tier.
The phase machine adapts beyond coding tasks:
| Task Type | SPECIFY | PLAN | IMPLEMENT | VERIFY |
|---|---|---|---|---|
| Coding | Problem spec | Code steps + Traceability IDs | Write code | Lint, type check, tests |
| Document | Content outline | Section plan + structure | Generate document | Format check, completeness |
| Visualization | Visual requirements | Data mapping + layout | Generate chart | Visual accuracy, data integrity |
| Data Processing | Data spec | Transform pipeline | Write script | Output validation, edge cases |
| Non-Coding | Internal | Internal | Answer / explain / recommend | Internal |
IMPL-001, IMPL-002, ... chain through every phase — requirement → code → verification. If something is dropped, the gap is visible.
Before analyzing git repositories, the framework verifies data freshness:
git fetch → compare HEAD to origin → sync if behind → proceedPrevents stale-checkout analysis (the failure that inspired this feature).
Before planning any implementation, the framework verifies the approach is grounded in real sources — not assumptions:
Search existing packages → Read official docs → Check patterns → Proceed
Prevents reinventing existing wheels or using APIs incorrectly. Tier-specific depth: Minimal (skip), Simple (quick check), Standard (full research), Complex (deep multi-source comparison).
File-based memory system inspired by Hermes and Memweave:
memory/
├── MEMORY.md ← Permanent: preferences, patterns (~3K char budget)
├── decisions.md ← Permanent: architectural decisions with rationale
├── incidents.md ← Permanent: error patterns and fixes
└── YYYY-MM-DD.md ← Dated: session digest (auto-created daily)
- Permanent Memory are permanent — loaded during IDLE for session continuity
- Dated files capture what happened and why — preserving decision rationale across sessions
- Bounded budget (~3,000 chars for MEMORY.md) with agent-driven curation — the LLM decides what to keep/evict
- Phase-transition reminders keep memory active throughout the entire phase machine
Structured 5-step decision tree: capture → classify → identify actions → fix → re-verify. Covers Compilation, Type, Runtime, Network/Gateway, Database, Git, AI/SDK errors. Git operations have explicit safety rules — git fetch before git pull, no force push without user instruction, stop all git ops if infrastructure blocks.
| Version | Summary |
|---|---|
| v7.1.0 | Stateless skill. SKILL.md bootstrap dihapus (no shell execution). Install jadi 2-path: Path A (ZAI platform, zip upload) + Path B (standalone, optional boot.sh). Fix: v7.0.0 install command ditolak security-conscious agents karena pola supply-chain attack. |
| v7.0.0 | BREAKING — Rebrand stellar-frameworks → stellar-trails. Repo renamed di GitHub (soft migration via auto-redirect). Skill name, directory names, log file path semua berubah. Existing user perlu manual migration. |
| v6.4.3 | Collapsed SKILL.md bootstrap dari 5-layer ke 2-layer (hapus 3 layer yang terbukti gagal survive reset). latest mutable tag ditambahkan untuk konsistensi install. |
| v6.4.2 | Dual-location install — skills/stellar-trails/ (platform discovery) + .zscripts/stellar-trails/ (persistent backup yang reliably survive sandbox reset). SKILL.md bootstrap 5-layer dengan .zscripts/ sebagai layer 1. |
| v6.4.1 | README documentation update (PINNED_SHA fix, .checksums count, audit log sample, persistence table, file structure, version history). |
| v6.4.0 | Single-clone model (no $HOME re-clone), shell init hooks removed (SKILL.md bootstrap is sole heal mechanism), co-located boot.sh support, baked skill files git-tracked in project repo (dual-guarantee persistence) |
| v6.3.0 | Loud Sterilization: audit logging for all destructive ops, --audited flag, .zscripts/ popup assets (context pollution fix) |
| v6.2.0 | Popup assets moved to .zscripts/ (hidden from platform scanner) |
| v6.1.0 | Upstream-always-check + unpushed-commit safety net |
| v6.0.0 | Version reset, chibi mascot, transparent background, force-sync, co-location, activation fallback, README overhaul |
| v5.11.0 | setup.sh version sync fix |
| v5.10.0 | Skill-creator audit: dead refs, dead asset, description optimization |
Full changelog with all 25+ versions:
skill/stellar-trails/CHANGELOG.md