AGENT SKILL
gjc-sdk-author
Author trusted-local TypeScript and Python scripts that operate GJC sessions through the broker-bound CLI.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 3.1k
- Forks
- 438
01 前言 Front Matter
- name
- gjc-sdk-author
- description
- Author trusted-local TypeScript and Python scripts that operate GJC sessions through the broker-bound CLI.
02 资源文件 2
- 脚本templates/direct-sdk.py6.6 KB
- 脚本templates/direct-sdk.ts6.9 KB
03 SKILL.md 正文
Author broker-bound GJC session scripts
Start from the owned templates in this skill directory:
templates/direct-sdk.tstemplates/direct-sdk.py
Authoring contract
- Invoke the documented
gjc sdk sessionCLI as a child process. It routes live controls throughSessionRouterand lifecycle mutations throughSessionLifecycleServiceand the Broker. - Require explicit repository and session-ID inputs. Run the CLI with the repository as its working directory; do not infer a session from local state.
- Never scan
.gjc/state/sdk, parse endpoint records, read endpoint credentials, or open a raw per-session WebSocket. - Use only
gjc sdk session raw query <sessionId> --query <query> --jsonfor fixed inspection queries andgjc sdk session raw control <sessionId> --op <operation> --json-input <object> --confirm --jsonfor fixed controls. Raw leaves do not accept--repo; preserve the selected repository as subprocesscwdinstead. - Pass CLI arguments as an argv array, never through a shell command string.
- Keep query and control operation names on fixed allowlists. Reject secret-shaped input fields before dispatch.
- Require an immediately preceding, single-use human approval before every mutation.
- Use the template's nonce-bearing operation/session/input-bound standard-input challenge; never replace it with a free boolean or reusable approval.
- Send no CLI request after denial or cancellation.
- Bind durable workflow controls to the expected session ID.
- Request
--jsonexplicitly: successful session JSON is unchanged, but default ordinary failures are text on stderr. Parse stdout even on nonzero exit. Preserve the trusted CLI's boundedgjc.command-errorversion 1 envelope, including outcome certainty, exact references, evidence availability and continuation; do not redact an idempotency reference merely because its kind contains “key”. Keep malformed/unstructured responses generic and never render raw CLI stderr or credentials. Inspection may report independent query failures alongside successes; it must not discard structured reconciliation evidence. No failure authorizes blind replay or automatic recovery. - Keep broader lifecycle orchestration behind
gjc sdk session raw globalwith a stable idempotency key or an SDK-core lifecycle facade; the canonical templates do not invent lifecycle routing. - State that approval is a trusted-local procedural safeguard, not capability isolation; Broker and Router retain attachment authority.
Generated user scripts belong in the user's workspace. Only the two canonical templates are owned by this clean-generated bundle.
04 同仓库更多 Skills
gjc-sdk-operate
Operate trusted local GJC sessions through a reviewed broker-bound CLI allowlist with single-use human approval.
★ 3.1k
gjc-sdk-discover
Discover and inspect trusted local GJC sessions through the broker-bound session CLI.
★ 3.1k
gjc-sdk-session
暂无简介
★ 3.1k
gjc-sdk-guides
暂无简介
★ 3.1k
gjc-delegation
Delegate planning and execution workflows to gajae-code via the coordinator MCP server.
★ 3.1k
greet
A greeting skill for testing
★ 3.1k