Skip to content
Back to skills

Hooks Pre Task

ASecurity

Register task start and get agent suggestions.

  • 21 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 10, 2026
ai-agentsjavascriptjavabashdatabase

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned October 1, 2026

npx -y skills add monoes/monomind --skill hooks-pre-task --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hooks Pre Task?

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

Security grade badge for Hooks Pre Task
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/monoes-hooks-pre-task/badge)](https://www.skillsdirectory.com/skills/monoes-hooks-pre-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: hooks-pre-task
description: Register task start and get agent suggestions.
type: flow
---

# hooks pre-task

Register task start and get agent suggestions.

## Usage

```bash
npx monomind hooks pre-task [options]
```

## Options

| Flag | Short | Type | Required | Description |
|---|---|---|---|---|
| `--description` | `-d` | string | yes | Task description |
| `--task-id` | `-i` | string | no | Unique task ID (auto-generated if omitted) |
| `--auto-spawn` | `-a` | boolean | no | Auto-spawn suggested agents (default: false) |
| `--format` | — | string | no | Output format: `json` |

## Examples

```bash
# Register task start and get suggestions
npx monomind hooks pre-task -d "Implement user authentication"

# With explicit task ID
npx monomind hooks pre-task -i task-123 -d "Fix auth bug"

# With auto-spawn of suggested agents
npx monomind hooks pre-task -d "Implement feature" --auto-spawn

# JSON output for scripting
npx monomind hooks pre-task -d "Refactor database layer" --format json
```

## Output

The command outputs:
- **Task registration** — task ID, complexity estimate, estimated duration
- **Suggested agents** — agent type, confidence, reason
- **Potential risks** — issues to watch for
- **Recommendations** — approach suggestions

## Integration in Claude Code

Run before starting any significant task:

```bash
npx monomind hooks pre-task -d "Your task description here"
```

Then use the agent suggestions to guide your approach.

## MCP Tool

```javascript
mcp__monomind__hooks_pre-task({
  taskId: "task-123",
  description: "Implement authentication",
  autoSpawn: false,
  timestamp: Date.now()
})
```

## See Also

- `hooks post-task` — record task completion
- `hooks route` — manual agent routing
- `hooks explain` — explain routing decision

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.

Comments

Loading comments…

Newsletter

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