Skip to main content

Digital employees and AGENT integration

SkillFlaw's current product direction is not limited to workflow editing. It is moving toward a governed platform where reusable business capabilities can be packaged as skills and then consumed by digital employees and external AGENT systems.

In this model:

  • the management layer defines tenancy, authorization, and operating rules
  • the resource layer provides reusable models, components, knowledge bases, MCP services, plugins, and variables
  • the business layer assembles executable projects and workflows
  • the skill layer packages those business capabilities into governed skills that can be discovered, read, delivered, and executed

SkillFlaw business architecture

Why skillflaw-cli matters

skillflaw-cli is the repository-backed command-line entry point for working with governed skill and workflow capabilities from outside the visual product UI.

It is designed for four core outcomes:

  1. discover the correct node in the My Skills tree
  2. read or save the skill content for a business capability
  3. download a project bundle or a bound skill file
  4. run an online workflow with an explicit JSON payload

This makes it the practical bridge between SkillFlaw's governed skill layer and runtime consumers such as:

  • enterprise digital employees
  • external AGENT frameworks
  • orchestration services
  • integration workers and automation pipelines

What the CLI supports today

The current CLI implementation exposes these command groups:

Command groupWhat it doesTypical use
authStores or clears API-key authenticationLog in before reading or executing protected business capabilities
configInitializes, updates, and shows CLI configurationSet base URL, tenant context, default node, and language
treeTraverses the My Skills hierarchyFind the exact tenant, business, project, skill, or workflow node
skillReads, saves, or downloads governed skillsBring skill markdown into an AGENT workflow or export a deliverable
workflowRuns an online workflow by node or flow IDTrigger a business process from a digital employee or AGENT
cachePlaceholder command skeleton onlyNot a real cache invalidation mechanism at this stage

Configuration and authentication

The CLI keeps its local configuration in ~/.skillflaw/my-skills-cli.json. From the current implementation, the effective defaults and behavior are:

  • default base URL: http://127.0.0.1:7860
  • auth mode: anonymous unless changed to api-key
  • request language follows skillLang
  • API-key mode sends the key by x-api-key

Use these commands to inspect or update CLI state:


_10
skillflaw-cli config show
_10
skillflaw-cli config init --base-url <baseUrl> --auth-mode api-key --api-key <apiKey>
_10
skillflaw-cli config set --default-node-id <defaultNodeId>
_10
skillflaw-cli auth login --api-key <apiKey>
_10
skillflaw-cli auth logout

The standard integration flow

1. Discover the correct business node

Skills and workflows are attached to real project objects in the My Skills tree. If you do not already have a trusted identifier, start from the tree:


_10
skillflaw-cli tree root
_10
skillflaw-cli tree children --node-id <nodeId>

Use this step to locate the exact tenant, business domain, project, workflow, or skill node that your integration should use.

2. Retrieve the skill contract

When a digital employee or AGENT needs the governed business instructions, read or save the skill markdown:


_10
skillflaw-cli skill read --node-id <nodeId>
_10
skillflaw-cli skill save --node-id <nodeId> --output ./artifacts/business-skill.md

This is the most direct way to bring a governed business skill into another runtime. The markdown can be used as:

  • the operating instruction for an AGENT
  • a reviewed business prompt or policy artifact
  • an auditable handoff between platform teams and automation teams

3. Download deliverables when files are required

If the downstream system needs a file artifact instead of inline markdown, download the bound skill file or the entire project bundle:


_10
skillflaw-cli skill download --node-id <nodeId>
_10
skillflaw-cli skill download --project-id <projectId> --skill-id <skillId>
_10
skillflaw-cli skill download --project-id <projectId> --bundle

Use project bundle download when the receiving system needs the complete packaged project deliverable.

4. Run the governed workflow

Once the business node is known and the input payload is ready, trigger the workflow:


_10
skillflaw-cli workflow run --node-id <nodeId> --payload '{"ticket_id":"T-1001"}'
_10
skillflaw-cli workflow run --flow-id <flowId> --payload '{"ticket_id":"T-1001"}'
_10
skillflaw-cli workflow run --flow-id <flowId> --version <version> --payload '{"ticket_id":"T-1001"}'

This pattern allows a digital employee or AGENT to call a governed business process without bypassing SkillFlaw's packaging and delivery model.

How digital employees and AGENTs connect through skills

A practical repository-aligned pattern is:

Pattern A: read the skill as the governed operating contract

Use skill read when the external AGENT needs the latest governed business instructions before it reasons or plans.

Typical fit:

  • HR digital employees
  • reimbursement assistants
  • procurement or approval AGENTs
  • customer-service orchestration workers

Pattern B: save or download the skill into the consumer runtime

Use skill save or skill download when the external system needs a local artifact for:

  • packaging
  • review
  • offline processing
  • source-controlled delivery into another automation environment

Pattern C: execute the workflow after discovery

Use workflow run when the external system should not stop at reading instructions, but should trigger the governed business process directly.

Typical fit:

  • approval submission
  • contract review flow invocation
  • reimbursement validation
  • project-specific business automation

Unless all identifiers and configuration values are already trusted, use this order:

  1. inspect current CLI state with config show
  2. log in with auth login when the target capability requires API-key access
  3. discover the target with tree root and tree children
  4. retrieve the skill with skill read or skill save
  5. download files only when a file artifact is required
  6. execute the workflow with workflow run only after the target node or flow is confirmed

Rules carried by the distributed skill template

The CLI is distributed with an accompanying skill template that defines strict operating rules for enterprise business tasks. The important rules are:

  • do not guess nodeId, projectId, skillId, or flowId
  • do not bypass the CLI with handcrafted HTTP calls
  • discover first, then read, save, download, or run
  • stop when critical inputs such as apiKey, baseUrl, identifiers, or JSON payload are missing
  • treat cache clear as a placeholder rather than a real cache invalidation control
View the key template excerpt

When the task is a real enterprise business task and requires an existing SkillFlaw skill or workflow, the integration must use skillflaw-cli for discovery and execution.

The integration must first locate the target through the tree, then continue with skill read, skill save, skill download, or workflow run.

It must not guess identifiers, assemble direct backend requests, or silently skip missing prerequisites.

Example: integrating a digital employee with a business skill

A simple end-to-end pattern looks like this:


_10
skillflaw-cli config show
_10
skillflaw-cli auth login --api-key <apiKey>
_10
skillflaw-cli tree root
_10
skillflaw-cli tree children --node-id <tenantNodeId>
_10
skillflaw-cli tree children --node-id <businessNodeId>
_10
skillflaw-cli tree children --node-id <projectNodeId>
_10
skillflaw-cli skill read --node-id <skillNodeId>
_10
skillflaw-cli workflow run --node-id <workflowNodeId> --payload '{"employee_id":"E1001","action":"submit"}'

In this sequence, the digital employee:

  • authenticates against SkillFlaw
  • discovers the governed business context
  • reads the business skill as the operating contract
  • triggers the governed workflow with explicit input

See also