/itential-builder:documentationfrom itential-builder
Surveys and catalogs global Itential platform assets (workflows, templates, LCM models, OM automations) not inside named projects, groups them by use case, and produces structured markdown documentation.
Ships in itential-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Purpose: Read Itential assets → discover relationships → group into use cases → produce documentation
Output: customer-spec.md (inferred HLD per use case) + solution-design.md (as-built LLD per use case) + README.md (master index, only when multiple use cases)
Feeds into: Can be handed to /spec-agent for refinement or /solution-arch-agent for redesign
Before using this skill, check custom/org/, custom/team/ and custom/dev/
in this skill's own folder. Read every .md file found — any folder may be
empty or absent. Apply them on top of everything below; where a file overrides a
specific rule here, follow the override. More specific wins: dev > team > org >
this document. No customization may weaken this skill's safety
rules or put credentials in committed files.
assets/ or scripts/ are
relative to this skill's own folder. When you read one, or pass one to a shell
command (which runs from the user's working folder), use this skill's folder +
that relative path — e.g. <this skill's folder>/assets/helpers/create/create-workflow.json.The ONLY deliverables are markdown files. Do NOT produce JSON index files, JSON catalogs, or any intermediate artifacts. All analysis happens in-memory.
{reports-directory}/
README.md ← master index of all use cases ONLY when more than one use case
{use-case-slug}/
customer-spec.md ← inferred HLD (business purpose, scope, requirements)
solution-design.md ← as-built LLD (components, flows, adapters, data model)
{use-case-slug}/
customer-spec.md
solution-design.md
...
Never write JSON files as output. No workflow-index.json, no asset-index.json, no use-case-groups.json. The user wants documentation, not data dumps.
Surveys global Itential assets — workflows, JSON forms, transformations, templates, command templates, analytic templates, Operations Manager automations, golden configuration trees and compliance plans, and LCM resource models that live outside named projects. Accepts all, platform, a directory path, or a list of specific global asset names. Discovers how they relate to each other, groups them into logical use cases, and produces documentation for each group plus a master index when there are multiple use cases.
For a named project: Use
/project-to-specinstead — it reads a single project's components and produces customer-spec.md + solution-design.md tailored to that project.
User invokes /documentation ['all' | 'platform' | directory | specific global asset names]
|
├── Step 0: Determine Scope
| ├── Project named? → redirect to /project-to-spec
| ├── Specific global assets named? → resolve + discover relationships → ask grouping preference
| └── 'all' / platform / directory? → full collection + grouping flow
|
├── Step 1: Collect + classify global assets (in-memory)
├── Step 2: Discover relationships + group into use cases (in-memory)
├── Step 3: Present proposed groupings to engineer for approval
├── Step 4: Write per-use-case reports (customer-spec.md + solution-design.md)
├── Step 5: Write master README.md (ONLY when more than one use case)
└── Step 6: Present summary to engineer for review
Before collecting assets, determine what the user wants to document.
If the user names a specific project, redirect them to /project-to-spec — that skill is purpose-built for single-project documentation and produces a more thorough analysis.
"It looks like you want to document a specific project — use
/project-to-specfor that. It reads the project's components directly and produces a more thorough customer-spec.md and solution-design.md for it."
If the user provides one or more asset names or IDs:
Resolve each asset via the platform API or local files
Traverse the relationship graph starting from each named asset (childJob links, OM→workflow, LCM→workflow, golden config→command template, etc.)
Present the discovered asset cluster to the engineer:
Ask the engineer:
"I found these assets and their relationships. How should I document them?"
- (Default) Group into use cases — analyze and cluster into logical groups, then produce HLD+LLD per group
- Document as a single unit — treat the entire cluster as one use case, produce one HLD+LLD
- Document each asset independently — produce separate minimal documentation per asset without cross-linking
Proceed based on the engineer's answer.
If the user says all, platform, or provides a directory path, run the full collection and grouping flow (Steps 1–6) without asking about grouping preference.
Ask the engineer for the asset source if not specified. Two modes:
Scan for asset JSON files organized by type:
directory/
workflows/ *.json
json_forms/ *.json
transformations/ *.json or *.jst.json
templates/ *.json
command_templates/ *.json
operations_manager_automations/ *.json
golden_config/ *.json
lcm/ *.json
If the directory is flat (all JSON at root), classify by JSON structure signatures below.
If a projects/ subfolder exists, scan it too. Project manifest files (containing name + components[]) identify which assets belong to a project — use that grouping when building the relationship graph. Strip @projectId: prefixes from any workflow names found inside.
Authenticate using .auth.json (see assets/AGENTS.md auth reuse pattern). Fetch global assets (ensure you fetch pagination if there are a lot of assets):
GET /automation-studio/workflows?exclude-project-members=true&limit=500
GET /automation-studio/templates?limit=500
GET /automation-studio/json-forms?limit=500
GET /operations-manager/automations
GET /mop/templates
GET /golden-config/trees
GET /golden-config/plans
GET /lifecycle-manager/model
GET /automation-studio/projects?limit=500
Visibility caveat: see
assets/AGENTS.md's "Project Visibility" section. Global assets (this skill's focus) aren't ACL-restricted, so the global catalog isn't undercounted by RBAC — butGET /automation-studio/projects?limit=500is per-project-ACL-filtered. Since this skill targets globals, projects are out of scope by default; if the engineer names a specific project they expect, route to/project-to-specinstead.
| Asset Type | Identifying Fields |
|---|---|
| Workflow | tasks (object), transitions |
| JSON Form | schema, struct, uiSchema |
| Transformation | incoming, outgoing, steps |
| Template | type (textfsm/jinja2), template field |
| Command Template | commands[] with rules[] |
| Analytic Template | commands[] with analytics[] or baseline fields |
| OM Automation | triggers[], componentName |
| Golden Config Tree | nodes[], rootNode, treeType |
| Golden Config Compliance Plan | planType, configSpec, devices[] |
| LCM Resource Model | resourceType, actions[], schema |
Build the asset index in-memory only. For each asset, note: name, file path/ID, type, and key metadata.
Build a relationship graph in-memory connecting all assets:
Workflow → Workflow (childJob links): For each workflow task where name === "childJob" AND app === "WorkFlowEngine", extract child workflow name from variables.incoming.workflow. Strip @projectId: prefixes.
Workflow → JSON Form: Tasks where app === "JsonForms" or name contains RenderJsonSchema/JsonForm.
Workflow → Template: Tasks where app === "TemplateBuilder" (renderJinjaTemplate, applyTemplate, applyTextFSMTemplate).
Workflow → Transformation: Tasks where name === "transformation".
Workflow → Command Template: Tasks referencing MOP operations (runCommandTemplate).
OM Automation → Workflow: componentName field names the target workflow. Trigger types reveal entry mode: schedule, endpoint (webhook/API), manual (with optional formId).
LCM Resource Model → Workflow: Each LCM action has an actionWorkflow field naming an IAP workflow → link.
Golden Config Compliance Plan → Command Template: Plans reference MOP command templates for configuration checks → link.
Workflow → Golden Config: Workflows calling golden-config API tasks via adapter → link.
Adapter patterns: Collect tasks where location === "Adapter" — extract app (type name) and operation name.
Naming prefix clustering: Split on - (space-dash-space). Assets sharing a prefix are candidates for the same use case.
OM Automations as Entry Points: Each OM automation's componentName → root workflow → traverse childJob graph → collect all reachable workflows + referenced forms/templates/transformations/command templates = one cluster.
LCM Resource Models as Entry Points: Each LCM model → action workflows → traverse childJob graph → collect all reachable assets = one cluster. If a workflow cluster already contains these workflows, merge the LCM model into that cluster.
Golden Config Clusters: Golden config trees + their compliance plans + referenced command templates → one cluster. If workflows reference these golden config assets, merge into the same cluster.
Expand by Naming Prefix: Add ungrouped assets sharing the same naming prefix as assets already in a cluster.
Ungrouped Workflow Trees: Any root workflow (no parent) with children → new cluster.
Shared Utilities: Workflows appearing in 3+ clusters → "Shared Utilities" group. Also include: generic TextFSM templates, utility transformations (math, array ops), common utilities (MongoDB CRUD, credential retrieval, notifications).
Test / Standalone: Workflows with developer name prefixes, [TEST]/test-/dummy patterns, Jira ticket patterns, or <5 tasks with no children and no triggers → "Standalone / Test Workflows" (catalog only, no full HLD/LLD).
Remaining Ungrouped: Group by functional similarity or list as individual entries in master README.
Work through the components to reconstruct intent and structure.
Find the parent workflow — usually the one that:
childJob references pointing to it from other workflowschildJob tasksFor LCM clusters, the resource model itself is the anchor — its action workflows are the orchestrators. For golden config clusters, the compliance plan anchors the cluster.
For the orchestrator and each child:
$var.job.x assignments)Each major section of the orchestrator maps to a phase:
childJob to a child workflow = one phaseevaluation branch = a decision pointViewData = an approval gateFrom the workflow structure, infer what "done" looks like:
evaluation tasks checking statusoutputSchema? → these are the observable outcomesStop and present the proposed groupings before writing any reports. Ask:
Show each group with: name, category (Core/Specialized/Shared/Reference), approximate asset count, and 1-line description.
Wait for engineer approval before proceeding to Step 4.
For each approved use case group, create a directory (or write directly to reports root if only one use case) with two markdown files.
customer-spec.mdWrite professional, narrative documentation — not mechanical spec sheets. The HLD should read like a business-facing document with rich prose, detailed tables, and domain-specific context.
→ See template in assets/helpers/documentation-output-templates.md — "customer-spec.md Template"
For test/standalone use cases, use a simplified catalog format — asset table with Purpose and Adapters columns only. No full HLD needed.
solution-design.mdWrite the as-built LLD — this is factual, not inferred. Each component should have at least a sentence description, so an engineer could understand the full system without reading the source JSON.
→ See template in assets/helpers/documentation-output-templates.md — "solution-design.md Template"
The guidance and example are in the Section D placeholder in assets/helpers/documentation-output-templates.md.
Do not add a sequence diagram to the HLD (customer-spec.md). Section 2 of the HLD is a narrative paragraph only.
Only write this step when there are 2 or more use cases.
Create README.md at the root of the reports directory.
→ See template in assets/helpers/documentation-output-templates.md — "README.md Template"
Show a summary:
Ask the engineer to review the reports. Next steps:
/spec-agent/solution-arch-agentAfter the engineer accepts the use case groupings and reviews the reports, ask:
"Would you like me to create a project for each use case and move the assets in? Moving assets into a project renames them with an
@projectId:prefix — anything currently referencing those assets by name will need updating. Shared utility assets will stay global. Should I proceed?"
If no, stop here. The documentation stands as-is.
If yes, for each approved use case group (skip "Shared Utilities"):
1. Create the project:
POST /automation-studio/projects
{"name": "{use-case-name}", "description": "{one-line from customer-spec.md}", "thumbnail": "", "backgroundColor": "#FFFFFF"}
Save data._id as projectId.
2. Add components:
POST /automation-studio/projects/{projectId}/components/add
{
"components": [
{"type": "workflow", "reference": "{workflow-id}", "folder": "/"},
{"type": "template", "reference": "{template-id}", "folder": "/"},
{"type": "mopCommandTemplate", "reference": "{mop-name}", "folder": "/"}
],
"mode": "move"
}
Component type values: see assets/AGENTS.md Rule 13.
3. Build a reference impact report before moving anything:
Before executing any moves, scan all global workflows, OM automations, and LCM models to find references that will break. For each asset being moved, find:
childJob task where variables.incoming.workflow matches the asset's current namecomponentName matches the asset's current nameactions[].actionWorkflow matches the asset's current nameProduce a table:
| Asset being moved | Referenced by | Field | New name after move |
|---|---|---|---|
VLAN_Provision_Parent | Monthly_Audit (workflow) | childJob.workflow | @abc123: VLAN_Provision_Parent |
DNS_Create | DNS Automation (OM automation) | componentName | @abc123: DNS_Create |
Show this to the engineer before proceeding:
"Moving these assets will break the following references. I won't fix them automatically — you'll need to update these manually after the move. Here's what needs changing:"
4. Execute the moves (after engineer confirms they've noted the impact):
For each group, run the POST .../components/add calls as above.
5. After all groups are processed, show a final summary:
| Use Case | Project ID | Assets Moved | Broken References to Fix |
|---|---|---|---|
| {name} | {id} | {count} | {count} — see impact report above |
Flag anything that couldn't be moved (already in a project, API error) for manual follow-up.
Warnings to keep in mind:
@{otherProjectId}: {name} format@projectId: prefixed names: Strip prefix (everything through colon+space) before matching.actionId, or automation name..jst.json naming: Match on internal name field, not filename.data field: Often a JSON string, not parsed object — parse before analyzing.actionWorkflow may be missing: If a LCM action has no linked workflow, note the gap — the action is defined but not implemented.apush or myTask are a known bug pattern ($var references silently fail on these)."value": "production" → production-only path).assets/AGENTS.md Project Visibility). If the engineer names a specific project they expect, route to /project-to-spec rather than declaring it absent.workflow is the primary relationship link. Don't trace $var references across workflows.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub itential/builder-skills --plugin itential-builder19 skills in this plugin
/builder-agentUse this skill when someone has an approved solution design and is ready to build. Trigger it for phrases like "solution design is approved", "go ahead and build", "implement the design", "create the workflows", "build everything per the design", or "the design is locked — implement it". Also trigger it when a build is failing mid-way and needs debugging, or when /qa-agent hands back a failing test case for a fix. This skill implements the approved solution-design.md end-to-end — creating all workflows, templates, projects, and configs, and testing each component individually. If the user has a solution-design.md and wants to turn it into working automation, this is the right skill. Invoke after /solution-arch-agent produces an approved solution-design.md. Hands off to /qa-agent once the build is complete — /qa-agent owns acceptance testing and the as-built record. Logs in with its bundled auth helper: never read `.env` yourself./exploreUse this skill whenever someone wants to connect to an Itential platform and browse, inspect, or discover what's there — without starting a formal delivery. Trigger it for phrases like "connect to my platform", "show me what adapters are running", "authenticate and pull platform data", "I want to poke around before starting", "what workflows exist?", "give me an inventory of the platform", "browse capabilities freely", "check if adapter X is running", or "I just set up a new environment — show me what's there". Also use it for ad-hoc freestyle work where the user wants to build something directly without going through the full spec→design→build lifecycle. Logs in with its bundled auth helper: never read `.env` yourself./flowagentDesign, build and test AI agents on the Itential Platform (Agent Project Service, Model Registry Service, Tools Service, Agent Session Manager). Agents use LLMs to call platform tools, including other agents. Use when designing or building agents, parent and child agents, LLM provider profiles, tools, decorators or human approval steps, attaching skills to agents, or when running test sessions to check an agent. To write or import the skills themselves, use /flowagent-skill-builder./flowagent-skill-builderUse this skill to write, package, import and test skills for FlowAgent (FlowAI) agents on the Itential Platform — the procedure packages an agent loads on demand alongside its tools. Trigger it for phrases like "write a skill for my agent", "create a FlowAgent skill", "turn this runbook into an agent skill", "import this skill into FlowAgent", or "add a vendor to this agent skill". Skills follow the Agent Skills format in the shape of itential/infra-agent-skills (one operation per skill, a short SKILL.md that routes to per-vendor procedure and endpoint files), so skills from that library import unchanged. NOT for building, configuring or running the agents themselves — use /flowagent for that./flowagent-to-specConvert a FlowAgent into a deterministic workflow spec. Reads the agent definition, tools, and session history (Agent Project Service / Agent Session Manager APIs) to understand what the agent does, then produces a customer-spec.md that describes the same use case as structured, deterministic automation. Turns agentic → deterministic./gateway4-to-gateway5Assess how ready an environment is to move from Itential Automation Gateway 4 (IAG4) to Gateway 5 (IAG5). Use for phrases like "am I ready to move to IAG5", "assess my IAG4 to IAG5 migration", "what do I need to change to switch off gateway 4", "scan my workflows for automation gateway usage", "which workflows use IAG4", "IAG4 readiness report", or "evaluate my gateway migration". Does NOT perform the migration — analyzes IAP assets (workflows, JSON forms) and IAG4 assets (scripts, playbooks, roles, inventory), then writes a deterministic markdown guideline of manual actions. Strictly READ-ONLY; its only write is the report. Can also run LOCAL-FILES-ONLY with no API access. Report uses "Itential Gateway4"/"Gateway5" terms (never "IAG"). To deliver the migration, use /spec-agent with the Gateway4 → Gateway5 migration spec; for a single IAG5 service, /iag. Logs in with its bundled auth helper: never read `.env` yourself.Other plugins' skills for the same job