# Write Agent

> Create or revise the core assets for an Agent Hub agent, including soul, bundle, and optional profile.

- **Type:** Skill
- **Install:** `agentstack add skill-sdwolf4103-opencode-agenthub-write-agent`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sdwolf4103](https://agentstack.voostack.com/s/sdwolf4103)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sdwolf4103](https://github.com/sdwolf4103)
- **Source:** https://github.com/sdwolf4103/opencode-agenthub/tree/main/src/skills/write-agent

## Install

```sh
agentstack add skill-sdwolf4103-opencode-agenthub-write-agent
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# write-agent

## Purpose

Author the asset set for a new Agent Hub agent role: a soul, a bundle, and optionally a profile. This skill handles direct asset authoring; HR handles staffing, sourcing, staging, and team assembly.

## Workflow

1. Gather the role's purpose, scope, runtime mode, tools, and expected collaboration pattern.
2. Decide whether the result is primarily a visible primary agent or a subagent-oriented helper.
3. Draft the soul with purpose, behavior contract, boundaries, and output style.
4. Draft the bundle JSON that binds the soul to runtime settings, permissions, skills, and model policy.
5. Optionally create or update a profile when the new bundle should be launchable as part of a named team.
6. Verify that soul, bundle, and profile references line up exactly.
7. If composition is uncertain, use scaffold helpers or assembly checks such as `agenthub new soul`, `agenthub new bundle`, `agenthub new profile`, and `agenthub start  --assemble-only`.

## Core concepts

| Asset | What it does |
|---|---|
| soul | Defines identity, behavior, boundaries, and response style |
| bundle | Connects a soul to runtime settings, skills, permissions, and agent metadata |
| profile | Groups bundles into a launchable team and may set `defaultAgent` |

## Relationship to HR

- HR is for staffing, sourcing, candidate review, staging, and package assembly.
- `write-agent` is for direct asset authoring outside the HR pipeline.
- This skill is not itself a soul, agent class, or HR worker.

## Anti-patterns

- Creating a soul without a matching bundle.
- Hard-coding a model without a user request or clear policy reason.
- Adding guards reflexively instead of matching actual risk.
- Creating circular subagent relationships.
- Treating a profile as mandatory when only a bundle is needed.

## Verification

- Confirm the bundle references the intended soul.
- Confirm every listed skill and instruction exists.
- If a profile is added, verify its bundle list and `defaultAgent`.
- Use `agenthub start  --assemble-only` when you need proof that composition succeeds.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sdwolf4103](https://github.com/sdwolf4103)
- **Source:** [sdwolf4103/opencode-agenthub](https://github.com/sdwolf4103/opencode-agenthub)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sdwolf4103-opencode-agenthub-write-agent
- Seller: https://agentstack.voostack.com/s/sdwolf4103
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
