# Asset Registrar

> Sweeps the `assets/` folder and registers them in `pubspec.yaml`, preventing runtime "Asset not found" crashes.

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

## Install

```sh
agentstack add skill-wajda9-flutter-agent-skills-asset-registrar
```

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

## About

## Instructions
When the developer adds new images or fonts, or complains about an "Asset not found" error:

1. Use the `list_dir` tool to check the contents of the `assets/` directory (e.g., `assets/images/`, `assets/icons/`).
2. Read the `pubspec.yaml` file.
3. Ensure that the `flutter:` section has an `assets:` block, and that the relevant folders are declared. 
   * It is highly recommended to declare the directory (e.g., `- assets/images/`) rather than individual files, to cover all contents.
4. If missing, use `replace_string_in_file` to add the required asset paths to the `pubspec.yaml`. Note that YAML indentation is strict; `assets:` must be indented under `flutter:`.
5. Run `flutter pub get` via the terminal.
6. Let the user know the assets were successfully registered and are ready to be used via `Image.asset()`.

## Source & license

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

- **Author:** [WAJDA9](https://github.com/WAJDA9)
- **Source:** [WAJDA9/flutter-agent-skills](https://github.com/WAJDA9/flutter-agent-skills)
- **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-wajda9-flutter-agent-skills-asset-registrar
- Seller: https://agentstack.voostack.com/s/wajda9
- 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%.
