Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/CodySwannGT/lisa --skill harper-operationsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
This skill should be used for any non-trivial request — features, bugs, stories, epics, spikes, or multi-step tasks. It accepts a ticket URL (Jira, Linear, GitHub), a file path containing a spec, or a plain-text prompt. It assembles an agent team, breaks the work into structured tasks, and manages the full lifecycle from research through implementation, code review, deploy, and empirical verification.
any non-trivial request —…
This skill should be used for any non-trivial request — features, bugs, stories, epics, spikes, or multi-step tasks. It accepts a ticket URL (Jira, Linear, GitHub), a file path containing a spec, or a plain-text prompt. It assembles an agent team, breaks the work into structured tasks, and manages the full lifecycle from research through implementation, code review, deploy, and empirical verification.
SOC 職業分類に基づく
SKILL.md を表示中
| name | harper-operations |
| description | operating, monitoring, or… |
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.