humansys/raise/rai-docs-setup
Claude Code and agent skill by humansys/raise
- community
Checking that the SKILL.md file is still in the repository.
'Configure the docs adapter for all RaiSE skills in one session — docs
Install
npx vskill@latest install humansys/raise/rai-docs-setupSKILL.md
Docs Setup
Purpose
Configure .raise/docs.yaml para 1 o 2 espacios de Confluence en una sola sesión conversacional. Configuración recomendada: 2 espacios (governance + work) — routing automático sin --target. Currently supported backend: Confluence.
Mastery Levels (ShuHaRi)
- Shu: Follow all steps in order; detect existing config, recommend 2-space, show routing map per target at the end
- Ha: Detect config, run 2-space flow or
--append; verify withrai doctor - Ri (2-space, mismo site):
rai adapter setup confluence --site {site} --instance {prefix}-governance --space {GOV} --yes --structure governance && rai adapter setup confluence --site {site} --instance {prefix}-work --space {WORK} --yes --structure work --append && rai docs search "{GOV}"
When to use this skill
| Need | Skill | |
|---|---|---|
| Configure docs adapter (Confluence, routing automático) | This skill (rai-docs-setup) | |
| Configure backlog adapter (Jira, custom fields, statuses) | rai-backlog-setup | |
| Configuración avanzada (routing custom por artefacto) | rai-docs-setup-advanced | |
| Configure both at once (legacy) | rai-adapter-setup (deprecated) |
Use this skill after rai init, when setting up the docs adapter, or when /rai-doctor reports missing docs adapter config.
When to skip: rai docs search "test" returns results without error — adapter already configured. Use --overwrite to regenerate.
Context
Prerequisites: CONFLUENCE_URL + CONFLUENCE_API_TOKEN + CONFLUENCE_USERNAME must exist in ~/.rai/.env or .env in the project root. rai init complete.
Steps
Step 0: Credential Gate
Check that all three credentials are present. Never print or log their values.
If any check fails: stop and present the message above. Do NOT ask the user to type the token in the chat. Do NOT suggest running source. rai loads credentials automatically from .env in the project (higher priority) or ~/.rai/.env as global fallback — rai init ya genera .env.example con las vars necesarias.
Nota: Si el shell reporta MISSING pero las vars están en .env, está bien — rai las carga directamente sin necesidad de export.
<verification> CONFLUENCE_URL, CONFLUENCE_API_TOKEN, and CONFLUENCE_USERNAME are present in the environment OR exist in .env/~/.rai/.env. Skill proceeds. </verification>
Step 1: Detect Existing Configuration
Read .raise/docs.yaml (use the Read tool). Count the keys under targets:.
| Targets found | Action | |
|---|---|---|
| File missing or 0 targets | Continue to Step 2 (new project flow) | |
| 1 target | Continue to Step 1b | |
| 2+ targets | Continue to Step 1c |
Step 1b: 1 Existing Target — Offer Append
Present the existing target and offer to add a second:
- [1] o [2]: Ask which space key to use for the new target. Derive
{site}from the existing target's URL in.raise/docs.yaml(e.g.url: https://humansys.atlassian.net/wiki→site: humansys.atlassian.net). If the new target is on a different site, ask the developer. Then run one CLI call from Step 4 adding--append --structure {governance|work}. Skip to Step 5. - [3]: Continue to Step 2 (treat as new project; add
--overwriteto all CLI calls in Step 4).
Step 1c: 2+ Existing Targets — Show Map
Read the routing from .raise/docs.yaml and present it grouped by target, then by section (same format as Step 5). Then:
- [n]: Declare setup complete and exit.
- [y]: Continue to Step 2 (treat as new project; use
--overwritein all CLI calls).
<verification> Existing configuration detected and developer has chosen a path. New project, append, or overwrite clearly established. </verification>
Step 2: New Project — Recommend 2-Space (Default)
Present the recommendation:
- [y]: Continue to Step 3 (2-space flow).
- [n]: Continue to Step 2b (fallback).
Step 2b: Fallback — No Second Space
- [1]: Exit. The developer will return after creating the space; Step 1b will handle the append.
- [2]: Continue to Step 3b (single-space flow).
- [3]: Exit and point to
/rai-docs-setup-advanced.
Step 3: 2-Space Setup (≤4 questions)
Ask in order — one question at a time, do not bundle:
- Governance site — "¿Cuál es el Confluence site de tu espacio de governance? (ej.
miempresa.atlassian.net)"
Derive {prefix} from the first subdomain: humansys.atlassian.net → humansys.
- Governance space key — "¿Cuál es la clave del espacio de governance? La encuentras en la URL:
…/wiki/spaces/{CLAVE}/…"
- Same site for work? — "¿El espacio de work también está en
{governance_site}? (y/n)"
- [y]: Skip to question 4 (same site).
- [n]: Ask "¿Cuál es el site del espacio de work?" → derive
{work_prefix}.
- Work space key — "¿Cuál es la clave del espacio de work?"
Instance names are derived automatically:
- Governance:
{prefix}-governance(e.g.humansys-governance) - Work:
{work_prefix}-work(e.g.humansys-work)
Where {work_prefix} = {prefix} when both spaces are on the same site (Step 3 Q3 = y), or the first subdomain of the work site when different (Step 3 Q3 = n).
No need to ask for instance names.
Continue to Step 4 (2-space).
Step 3b: Single-Space Setup (fallback [2])
Ask in order:
- Site — "¿Cuál es tu Confluence site? (ej.
miempresa.atlassian.net)"
Derive {instance} from the first subdomain automatically.
- Space key — "¿Cuál es la clave de tu espacio? La encuentras en la URL:
…/wiki/spaces/{CLAVE}/…"
Continue to Step 4b (single-space).
Step 4: Run 2-Space Setup
Run the two CLI calls in sequence:
Add --overwrite to both calls if coming from Step 1b [3] or Step 1c (reconfigure paths).
The CLI auto-discovers each space and validates credentials against the live API — if credentials are wrong or a space key doesn't exist, it fails here with a clear error.
<verification> Both CLI calls completed. .raise/docs.yaml has 2 targets: {prefix}-governance and {prefix}-work. default_target is {prefix}-governance. </verification>
Step 4b: Run Single-Space Setup
Add --overwrite if coming from Step 1b [3] or Step 1c.
<verification> CLI output shows "✓ Injecting RaiSE routing preset (27 artifact types)". Config written to .raise/docs.yaml. </verification>
Continue to Step 5.
Step 5: Show Routing Map
Read .raise/docs.yaml and present the routing grouped by target, then by parent_title within each target:
For 2-target config:
For single-target config:
Explica brevemente: el tipo de artefacto (adr, story, session-diary, etc.) determina el target y la página padre — no hay que especificar nada manualmente.
Step 6: Demo de rai docs write
Para configuración 2-target:
Para configuración single-target:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/raise-cli/src/raise_cli/skills_base/rai-docs-setup/SKILL.md
Popularity
- Repository stars
- 71
- Repository forks
- 8
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/humansys/raise/rai-docs-setup)