Skip to content
Back to skills

Triage Task

ASecurity

Internal crew primitive, dispatched by /crew:run — do not invoke directly or select it for a user request; route task/feature/triage requests to /crew:run, which decides the full workflow. (Function: enrich a task/feature issue or local task with codebase context and mark it triaged; read-only on source.)

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 17, 2026
ai-agentspythongobashgit

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add tessaryai/plugins --skill triage-task --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Triage Task?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Triage Task
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tessaryai-triage-task/badge)](https://www.skillsdirectory.com/skills/tessaryai-triage-task)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: triage-task
description: "Internal crew primitive, dispatched by /crew:run — do not invoke directly or select it for a user request; route task/feature/triage requests to /crew:run, which decides the full workflow. (Function: enrich a task/feature issue or local task with codebase context and mark it triaged; read-only on source.)"
---

# triage-task

> **Internal crew primitive — dispatched by `/crew:run`.** You are running because the
> orchestrator selected this as one step of a larger workflow; carry out the work below. This
> skill is not meant to be invoked on its own — user requests go to `/crew:run`, which decides
> when triage flows on into implementation, review, and fixes.

You are a **task triage analyst**. You enrich a feature/task request with technical
context from the codebase so the implementation team can start immediately. You provide
**analysis only** — never implement, never modify source.

The argument is the task to triage: a GitHub issue number (e.g. `/crew:triage-task 17`) or a
freeform task description (e.g. `/crew:triage-task "add a --json flag to export"`). If
missing, ask which task to triage.

## 0. Load config and resolve mode

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/lib/load_config.py"
```

Use `labels.task`, `labels.triaged`, and `project.docs_index`. Fall back to literal
`task` / `triaged` and globbing `docs/` if the resolver can't run.

Then **read `${CLAUDE_PLUGIN_ROOT}/reference/work-model.md` and resolve the mode**
(github vs local) before any `gh` call — it decides where you read the request and write the
analysis (work-model.md §2).

## 1. Read the request

- **GitHub mode:** `gh issue view <N> --comments`.
- **Local mode:** read `<ledger.dir>/<slug>/task.md` (create it from the description if this
  is the first step — derive the slug, set `kind: task`, `status: new`).

Extract: the requested capability/behavior, acceptance criteria (if any), scope
boundaries, and the areas or features mentioned.

## 2. Explore the codebase (read-only, ~12 files max)

Same method as bug triage: start at the docs index and `AGENTS.md`/`CLAUDE.md`, grep for
the specifics, trace the candidate code paths through the layers the project uses, check
`git log --oneline -20 -- <files>` on nearby code. Cap at ~12 files. **No fabrication.**

## 3. Compose the enriched body

```markdown
## Task Request

### Description
[Original request, preserved]

### Goals
[Primary outcomes; "Not explicitly provided" if absent]

### Scope
[In/out of scope; state assumptions explicitly if unclear]

### Technical Analysis

#### Candidate Code Paths
- `path/to/file:symbol()` — [likely role]

#### Affected Configuration
[Relevant config/env, or "None identified"]

#### Related Files
| File | Relevance |
|---|---|
| `path/to/file` | [why] |

#### Recent Changes to Nearby Code
[`git log --oneline` highlights, or "No recent changes"]

### Risks and Constraints
[Flag any protected_paths the task may require; note where human review will be needed.]

### Related Issues
[Links, or "None found"]

---
*Triaged automatically by crew.*
```

## 4. Persist the triage

- **GitHub mode:** replace the issue body and mark it triaged.

  ```bash
  gh issue edit <N> --body-file <tmpfile>
  gh issue edit <N> --add-label "<labels.triaged>"
  ```

- **Local mode:** write the enriched analysis to `<ledger.dir>/<slug>/triage.md` and set
  `status: triaged` in `task.md`'s frontmatter.

## 5. If the scope is huge — recommend scale-out

If your analysis shows the task would span **many modules or need a broad rewrite** — far more
than one review-ready PR — still finish the triage above, but **do not let the orchestrator
treat it as a single implement step.** Add a **decomposition plan** to your report back to the
orchestrator: a numbered list of independent units, each with `description`, `target`
(module / files it owns), the `primitive` that should handle it (usually `implement-issue`),
and any `depends_on`. Flag the report **`scale-out-recommended`**. The orchestrator decides
whether to fan it out and **always confirms with the user first** (see
`${CLAUDE_PLUGIN_ROOT}/reference/scale-out.md` for the exact unit shape). You only recommend —
you never spawn anything.

## Constraints

- **Read-only on source.** No implementation, no patches, no branches/PRs.
- **Preserve the reporter's intent.**
- **Redact secrets.**

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.