Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/CodySwannGT/lisa --skill harper-operations명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
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.