filalisted
Install: claude install-skill thales8461/mapa-skills
# /fila: wait for the map dependencies, then run the task
The user opens one session per task, picks model and effort, sends `/fila` and pastes the prompt of a map task. Many sessions can wait at the same time. Each one starts only when every task in its `depende` list is `feita: true` in the map.
Reply in the user's language. Helper: `node <mapa skill folder>/scripts/mapa.mjs` (below: `mapa.mjs`). The `mapa` skill folder is the sibling of this one (`../mapa`). It finds the map through `.claude/mapa.json` or `MAPA_FILE` (see the `mapa` skill).
## Step 1: receive the prompt
- `/fila` with no text: reply only "Queue on. Paste the task prompt." (in the user's language) and wait. The next message is the prompt.
- `/fila <prompt>`: go to step 2 with that text.
Run nothing from the prompt (worktree, file reads, code) before step 3 releases it.
## Step 2: identify the task
1. Save the pasted prompt, unchanged, to `fila-prompt.txt` in the session scratchpad (or a temp folder).
2. Run `mapa.mjs identify "<file>"`.
3. Read the output:
- `NOT IDENTIFIED` or `AMBIGUOUS`: ask the user which task it is, with the quoted ids as options. Do not guess.
- `WARNING: ... already marked as done`: ask whether to run it anyway.
- `PROMPT:` with an `ia` other than `claude`: say the prompt was written for another AI and ask whether to go on.
## Queue mark in the map
While waiting, the task carries `fila: 'dd/mm hh:mm'` (when it entered the queue). The map shows "Queued · waits for ...".