terminaluse logo

terminaluse

terminaluse

terminaluse/agent-skills169installs3stars

SKILL.md

Full skill instructions

TerminalUse

Build, deploy, interact with agents. Flow: init → deploy → create task → send messages.

Full docs: https://docs.terminaluse.com/llms-full.txt

Default Rule For New Agents

When creating a new agent, use tu init by default.

Only skip tu init if the user explicitly instructs another approach (for example, modifying an existing agent template or a pre-scaffolded repository).

CLI Setup

The tu CLI is provided by the terminaluse Python package. Before running any tu commands:

  1. Verify tu is available:

    which tu || echo "tu CLI not found"
    
  2. If not installed, ask user whether they would like to install it or if there's a venv they would like to source

  3. Ensure you have auth configured:

    • Interactive/local: tu login then tu whoami
    • Non-interactive/automation: set TERMINALUSE_API_KEY (and optionally TERMINALUSE_BASE_URL)

Context Requirement

Agent-scoped commands often default to config.yaml in the current directory when --agent/--config is omitted.

Before running agent-scoped commands without explicit flags:

ls config.yaml || echo "Not in agent directory"

Use explicit flags when possible:

  • --agent <namespace/name> to avoid directory coupling
  • --config <path> when working with a specific manifest

Quick Reference

ActionCommand
Logintu login, tu whoami
Init agenttu init (creates agent directory, no need to mkdir first)
Deploytu deploy -y
List deploymentstu ls
Rollbacktu rollback
List filesystemstu fs ls
List projectstu projects ls
Add env vartu env add <KEY> -v <val> -e prod|preview|all [--secret]
Import env filetu env import <file> -e <env> [--secret KEY]
Create tasktu tasks create --filesystem-id <fs-id> -m "message" [--json]
Create task (auto-create fs)tu tasks create -p <project-id> -m "message" [--json]
Send messagetu tasks send <task-id> -m "message" [--json]
List taskstu tasks ls [--json]
Get task detailstu tasks get <task-id>

tu fs is the canonical filesystems command. tu filesystems is a supported alias. tu tasks ls <id> is deprecated for single-task retrieval; use tu tasks get <id>. Prefer --json for CI/automation and agent-to-agent interaction.

Workflows

TaskReference
Create or edit an agent./workflows/create.md
Deploy to platform./workflows/deploy.md
Test/interact with agent./workflows/interact.md

You must look at the corresponding workflow files based on user intent.

Anti-patterns

  • Creating task without filesystem or project. Tasks either need a filesystem. If project is provided, a filesystem is auto-created in the project
  • Modifying Dockerfile ENTRYPOINT/CMD → breaks deployment
  • Trying to use the agent right after updating secrets. You must wait for the new version to become active. Check with tu ls

Error Recovery

ErrorAction
Deploy failstu ls <branch> lists deployments events for branch → find FAILED → fix → redeploy
Need rollbacktu rollback

Docs/Skills Feedback

If docs or skills are wrong/unclear, ask user permission to send feedback to (include the feedback in the user request): Never include any sensitive information.

curl -X POST 'https://uutzjuuimuclittwbvef.supabase.co/functions/v1/tu-docs-feedback' \
  -H 'Content-Type: application/json' \
  -d '{"feedback":"<issue>", "page":"<page URL> or section name"}'