plugins/lisa-harper-fabric-copilot/skills/harper-operations/SKILL.md
This skill should be used when operating, monitoring, or debugging a Harper (HarperDB/Fabric) component after it builds or deploys - Operations API calls, component inventory, log retrieval, health checks, job lookup, local 500 debugging, and escalation boundaries. Pairs with harper-build-and-deploy, harper-config-yaml, harper-resources, and harper-rest-queries.
npx skillsauth add codyswanngt/lisa harper-operationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use Harper's Operations API when the app built or deployed but runtime behavior is unknown: a REST endpoint returns 500, a component did not load, logs show worker errors, a table shape differs from the expected schema, or a deploy job needs to be checked. The Operations API is the administrative surface; application REST endpoints are the user-facing data/resource surface.
Cross-check deploy packaging and Fabric topology in [[harper-build-and-deploy]]. Cross-check active extensions and config replacement behavior in [[harper-config-yaml]]. Cross-check custom Resource method ownership in [[harper-resources]] and query shape in [[harper-rest-queries]].
Operations API requests are JSON POST requests to the operations endpoint. Harper
listens on port 9925 at the root path by default:
curl -sS http://<harper-host>:9925/ \
-u "$HARPER_USERNAME:$HARPER_PASSWORD" \
-H 'Content-Type: application/json' \
--data '{"operation":"system_information"}'
For local development:
curl -sS http://localhost:9925/ \
-u "$HARPER_USERNAME:$HARPER_PASSWORD" \
-H 'Content-Type: application/json' \
--data '{"operation":"get_components"}'
Authentication options:
Authorization: Basic ..., or curl -u "$USER:$PASS".Authorization: Bearer <token> from
create_authentication_tokens.harper login <target> for persistent remote auth, or environment
credentials such as HARPER_CLI_USERNAME / HARPER_CLI_PASSWORD.Most operational reads require a super_user or a role explicitly allowed to run
the named operation. If an operation is denied, check role operations permissions
before assuming the endpoint or component is broken.
| Operation | Use it for | Example |
| --- | --- | --- |
| get_components | Confirm component names, files, and configuration loaded from harper-config.yaml. | {"operation":"get_components"} |
| describe_all | See all database/table definitions and record counts visible to the caller. | {"operation":"describe_all"} |
| describe_table | Confirm table/database names, attributes, and primary key shape. | {"operation":"describe_table","database":"data","table":"Product"} |
| system_information | Capture runtime, host, and process information for health/debug reports. | {"operation":"system_information"} |
| read_log | Read Harper's primary hdb.log with level/time/filter controls. | {"operation":"read_log","level":"error","limit":50,"order":"desc"} |
| search_jobs_by_start_date | Find background jobs when deploys, imports, or long operations are involved. | {"operation":"search_jobs_by_start_date","from_date":"2026-06-16T00:00:00.000+0000","to_date":"2026-06-17T00:00:00.000+0000"} |
| get_job | Inspect one known job id returned by a search or operation response. | {"operation":"get_job","id":"<job-id>"} |
| get_configuration | Find runtime paths such as rootPath, componentsRoot, ports, and logging config. | {"operation":"get_configuration"} |
Use CLI shortcuts when the operation only needs flat key/value arguments:
harper get_components target="$HARPER_TARGET" json=true
harper describe_all target="$HARPER_TARGET" json=true
harper read_log target="$HARPER_TARGET" level=error limit=50 order=desc json=true
If the CLI cannot represent the nested request body, use curl against the
Operations API directly.
read_log reads the primary Harper log (hdb.log) and is restricted to
super_user roles unless a custom role grants it. Useful parameters include
level, from, until, limit, order, and filter.
Recent errors:
curl -sS "$HARPER_TARGET" \
-u "$HARPER_USERNAME:$HARPER_PASSWORD" \
-H 'Content-Type: application/json' \
--data '{
"operation": "read_log",
"level": "error",
"limit": 50,
"order": "desc"
}'
Filter by component, route, or correlation id:
curl -sS "$HARPER_TARGET" \
-u "$HARPER_USERNAME:$HARPER_PASSWORD" \
-H 'Content-Type: application/json' \
--data '{
"operation": "read_log",
"filter": "orders",
"from": "2026-06-16 00:00:00",
"limit": 100,
"order": "desc"
}'
In local harper dev, also watch the terminal output. The dev command restarts
worker threads on file changes and prints console/log output close to the failing
request. Use harper run or a deployed local instance when you need to restart the
main thread, not only workers.
For Resource methods, log enough to identify the request path, authenticated user or tenant id, and failing branch without emitting secrets or whole request bodies. Prefer structured, searchable messages:
export class Orders extends tables.Orders {
static async post(data, context) {
const input = await data;
console.info('orders.post received', {
orderId: input.id,
userId: context.user?.id,
});
try {
return await super.post(input, context);
} catch (error) {
console.error('orders.post failed', {
orderId: input.id,
message: error?.message,
});
throw error;
}
}
}
Guidance:
console.info or console.debug for normal trace points, and
console.warn / console.error for actionable failures.When a deployed REST endpoint returns 500, follow this path before changing code:
Identify the exact endpoint, method, payload, authenticated user, target URL,
and timestamp. Save a reproducible curl command with headers scrubbed.
Confirm the component is installed and named as expected:
harper get_components target="$HARPER_TARGET" json=true
Read recent errors around the failing timestamp:
harper read_log target="$HARPER_TARGET" level=error limit=100 order=desc json=true
Check table/resource shape when the failure mentions a missing table, attribute, index, relationship, or schema directive:
curl -sS "$HARPER_TARGET" \
-u "$HARPER_USERNAME:$HARPER_PASSWORD" \
-H 'Content-Type: application/json' \
--data '{"operation":"describe_all"}'
Reproduce locally with the same built artifact path:
bun run build
harper dev harper-app
curl -i http://localhost:9926/<project>/<resource-path>
Isolate the smallest Resource method or table call involved. If the route uses a custom Resource, call its underlying table/search operation directly when safe, then add one temporary log at the branch boundary that chooses the failing path.
Fix source files, not generated deploy artifacts. Rebuild and repeat the same
local curl, then repeat the deployed smoke path after redeploy.
Treat the incident as unresolved until the same request path returns the expected status and the logs no longer show the error.
After deploy or restart, check:
get_components includes the expected project and files.system_information returns from the target node.get_configuration shows the expected operations/API ports,
rootPath, componentsRoot, and logging configuration.describe_all or describe_table matches the expected
database/table definitions and exported tables.read_log has no new error entries for the deploy/restart window.search_jobs_by_start_date and get_job show background work completed
when deploy, import, backup, or long-running data operations were involved.Do not invent observability that the target does not expose:
read_log,
system_information, or component operations, treat it as an access blocker,
not as evidence that logs or components are empty.development
Prepare a machine — a fresh laptop or a throwaway container — to run coding agents, before any repository exists. Detects which of Lisa's supported agents (Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot) are already installed, asks which credential manager the machine uses (Bitwarden, 1Password, Doppler, Vault, AWS, or none), and installs only what is missing, each by its vendor's own preferred method. Idempotent, headless by default, and emits a Dockerfile for a spin-up/spin-down environment. Run it on a new machine, in a container, or before cloning anything.
tools
Provision and verify a remote execution environment for a host project — Codex Cloud today, other remote surfaces as they are added. Generates a repository-owned setup script that installs the declared toolchain, materializes secrets through lisa-secrets-access, and runs the project's own hook. Provisions by API where one exists, by driving the vendor console where one does not, and by emitting exact config otherwise — then proves the result with the same read-back regardless of which tier did the work. Use before dispatching any work with executionEnv.
tools
Bring a developer's machine in line with the toolchain the project declares. Reports every tool in remoteEnv.tools that is missing, outdated, or unpinned for this platform, and installs the missing ones into ~/.local/bin from the same pinned, checksummed entries the remote surfaces use — but only when asked. Same manifest, same pins, same installers as lisa-setup-remote-env; what differs is consent and that the pin is a floor rather than an equality. Run it on a fresh checkout, after a manifest change, or when a tool fails at the moment of use.
tools
Route one unit of work to a remote execution surface. Reads the executionEnv parameter (local by default, codex-cloud or claude-web today), verifies the environment is provisioned and bound to this repository, submits a thin skill invocation, records the task identifier to .lisa/remote-dispatch.json, and exits without polling. Routing only — the remote runs the identical skill from the identical repository. Composable and inline: other skills invoke it via the Skill tool rather than users calling it directly.