devisland-approval-proxy
Handles DevIsland proxy daemon logic and approval workflows. Use this for modifying IPC, policy evaluation, or persistence.
Install
mkdir -p .claude/skills/devisland-approval-proxy && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18820" && unzip -o skill.zip -d .claude/skills/devisland-approval-proxy && rm skill.zipInstalls to .claude/skills/devisland-approval-proxy
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Change DevIsland Approval Proxy behavior, IPC framing, policy evaluation, SQLite persistence, pending approval queues, replay logs, PTY transcript handling, fallback policy, or approval-related plugin observation events. Use for AppState, ApprovalProxyController, ApprovalPolicyEngine, SQLiteApprovalStore, HookSocketServer, IPCProtocol, and related tests.Key capabilities
- →Change IPC framing behavior
- →Modify policy evaluation rules
- →Adjust SQLite persistence mechanisms
- →Alter pending approval queue behavior
- →Handle PTY transcript processing
- →Update approval-related plugin observation events
How it works
The skill modifies the app-side proxy daemon's behavior by adjusting components like IPC framing, policy evaluation, or SQLite persistence. It ensures security invariants and non-blocking rules are maintained.
Inputs & outputs
When to use devisland-approval-proxy
- →Modify approval policy evaluation
- →Update IPC protocol handling
- →Debug SQLite persistence issues
- →Adjust pending approval queue behavior
About this skill
DevIsland Approval Proxy
Use this when changing the app-side proxy daemon behavior. Read docs/agent/approval-proxy.md and docs/agent/stability-standards.md before editing.
Boundaries
Keep bridge scripts thin. They may receive stdin, add terminal metadata, forward IPC, and print provider-specific responses. Do not move DB access, policy evaluation, UI rendering, pack loading, audio playback, or long-running work into the bridge.
The macOS app owns:
HookSocketServer/ IPC listener behavior (TCP loopback + Unix socket).BridgeTokenManager/HookEventHandlerIPC token lifecycle and message authentication.ApprovalProxyControllerorchestration.ApprovalPolicyEnginerule evaluation andApprovalRuleServicerule management.SQLiteApprovalStorepersistence.HookEventClassifierevent classification,HookEventRouterrouting/auto-approve judgment, andApprovalQueuePolicypending-queue policy.ProviderAdapterprovider response JSON.ApprovalFlowCoordinatorpending-queue entry, display selection, decision dispatch, and approval timeout.AppStatesession state and notch presentation state (viaApprovalFlowContext).
Plugin observation events are best-effort side effects. They must not gate provider responses, approval queue draining, or persistence required for the approval decision.
Security Invariants
Do not regress these when changing transports or message parsing:
- The TCP listener binds to loopback (
127.0.0.1) only. - Raw JSON on TCP is rejected when a token file is present (authenticated envelope required); legacy raw JSON belongs on the Unix socket path.
- Envelope token validation failures deny the request.
HookSocketServerTestsandGoldenResponseTestslock this behavior — keep them passing unchanged.
Non-Blocking Rules
Do not block the UI or hook response path with heavy work.
- SQLite writes go through the persistence queue.
- AppleScript uses
Processwith timeout, not main-threadNSAppleScript. - Network I/O and pack scans stay off the UI path.
- Best-effort side effects must not change approval/deny behavior.
When the app is unreachable, bridge fallback must preserve the configured policy and avoid freezing the originating CLI.
Session And Approval Flow
Preserve FIFO handling of pending approval requests. Approval timeouts, response handlers, and selected session state must not corrupt each other.
For session close or pruning, clean associated pending requests and PTY buffers. Always consider ptyBuffer.remove(sessionId:) when session lifecycle logic changes.
Tests
Choose focused tests based on the touched area:
ApprovalProxyControllerTestsApprovalPolicyEngineTestsSQLiteApprovalStoreTestsIPCProtocolTestsHookSocketServerTestsGoldenResponseTests(handleMessage → response JSON behavior lock)ApprovalFlowCoordinatorTestsApprovalQueuePolicyTestsApprovalRuleServiceTestsHookEventClassifierTestsHookEventRouterTestsAppStateTestsHookEventNormalizerTestsProviderAdapterTests
Then run:
./scripts/run-tests.sh
Use devisland-change-verification before final handoff.
When not to use it
- →When moving DB access, policy evaluation, or UI rendering into bridge scripts
- →When blocking the UI or hook response path with heavy work
Limitations
- →Bridge scripts must remain thin
- →Does not move DB access, policy evaluation, UI rendering, pack loading, audio playback, or long-running work into the bridge
- →Plugin observation events must not gate provider responses, approval queue draining, or persistence
How it compares
This skill provides a structured approach to modifying the DevIsland Approval Proxy's internal mechanisms, ensuring adherence to security and performance standards, unlike direct code changes that might overlook these constraints.
Compared to similar skills
devisland-approval-proxy side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| devisland-approval-proxy (this skill) | 0 | 24d | Review | Advanced |
| backend-security-coder | 24 | 3mo | No flags | Intermediate |
| xss-testing | 1 | 6mo | Review | Advanced |
| permission-model-change-guide | 1 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by nangchang
View all by nangchang →You might also like
backend-security-coder
sickn33
Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.
xss-testing
Ed1s0nZ
XSS跨站脚本攻击测试的专业技能
permission-model-change-guide
TencentBlueKing
IAM RBAC 权限模型变更规则,涵盖资源类型定义、操作权限配置、权限迁移脚本、IAM 回调实现。当用户修改权限模型、添加新资源类型、配置操作权限或编写权限迁移脚本时使用。
aptos-scanner
0x-Shashi
>-
api-patterns
ngannk-fptu
Security patterns for APIs (REST, GraphQL, tRPC). Broken Object Level Authorization (BOLA), Rate Limiting, Injection, and Mass Assignment.
bullmq-specialist
davila7
BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when: bullmq, bull queue, redis queue, background job, job queue.