{"slug":"alpacahq-alpaca-broker-reconciliation-idempotency","name":"alpaca-broker-reconciliation-idempotency","description":"Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language.","long_description":"---\nname: alpaca-broker-reconciliation-idempotency\ndescription: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language.\n---\n\n# Alpaca — Reconciliation & Idempotency\n\nThis is the skill that separates a demo from production. Alpaca is an **asynchronous, eventually-consistent** system: writes settle later, events can be missed or replayed, some rails emit no events at all, and \"executed\" can still be reversed. Your job is to make your local database a faithful, self-healing mirror of Alpaca's state.\n\n> Read `alpaca-broker-integration`, `alpaca-broker-sse-events`, and the relevant domain skills first. This skill is the architecture that ties them together.\n\n## The core principle\n\n> **Treat Alpaca as the source of truth and your DB as a cache that must converge to it.** Every write is a request, not a fact. Every event is a hint, not a guarantee. Correctness comes from *idempotent* processing plus a *reconciliation* loop — never from assuming any single call or event succeeded exactly once.\n\n## 1. Three layers of defense\n\n```\nLayer 1 — Idempotent writes      : never create a duplicate when you retry\nLayer 2 — Idempotent event intake: never double-process a replayed/duplicate event\nLayer 3 — Reconciliation sweep   : re-pull authoritative state and fix any drift\n```\n\nYou need all three. Layer 1+2 keep you correct in the happy/retry case; Layer 3 catches everything that still slips through (downtime, bugs, missing events, corrections).\n\n## 2. Layer 1 — Idempotent writes\n\nEvery money/order write must be safe to retry, because you can't tell a timeout apart from a success.\n\n- **Orders:** set your own `client_order_id` (≤128 chars) derived from your transaction ID. On a lost response, look the order up via `orders:by_client_order_id` before retrying.\n- **Journals:** send an `Idempotency-Key` header. Same key + same body returns the original journal; same key + different body → `422`. (See `alpaca-broker-journals`.)\n- **Local-first ordering:** write your intent row (with a generated key) *before* the network call, so a crash mid-call leaves a record you can reconcile — never an orphaned Alpaca object you can't find.\n- **Persist the returned Alpaca ID immediately** (`account_id`, `order_id`, `journal_id`, `transfer_id`). It is your only correlation key for events and reconciliation.\n\n## 3. Layer 2 — Idempotent event intake\n\nEvents are **at-least-once**: replay cursors, reconnects, and corrections all cause the same event to arrive more than once.\n\n- **Snapshot-first, keyed on `event_id`.** Insert the raw event with upsert / skip-on-duplicate on `event_id` (a ULID). A duplicate becomes a no-op. This single unique constraint is your dedup boundary.\n- **Key business records on the Alpaca ID**, not on a local autoincrement, with upsert semantics.\n- **Guard transitions by current status.** Before acting, check the record isn't already terminal — so a duplicate \"executed\"/\"filled\" doesn't re-fire a payout or notification.\n- **Lock the row** while mutating (`SELECT … FOR UPDATE` or your engine's equivalent) so concurrent events for one record serialize.\n- **Advance the cursor only after success** (at-least-once, made safe by the above).\n\n## 4. Layer 3 — Reconciliation / heal jobs\n\nA scheduled job that re-pulls authoritative state from Alpaca and upserts it locally. This is what makes the system **self-healing**.\n\n**Canonical nightly heal (lesson):**\n1. For each active account, page through **trade activities** and **non-trade activities** (`GET /v1/accounts/activities`, paginated) for the last *N* days (e.g. 3) — a moving window that re-covers recent days so anything missed by SSE gets backfilled.\n2. Page through **journals** (`GET /v1/journals`) and **transfers** for the same window.\n3. **Upsert** each into your tables keyed on the Alpaca ID (insert-or-update). Re-running is safe and converges.\n4. Bound concurrency (a small worker pool) and respect rate limits (`alpaca-broker-rate-limits-resilience`).\n\nWhy a *window* and not just \"since last run\": it absorbs corrections, late settlements, and any events dropped during a deploy — without rescanning all history every night.\n\n## 5. Polling the rails that have no events\n\nNot everything emits SSE. Where there's no event, you **must poll**.\n\n- **Funding-wallet per-transfer status** (v1beta) is not pushed — poll `GET /v1beta/.../funding_wallet/transfers/{id}` on a schedule.\n- Stagger pollers (e.g. one rail at `:00`, another at `:30`) to spread API load.\n- **Only poll records in a non-terminal state.** Filter your query to `status IN (pending, processing, …)`; once a record reaches a terminal status, drop it from the polling set. This bounds the work and prevents re-notifying.\n- **Gotcha — no GET-by-id on classic wire transfers:** you must `GET /v1/accounts/{id}/transfers?direction=OUTGOING` (a *list*) and match the ID client-side; cache the list per account within a run.\n\n**Lesson:** polling implies latency. Document the expected lag (e.g. \"withdrawal status updates within ~1h\") so product/support set the right expectations.\n\n## 6. Status state-machine mapping\n\nAlpaca exposes several status enums (account, order, journal, transfer, funding-wallet) — each with its own vocabulary. Don't scatter raw Alpaca strings through your app.\n\n- **Define one explicit mapping table** per domain from Alpaca status → your internal status (e.g. `executed`/`COMPLETE` → `COMPLETED`; `rejected`/`canceled`/`returned`/`failed` → `CANCELLED`).\n- **Handle unknown statuses gracefully** — log and skip, never crash. Alpaca adds values (and has shipped bad ones — e.g. a stray `TRD` activity type that consumers had to filter out).\n- **Know which states are terminal** (they differ per enum) so you stop polling/processing them.\n\n## 7. Eventual-consistency hazards to design for\n\n- **`executed`/`COMPLETE` is not always final** — journals can be reversed by cashiering; transfers can be `RETURNED` after appearing done. Keep reconciling past the \"happy\" terminal state for a window.\n- **Corrections create new IDs.** A journal `correct` cancels the original and issues a *new* journal ID carrying the real funds. Reconciliation keyed on event snapshots + Alpaca IDs handles this; logic that mutates the original record in place does not.\n- **`200` means accepted, not settled.** Never confirm money moved to a user off the create response — confirm off the terminal event/poll.\n- **Out-of-order & duplicate events** are normal (see `alpaca-broker-sse-events` §5). Idempotency absorbs them.\n\n## 8. Anti-patterns (seen in the wild)\n\n- ❌ Reconnecting an SSE stream **without** a `since_id` cursor → silently drops every event during the gap. (Fix: persist + replay the cursor.)\n- ❌ Treating an SSE stream as your *only* source → no backstop for missed events. (Fix: add the heal job.)\n- ❌ Blind retry of a journal/order without an idempotency key → double money movement.\n- ❌ Acting on `executed` as irreversible → broken books when a reversal/correction lands.\n- ❌ Dedup keyed on a `confirmed` set instead of a `seen` set → judge/reject churn re-processes forever. Dedup on *everything seen*, key on the Alpaca/event ID.\n\n## 9. Putting it together\n\n```\nWRITE:   local intent row (idempotency key) → Alpaca call → store Alpaca ID\nLIVE:    SSE consumer (cursor-replay, snapshot-keyed dedup, status-guarded upsert)\nPOLL:    schedulers for rails with no events (non-terminal records only)\nHEAL:    nightly window re-pull of activities/journals/transfers → upsert\nMAP:     Alpaca status → internal status, terminal-aware, unknown-tolerant\n```\n\n**Related skills:** event consumption mechanics → `alpaca-broker-sse-events`; idempotency keys per domain → `alpaca-broker-journals`, `alpaca-broker-trading-orders`; polling rails → `alpaca-broker-funding-transfers`; backoff & rate limits in heal jobs → `alpaca-broker-rate-limits-resilience`.\n","tagline":"Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use whe","category":"design-creative","tags":["agent-skill"],"author":"alpacahq","verified":false,"attribution":{"status":"registry_indexed","statusLabel":"Registry indexed","shortLabel":"REGISTRY INDEXED","sourceLabel":"recursive skill source sync","sourceDetail":"alpacahq/alpaca-skills","creatorName":"alpacahq","creatorUrl":"https://github.com/alpacahq","sourceUrl":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","indexedBy":"OpenAgentSkill community index","claimUrl":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency#claim-this-skill","claimCta":"Claim this skill","trustNote":"This listing was indexed from public sources and is not marked official until a maintainer claim is approved.","publicNote":"Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals."},"stats":{"stars":112,"forks":11,"verified_installs":0,"successful_runs":0,"total_outcomes":0,"rating":0,"review_count":0,"quality_score":37.92},"quality":{"score":67,"tier":"promising","label":"Promising","summary":"Useful candidate, but compare it with alternatives before adopting.","signals":[{"label":"GitHub stars","value":"112","tone":"neutral"},{"label":"Freshness","value":"11d ago","tone":"positive"},{"label":"Install ready","value":"Yes","tone":"positive"},{"label":"License","value":"Apache-2.0","tone":"neutral"}],"warnings":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue."]},"trust":{"version":"trust-score-v5","score":62,"base_score":70,"outcome_confidence":0,"tier":"review","label":"Sandbox only","summary":"Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.","recommendedAction":"Run only in a sandbox and compare close alternatives before using it for real work.","decision":{"install_policy":"sandbox_only","auto_install_allowed":false,"human_review_required":true,"sandbox_first":true,"agent_action":"Compare alternatives before installing.","reasoning":["62/100 Trust Score v5","70/100 Trust Score v4 baseline","Needs more real agent outcomes before unattended install","Install path is available","Review before production"],"review_required_when":["The workspace contains production secrets, payments, private customer data, or irreversible actions.","The install command requests shell, network, credential, database, or broad filesystem access.","Outcome evidence is missing, recently failed, or required human review.","Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"]},"dimensions":[{"id":"github_adoption","label":"GitHub adoption","score":62,"weight":0.13,"status":"info","detail":"112 GitHub stars"},{"id":"repo_activity","label":"Stars/forks activity","score":57,"weight":0.08,"status":"warn","detail":"112 stars, 11 forks; issue activity unavailable in current metadata"},{"id":"maintenance","label":"Recent maintenance","score":100,"weight":0.14,"status":"pass","detail":"11d since push"},{"id":"license","label":"License clarity","score":86,"weight":0.09,"status":"pass","detail":"Apache-2.0"},{"id":"documentation","label":"README/SKILL.md completeness","score":76,"weight":0.14,"status":"info","detail":"Public metadata needs stronger README/SKILL.md context"},{"id":"dependency_risk","label":"Dependency/runtime risk","score":56,"weight":0.12,"status":"warn","detail":"command execution surface, network or browser surface"},{"id":"installability","label":"Install availability","score":92,"weight":0.1,"status":"pass","detail":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"},{"id":"install_safety","label":"Install command safety","score":92,"weight":0.1,"status":"pass","detail":"standard package or runtime install path"},{"id":"permission_surface","label":"Permission surface","score":36,"weight":0.07,"status":"fail","detail":"shell or command execution, filesystem or document access"},{"id":"repository","label":"Repository evidence","score":86,"weight":0.04,"status":"pass","detail":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency"},{"id":"review_status","label":"Review status","score":66,"weight":0.05,"status":"info","detail":"AI review data available"},{"id":"agent_outcomes","label":"Agent Proven outcomes","score":54,"weight":0.13,"status":"info","detail":"No agent outcome data yet"}],"checks":[{"status":"info","label":"GitHub adoption","detail":"112 GitHub stars"},{"status":"warn","label":"Stars/forks activity","detail":"112 stars, 11 forks; issue activity unavailable in current metadata"},{"status":"pass","label":"Recent maintenance","detail":"11d since push"},{"status":"pass","label":"License clarity","detail":"Apache-2.0"},{"status":"info","label":"README/SKILL.md completeness","detail":"Public metadata needs stronger README/SKILL.md context"},{"status":"warn","label":"Dependency/runtime risk","detail":"command execution surface, network or browser surface"},{"status":"pass","label":"Install availability","detail":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"},{"status":"pass","label":"Install command safety","detail":"standard package or runtime install path"},{"status":"fail","label":"Permission surface","detail":"shell or command execution, filesystem or document access"},{"status":"pass","label":"Repository evidence","detail":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency"},{"status":"info","label":"Review status","detail":"AI review data available"},{"status":"info","label":"Agent Proven outcomes","detail":"No agent outcome data yet"},{"status":"warn","label":"Ownership","detail":"No approved owner claim yet"},{"status":"pass","label":"OpenAgentSkill usage","detail":"2 views, 0 install copies"},{"status":"info","label":"Agent outcomes","detail":"No agent outcome data yet"}],"strengths":["AI review approved","Install path is available","Repository evidence is available","Recently maintained repository","Install command has no obvious high-risk pattern","Outcome loop is ready but needs first real agent run"],"warnings":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access","No real agent outcome reports yet","Human review required before unattended installation"],"evidence":{"stars":"112 GitHub stars","repoActivity":"112 stars, 11 forks","lastPushed":"11d since push","license":"Apache-2.0","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","install":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","installSafety":"standard package or runtime install path","permissionSurface":"shell or command execution, filesystem or document access","documentation":"Usable metadata, review docs","agentOutcomes":"No agent outcome data yet","agentProvenScore":0,"outcomeConfidence":"0%","installPolicy":"sandbox_only"},"installReadiness":{"ready":true,"command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","policy":"sandbox_only","label":"Sandbox only","notes":["Install path is available","Repository evidence is available","License is declared","No Agent Proven outcome evidence yet","11d since push","Financial domain: human review is required before use in a live investment workflow.","Trust Score v5 requires review or sandbox-only use before install."]},"agentCompatibility":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"riskSummary":{"level":"medium","label":"Review before production","notes":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access"]},"outcomeEvidence":{"total":0,"successes":0,"failures":0,"notRelevant":0,"successRate":null,"installAttempts":0,"riskBlocked":0,"setupRequired":0,"installSuccessRate":null,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"recentSuccessRate":null,"recentFailureRate":null,"uniqueAgents":0,"agentProvenScore":0,"agentProvenLabel":"Needs first agent run","lastOutcomeAt":null,"label":"No agent outcome data yet"},"autoInstall":{"allowed":false,"sandboxRequired":true,"policy":"sandbox_only","reason":"Compare alternatives before installing."},"outcome_loop":{"version":"openagentskill-agent-outcome-v4","required_after_install":true,"endpoint":"/api/agent/outcome","method":"POST","event_id_source":"feedback.event_id, install_receipt.resolve_event_id, or decision_packet.outcome_feedback.event_id","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"required_fields":["event_id","skill_slug","task"],"quality_fields":["task_success","output_quality","error_type","human_review_required","used_in_production","workspace","evidence_url","time_to_useful_ms","source_version"],"ranking_inputs_updated":["Trust Score v5 outcome confidence","Agent Proven Score","Resolve ranking task-fit evidence","Skill detail machine-readable metadata","Outcome leaderboard"]},"agent_contract":{"suited_tasks":["design-creative","agent-skill"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"install_command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","trust_score":62,"trust_version":"trust-score-v5","risk_level":"medium","do_not_use_when":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace","Autonomous investment, trading, tax, or suitability decisions without a qualified human review","Live brokerage, exchange, wallet, or payment credentials outside an explicitly approved sandbox"],"before_install":["Read the audit page and machine-readable metadata.","Confirm the install command, license, and permission surface fit the workspace.","Get explicit human approval or choose an alternative before installing."],"after_run":["Report the outcome to /api/agent/outcome using the resolve event id.","Include output_quality, workspace, human_review_required, and evidence_url when available.","Re-resolve before broad production rollout."]},"bestFor":["design-creative","agent-skill"],"doNotUseFor":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace","Autonomous investment, trading, tax, or suitability decisions without a qualified human review","Live brokerage, exchange, wallet, or payment credentials outside an explicitly approved sandbox"],"knownRisks":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"],"backward_compatible":{"trust_score_v4":{"version":"trust-score-v4","score":70,"tier":"review","label":"Manual review","summary":"Potentially useful, but at least one trust signal needs human inspection."}}},"trust_score_v5":{"version":"trust-score-v5","score":62,"base_score":70,"outcome_confidence":0,"tier":"review","label":"Sandbox only","summary":"Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.","recommendedAction":"Run only in a sandbox and compare close alternatives before using it for real work.","decision":{"install_policy":"sandbox_only","auto_install_allowed":false,"human_review_required":true,"sandbox_first":true,"agent_action":"Compare alternatives before installing.","reasoning":["62/100 Trust Score v5","70/100 Trust Score v4 baseline","Needs more real agent outcomes before unattended install","Install path is available","Review before production"],"review_required_when":["The workspace contains production secrets, payments, private customer data, or irreversible actions.","The install command requests shell, network, credential, database, or broad filesystem access.","Outcome evidence is missing, recently failed, or required human review.","Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace"]},"dimensions":[{"id":"github_adoption","label":"GitHub adoption","score":62,"weight":0.13,"status":"info","detail":"112 GitHub stars"},{"id":"repo_activity","label":"Stars/forks activity","score":57,"weight":0.08,"status":"warn","detail":"112 stars, 11 forks; issue activity unavailable in current metadata"},{"id":"maintenance","label":"Recent maintenance","score":100,"weight":0.14,"status":"pass","detail":"11d since push"},{"id":"license","label":"License clarity","score":86,"weight":0.09,"status":"pass","detail":"Apache-2.0"},{"id":"documentation","label":"README/SKILL.md completeness","score":76,"weight":0.14,"status":"info","detail":"Public metadata needs stronger README/SKILL.md context"},{"id":"dependency_risk","label":"Dependency/runtime risk","score":56,"weight":0.12,"status":"warn","detail":"command execution surface, network or browser surface"},{"id":"installability","label":"Install availability","score":92,"weight":0.1,"status":"pass","detail":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"},{"id":"install_safety","label":"Install command safety","score":92,"weight":0.1,"status":"pass","detail":"standard package or runtime install path"},{"id":"permission_surface","label":"Permission surface","score":36,"weight":0.07,"status":"fail","detail":"shell or command execution, filesystem or document access"},{"id":"repository","label":"Repository evidence","score":86,"weight":0.04,"status":"pass","detail":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency"},{"id":"review_status","label":"Review status","score":66,"weight":0.05,"status":"info","detail":"AI review data available"},{"id":"agent_outcomes","label":"Agent Proven outcomes","score":54,"weight":0.13,"status":"info","detail":"No agent outcome data yet"}],"checks":[{"status":"info","label":"GitHub adoption","detail":"112 GitHub stars"},{"status":"warn","label":"Stars/forks activity","detail":"112 stars, 11 forks; issue activity unavailable in current metadata"},{"status":"pass","label":"Recent maintenance","detail":"11d since push"},{"status":"pass","label":"License clarity","detail":"Apache-2.0"},{"status":"info","label":"README/SKILL.md completeness","detail":"Public metadata needs stronger README/SKILL.md context"},{"status":"warn","label":"Dependency/runtime risk","detail":"command execution surface, network or browser surface"},{"status":"pass","label":"Install availability","detail":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"},{"status":"pass","label":"Install command safety","detail":"standard package or runtime install path"},{"status":"fail","label":"Permission surface","detail":"shell or command execution, filesystem or document access"},{"status":"pass","label":"Repository evidence","detail":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency"},{"status":"info","label":"Review status","detail":"AI review data available"},{"status":"info","label":"Agent Proven outcomes","detail":"No agent outcome data yet"},{"status":"warn","label":"Ownership","detail":"No approved owner claim yet"},{"status":"pass","label":"OpenAgentSkill usage","detail":"2 views, 0 install copies"},{"status":"info","label":"Agent outcomes","detail":"No agent outcome data yet"}],"strengths":["AI review approved","Install path is available","Repository evidence is available","Recently maintained repository","Install command has no obvious high-risk pattern","Outcome loop is ready but needs first real agent run"],"warnings":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access","No real agent outcome reports yet","Human review required before unattended installation"],"evidence":{"stars":"112 GitHub stars","repoActivity":"112 stars, 11 forks","lastPushed":"11d since push","license":"Apache-2.0","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","install":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","installSafety":"standard package or runtime install path","permissionSurface":"shell or command execution, filesystem or document access","documentation":"Usable metadata, review docs","agentOutcomes":"No agent outcome data yet","agentProvenScore":0,"outcomeConfidence":"0%","installPolicy":"sandbox_only"},"installReadiness":{"ready":true,"command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","policy":"sandbox_only","label":"Sandbox only","notes":["Install path is available","Repository evidence is available","License is declared","No Agent Proven outcome evidence yet","11d since push","Financial domain: human review is required before use in a live investment workflow.","Trust Score v5 requires review or sandbox-only use before install."]},"agentCompatibility":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"riskSummary":{"level":"medium","label":"Review before production","notes":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access"]},"outcomeEvidence":{"total":0,"successes":0,"failures":0,"notRelevant":0,"successRate":null,"installAttempts":0,"riskBlocked":0,"setupRequired":0,"installSuccessRate":null,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"recentSuccessRate":null,"recentFailureRate":null,"uniqueAgents":0,"agentProvenScore":0,"agentProvenLabel":"Needs first agent run","lastOutcomeAt":null,"label":"No agent outcome data yet"},"autoInstall":{"allowed":false,"sandboxRequired":true,"policy":"sandbox_only","reason":"Compare alternatives before installing."},"outcome_loop":{"version":"openagentskill-agent-outcome-v4","required_after_install":true,"endpoint":"/api/agent/outcome","method":"POST","event_id_source":"feedback.event_id, install_receipt.resolve_event_id, or decision_packet.outcome_feedback.event_id","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"required_fields":["event_id","skill_slug","task"],"quality_fields":["task_success","output_quality","error_type","human_review_required","used_in_production","workspace","evidence_url","time_to_useful_ms","source_version"],"ranking_inputs_updated":["Trust Score v5 outcome confidence","Agent Proven Score","Resolve ranking task-fit evidence","Skill detail machine-readable metadata","Outcome leaderboard"]},"agent_contract":{"suited_tasks":["design-creative","agent-skill"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"install_command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","trust_score":62,"trust_version":"trust-score-v5","risk_level":"medium","do_not_use_when":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace","Autonomous investment, trading, tax, or suitability decisions without a qualified human review","Live brokerage, exchange, wallet, or payment credentials outside an explicitly approved sandbox"],"before_install":["Read the audit page and machine-readable metadata.","Confirm the install command, license, and permission surface fit the workspace.","Get explicit human approval or choose an alternative before installing."],"after_run":["Report the outcome to /api/agent/outcome using the resolve event id.","Include output_quality, workspace, human_review_required, and evidence_url when available.","Re-resolve before broad production rollout."]},"bestFor":["design-creative","agent-skill"],"doNotUseFor":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace","Autonomous investment, trading, tax, or suitability decisions without a qualified human review","Live brokerage, exchange, wallet, or payment credentials outside an explicitly approved sandbox"],"knownRisks":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"],"backward_compatible":{"trust_score_v4":{"version":"trust-score-v4","score":70,"tier":"review","label":"Manual review","summary":"Potentially useful, but at least one trust signal needs human inspection."}}},"trust_score_v4":{"version":"trust-score-v4","score":70,"tier":"review","label":"Manual review","summary":"Potentially useful, but at least one trust signal needs human inspection.","recommendedAction":"Inspect the repository, license, and recent activity before connecting it to agent workflows.","dimensions":[{"id":"github_adoption","label":"GitHub adoption","score":62,"weight":0.13,"status":"info","detail":"112 GitHub stars"},{"id":"repo_activity","label":"Stars/forks activity","score":57,"weight":0.08,"status":"warn","detail":"112 stars, 11 forks; issue activity unavailable in current metadata"},{"id":"maintenance","label":"Recent maintenance","score":100,"weight":0.14,"status":"pass","detail":"11d since push"},{"id":"license","label":"License clarity","score":86,"weight":0.09,"status":"pass","detail":"Apache-2.0"},{"id":"documentation","label":"README/SKILL.md completeness","score":76,"weight":0.14,"status":"info","detail":"Public metadata needs stronger README/SKILL.md context"},{"id":"dependency_risk","label":"Dependency/runtime risk","score":56,"weight":0.12,"status":"warn","detail":"command execution surface, network or browser surface"},{"id":"installability","label":"Install availability","score":92,"weight":0.1,"status":"pass","detail":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"},{"id":"install_safety","label":"Install command safety","score":92,"weight":0.1,"status":"pass","detail":"standard package or runtime install path"},{"id":"permission_surface","label":"Permission surface","score":36,"weight":0.07,"status":"fail","detail":"shell or command execution, filesystem or document access"},{"id":"repository","label":"Repository evidence","score":86,"weight":0.04,"status":"pass","detail":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency"},{"id":"review_status","label":"Review status","score":66,"weight":0.05,"status":"info","detail":"AI review data available"},{"id":"agent_outcomes","label":"Agent Proven outcomes","score":54,"weight":0.13,"status":"info","detail":"No agent outcome data yet"}],"checks":[{"status":"info","label":"GitHub adoption","detail":"112 GitHub stars"},{"status":"warn","label":"Stars/forks activity","detail":"112 stars, 11 forks; issue activity unavailable in current metadata"},{"status":"pass","label":"Recent maintenance","detail":"11d since push"},{"status":"pass","label":"License clarity","detail":"Apache-2.0"},{"status":"info","label":"README/SKILL.md completeness","detail":"Public metadata needs stronger README/SKILL.md context"},{"status":"warn","label":"Dependency/runtime risk","detail":"command execution surface, network or browser surface"},{"status":"pass","label":"Install availability","detail":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"},{"status":"pass","label":"Install command safety","detail":"standard package or runtime install path"},{"status":"fail","label":"Permission surface","detail":"shell or command execution, filesystem or document access"},{"status":"pass","label":"Repository evidence","detail":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency"},{"status":"info","label":"Review status","detail":"AI review data available"},{"status":"info","label":"Agent Proven outcomes","detail":"No agent outcome data yet"},{"status":"warn","label":"Ownership","detail":"No approved owner claim yet"},{"status":"pass","label":"OpenAgentSkill usage","detail":"2 views, 0 install copies"},{"status":"info","label":"Agent outcomes","detail":"No agent outcome data yet"}],"strengths":["AI review approved","Install path is available","Repository evidence is available","Recently maintained repository","Install command has no obvious high-risk pattern"],"warnings":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"],"evidence":{"stars":"112 GitHub stars","repoActivity":"112 stars, 11 forks","lastPushed":"11d since push","license":"Apache-2.0","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","install":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","installSafety":"standard package or runtime install path","permissionSurface":"shell or command execution, filesystem or document access","documentation":"Usable metadata, review docs","agentOutcomes":"No agent outcome data yet"},"installReadiness":{"ready":true,"command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","policy":"sandbox_only","label":"Sandbox only","notes":["Install path is available","Repository evidence is available","License is declared","No Agent Proven outcome evidence yet","11d since push","Financial domain: human review is required before use in a live investment workflow."]},"agentCompatibility":["Codex","Claude Code","Cursor","OpenAgentSkill CLI"],"riskSummary":{"level":"medium","label":"Review before production","notes":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access"]},"outcomeEvidence":{"total":0,"successes":0,"failures":0,"notRelevant":0,"successRate":null,"installAttempts":0,"riskBlocked":0,"setupRequired":0,"installSuccessRate":null,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"recentSuccessRate":null,"recentFailureRate":null,"uniqueAgents":0,"agentProvenScore":0,"agentProvenLabel":"Needs first agent run","lastOutcomeAt":null,"label":"No agent outcome data yet"},"autoInstall":{"allowed":false,"sandboxRequired":true,"policy":"sandbox_only","reason":"Human review or sandbox validation is required before automatic installation."},"bestFor":["design-creative","agent-skill"],"doNotUseFor":["Production credentials, payments, or irreversible account changes without explicit human review","Sensitive private data before reviewing repository code, license, and permission surface","Automatic installation in a production workspace","Autonomous investment, trading, tax, or suitability decisions without a qualified human review","Live brokerage, exchange, wallet, or payment credentials outside an explicitly approved sandbox"],"knownRisks":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"]},"agent_proven":{"version":"agent-proven-v1","score":0,"tier":"unproven","label":"Needs first agent run","summary":"No agent outcome reports yet. Use Resolve, run one narrow sandbox task, then report the result.","metrics":{"totalOutcomes":0,"successfulOutcomes":0,"failedOutcomes":0,"installAttempts":0,"installSuccessRate":null,"successRate":null,"recentSuccessRate":null,"recentFailureRate":null,"riskBlocked":0,"setupRequired":0,"notRelevant":0,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"uniqueAgents":0,"lastOutcomeAt":null},"signals":[],"penalties":["No real agent outcome evidence yet"]},"outcome_stats":null,"safety":{"score":44,"level":"avoid_auto_install","label":"Avoid automatic install","safety_tier":{"tier":"blocked","label":"Blocked for auto-install","badge":"BLOCKED","summary":"This skill should not be selected by an agent without explicit human security review.","recommended_action":"Do not auto-install. Inspect the source, dependencies, and permission surface first.","auto_install_policy":"block","reasons":["Audit risk exceeds the requested agent policy","Audit classified this skill as risky","Audit risk risky exceeds max_risk=medium"]},"auto_install_allowed":false,"human_review_required":true,"blocked":true,"audit_risk":"risky","permission_hints":[{"id":"shell","label":"Shell or command execution","reason":"Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.","severity":"high"},{"id":"network","label":"Network access","reason":"Skill likely fetches remote pages, APIs, repositories, or external services.","severity":"medium"},{"id":"filesystem","label":"Filesystem access","reason":"Skill may read or write project files, documents, generated artifacts, or local workspace state.","severity":"medium"},{"id":"database","label":"Database access","reason":"Skill may inspect schemas, query databases, or work with persistent stores.","severity":"medium"}],"policy_warnings":["Audit risk risky exceeds max_risk=medium","High-risk permission hints: Shell or command execution","Dependency or permission surface needs review"],"constraints_applied":{"max_risk":"medium","needs_install_command":true,"min_stars":0}},"safety_gate":{"tier":"blocked","label":"Blocked for auto-install","badge":"BLOCKED","auto_install_policy":"block","auto_install_allowed":false,"blocked":true,"human_review_required":true,"recommended_action":"Do not auto-install. Inspect the source, dependencies, and permission surface first.","reasons":["Audit risk exceeds the requested agent policy","Audit classified this skill as risky","Audit risk risky exceeds max_risk=medium"]},"eval":{"version":"openagentskill-skill-eval-v1","status":"failed","score":67,"risk_level":"high","decision":{"recommendation":"do_not_auto_install","reason":"Audit score: Risky","auto_install_allowed":false,"policy":"block","human_review_required":true},"blockers":["Audit score: Risky","Agent safety gate: This skill should not be selected by an agent without explicit human security review.","Permission surface: shell or command execution, filesystem or document access"],"warnings":["Trust score: Potentially useful, but at least one trust signal needs human inspection.","README/SKILL.md completeness: Public metadata needs stronger README/SKILL.md context","Audit risk risky exceeds max_risk=medium","High-risk permission hints: Shell or command execution","Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision","Potential broker, wallet, exchange, or real-money execution surface; sandbox and explicit approval are required","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review"],"validation_plan":["Inspect repository, README/SKILL.md, license, and recent commits before production use.","Install in an isolated workspace or sandbox with no production secrets available.","Run the smallest representative task and record files touched, commands run, network access, and outputs.","Compare the selected skill against at least one alternative when the eval status is review or failed.","Promote only after the agent reports a successful verification result and unresolved warnings are accepted."],"checks":[{"id":"task_fit","label":"Task fit","status":"pass","score":84,"required_for_auto_install":true,"detail":"Task wording matches this skill metadata.","evidence":["Evaluate alpaca-broker-reconciliation-idempotency before installing it in an agent workflow","design-creative","Local desktop workflows; Claude Code teams; builders willing to evaluate younger projects"]},{"id":"install_path","label":"Install path","status":"pass","score":92,"required_for_auto_install":true,"detail":"Install handoff is available.","evidence":["npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"]},{"id":"install_safety","label":"Install command safety","status":"pass","score":92,"required_for_auto_install":true,"detail":"standard package or runtime install path","evidence":["npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency"]},{"id":"trust_score","label":"Trust score","status":"warn","score":70,"required_for_auto_install":true,"detail":"Potentially useful, but at least one trust signal needs human inspection.","evidence":["Manual review","112 GitHub stars","Apache-2.0"]},{"id":"audit_score","label":"Audit score","status":"fail","score":76,"required_for_auto_install":true,"detail":"Risky","evidence":["Dependency or permission surface needs review"]},{"id":"agent_safety_gate","label":"Agent safety gate","status":"fail","score":44,"required_for_auto_install":true,"detail":"This skill should not be selected by an agent without explicit human security review.","evidence":["Do not auto-install. Inspect the source, dependencies, and permission surface first.","Audit risk exceeds the requested agent policy"]},{"id":"readme_skillmd_completeness","label":"README/SKILL.md completeness","status":"warn","score":76,"required_for_auto_install":false,"detail":"Public metadata needs stronger README/SKILL.md context","evidence":["Usable metadata, review docs"]},{"id":"license_clarity","label":"License clarity","status":"pass","score":86,"required_for_auto_install":true,"detail":"Apache-2.0","evidence":["Apache-2.0"]},{"id":"recent_maintenance","label":"Recent maintenance","status":"pass","score":100,"required_for_auto_install":false,"detail":"11d since push","evidence":["11d since push"]},{"id":"permission_surface","label":"Permission surface","status":"fail","score":36,"required_for_auto_install":true,"detail":"shell or command execution, filesystem or document access","evidence":["Shell or command execution: high","Network access: medium","Filesystem access: medium"]},{"id":"alternatives","label":"Alternatives available","status":"info","score":55,"required_for_auto_install":false,"detail":"No close alternatives were found in the current shortlist.","evidence":[]}],"endpoints":{"web":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency/evals","api":"/api/agent/evals?slug=alpacahq-alpaca-broker-reconciliation-idempotency","text":"/api/agent/evals?slug=alpacahq-alpaca-broker-reconciliation-idempotency&format=text"}},"agent_readable_metadata":{"version":"openagentskill-agent-metadata-v2","skill":{"slug":"alpacahq-alpaca-broker-reconciliation-idempotency","name":"alpaca-broker-reconciliation-idempotency","description":"Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language.","category":"design-creative","url":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","github_repo":"alpacahq/alpaca-skills"},"suited_tasks":["Local desktop workflows","Claude Code teams","builders willing to evaluate younger projects","Navigate local resources","Run repeatable desktop actions","Verify file outputs","Chunk documents","Create embeddings"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI","CLI"],"install":{"command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","ready":true,"targets":[{"id":"openagentskill-cli","label":"CLI","kind":"command","value":"npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.3.0/openagentskill-0.3.0.tgz add alpacahq-alpaca-broker-reconciliation-idempotency"},{"id":"codex","label":"Codex","kind":"agent-prompt","value":"Install the \"alpaca-broker-reconciliation-idempotency\" agent skill from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"codex\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"claude-code","label":"Claude Code","kind":"agent-prompt","value":"Add \"alpaca-broker-reconciliation-idempotency\" as a Claude Code skill from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency. Inspect the skill instructions, place the reusable skill files in the appropriate local skills location for this project, and report the activation steps. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"claude-code\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"cursor","label":"Cursor","kind":"agent-prompt","value":"Turn \"alpaca-broker-reconciliation-idempotency\" from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency into a reusable Cursor project rule or agent instruction. Preserve the core workflow, adapt paths to this repo, and keep the rule scoped to tasks where it is relevant. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"cursor\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."}],"handoff_url":"https://www.openagentskill.com/api/skills/alpacahq-alpaca-broker-reconciliation-idempotency/install","manifest_url":"https://www.openagentskill.com/api/registry/manifest/alpacahq-alpaca-broker-reconciliation-idempotency"},"trust":{"score":70,"label":"Manual review","version":"trust-score-v4","install_policy":"sandbox_only","evidence":{"stars":"112 GitHub stars","repoActivity":"112 stars, 11 forks","lastPushed":"11d since push","license":"Apache-2.0","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","install":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","installSafety":"standard package or runtime install path","permissionSurface":"shell or command execution, filesystem or document access","documentation":"Usable metadata, review docs","agentOutcomes":"No agent outcome data yet"},"outcome_evidence":{"total":0,"successes":0,"failures":0,"not_relevant":0,"success_rate":null,"recent_success_rate":null,"recent_failure_rate":null,"install_attempts":0,"install_success_rate":null,"risk_blocked":0,"setup_required":0,"avg_output_quality":null,"production_outcomes":0,"last_outcome_at":null,"label":"No agent outcome data yet"},"auto_install":{"allowed":false,"sandbox_required":true,"reason":"Human review or sandbox validation is required before automatic installation."},"best_for":["design-creative","agent-skill"],"known_risks":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"]},"agent_proven":{"version":"agent-proven-v1","score":0,"tier":"unproven","label":"Needs first agent run","summary":"No agent outcome reports yet. Use Resolve, run one narrow sandbox task, then report the result.","metrics":{"totalOutcomes":0,"successfulOutcomes":0,"failedOutcomes":0,"installAttempts":0,"installSuccessRate":null,"successRate":null,"recentSuccessRate":null,"recentFailureRate":null,"riskBlocked":0,"setupRequired":0,"notRelevant":0,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"uniqueAgents":0,"lastOutcomeAt":null},"signals":[],"penalties":["No real agent outcome evidence yet"]},"audit":{"score":76,"risk_level":"risky","risk_label":"Risky","warnings":["Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision","Potential broker, wallet, exchange, or real-money execution surface; sandbox and explicit approval are required","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review"]},"safety_gate":{"tier":"blocked","label":"Blocked for auto-install","auto_install_policy":"block","auto_install_allowed":false,"human_review_required":true,"blocked":true,"recommended_action":"Do not auto-install. Inspect the source, dependencies, and permission surface first."},"quality":{"score":67,"label":"Promising"},"supply":{"track":"Coding and developer agents","scenario":"GitHub automation","maintenance":"11d since push","risk":"Risky"},"alternative_skills":[],"do_not_use_when":["teams that need a vendor-supported SLA","production agents without a repository review","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Audit risk risky exceeds max_risk=medium","High-risk permission hints: Shell or command execution","Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision"],"agent_contract":{"task_input":"Use alpaca-broker-reconciliation-idempotency in an agent workflow","recommended_action":"Do not auto-install. Inspect the source, dependencies, and permission surface first.","install_policy":"block","minimum_review_before_use":["Trust: 70/100 Manual review","Audit: 76/100 Risky","Safety: 44/100 Avoid automatic install","Review repository, license, install command, and permission surface before production use."],"expected_agent_output":{"selected_skill":"alpacahq-alpaca-broker-reconciliation-idempotency (alpaca-broker-reconciliation-idempotency)","install_command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","risk_summary":"Risky; Blocked for auto-install; Review before production","verification_result":"Report the smallest successful task, files touched, warnings, and any missing setup."}},"outcome_feedback":{"endpoint":"https://www.openagentskill.com/api/agent/outcome","method":"POST","requires_resolve_event_id":true,"event_id_source":"Use install_receipt.outcome_feedback.event_id or feedback.event_id returned by /api/agent/resolve for the current task.","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"payload_template":{"event_id":"<install_receipt.outcome_feedback.event_id or feedback.event_id from /api/agent/resolve>","skill_slug":"alpacahq-alpaca-broker-reconciliation-idempotency","task":"Use alpaca-broker-reconciliation-idempotency in an agent workflow","agent":"codex","outcome":"success","install_used":true,"risk_blocked":false,"setup_required":false,"task_success":true,"output_quality":4,"error_type":null,"human_review_required":false,"workspace":"sandbox","time_to_useful_ms":120000,"notes":"Report the smallest successful task, setup friction, files touched, and risk notes."}},"endpoints":{"web":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency","api":"https://www.openagentskill.com/api/agent/skills/alpacahq-alpaca-broker-reconciliation-idempotency","audit":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency/audit","eval":"https://www.openagentskill.com/api/agent/evals?slug=alpacahq-alpaca-broker-reconciliation-idempotency&task=Use%20alpaca-broker-reconciliation-idempotency%20in%20an%20agent%20workflow&max_risk=medium","resolve":"https://www.openagentskill.com/api/agent/resolve?task=Use%20alpaca-broker-reconciliation-idempotency%20in%20an%20agent%20workflow&agent=codex&max_risk=medium","receipt":"https://www.openagentskill.com/api/agent/receipt?task=Use%20alpaca-broker-reconciliation-idempotency%20in%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text","install":"https://www.openagentskill.com/api/skills/alpacahq-alpaca-broker-reconciliation-idempotency/install","manifest":"https://www.openagentskill.com/api/registry/manifest/alpacahq-alpaca-broker-reconciliation-idempotency"}},"machine_metadata":{"version":"openagentskill-agent-metadata-v2","skill":{"slug":"alpacahq-alpaca-broker-reconciliation-idempotency","name":"alpaca-broker-reconciliation-idempotency","description":"Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language.","category":"design-creative","url":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","github_repo":"alpacahq/alpaca-skills"},"suited_tasks":["Local desktop workflows","Claude Code teams","builders willing to evaluate younger projects","Navigate local resources","Run repeatable desktop actions","Verify file outputs","Chunk documents","Create embeddings"],"suited_agents":["Codex","Claude Code","Cursor","OpenAgentSkill CLI","CLI"],"install":{"command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","ready":true,"targets":[{"id":"openagentskill-cli","label":"CLI","kind":"command","value":"npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.3.0/openagentskill-0.3.0.tgz add alpacahq-alpaca-broker-reconciliation-idempotency"},{"id":"codex","label":"Codex","kind":"agent-prompt","value":"Install the \"alpaca-broker-reconciliation-idempotency\" agent skill from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"codex\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"claude-code","label":"Claude Code","kind":"agent-prompt","value":"Add \"alpaca-broker-reconciliation-idempotency\" as a Claude Code skill from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency. Inspect the skill instructions, place the reusable skill files in the appropriate local skills location for this project, and report the activation steps. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"claude-code\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."},{"id":"cursor","label":"Cursor","kind":"agent-prompt","value":"Turn \"alpaca-broker-reconciliation-idempotency\" from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency into a reusable Cursor project rule or agent instruction. Preserve the core workflow, adapt paths to this repo, and keep the rule scoped to tasks where it is relevant. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"cursor\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes."}],"handoff_url":"https://www.openagentskill.com/api/skills/alpacahq-alpaca-broker-reconciliation-idempotency/install","manifest_url":"https://www.openagentskill.com/api/registry/manifest/alpacahq-alpaca-broker-reconciliation-idempotency"},"trust":{"score":70,"label":"Manual review","version":"trust-score-v4","install_policy":"sandbox_only","evidence":{"stars":"112 GitHub stars","repoActivity":"112 stars, 11 forks","lastPushed":"11d since push","license":"Apache-2.0","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","install":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","installSafety":"standard package or runtime install path","permissionSurface":"shell or command execution, filesystem or document access","documentation":"Usable metadata, review docs","agentOutcomes":"No agent outcome data yet"},"outcome_evidence":{"total":0,"successes":0,"failures":0,"not_relevant":0,"success_rate":null,"recent_success_rate":null,"recent_failure_rate":null,"install_attempts":0,"install_success_rate":null,"risk_blocked":0,"setup_required":0,"avg_output_quality":null,"production_outcomes":0,"last_outcome_at":null,"label":"No agent outcome data yet"},"auto_install":{"allowed":false,"sandbox_required":true,"reason":"Human review or sandbox validation is required before automatic installation."},"best_for":["design-creative","agent-skill"],"known_risks":["The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"]},"agent_proven":{"version":"agent-proven-v1","score":0,"tier":"unproven","label":"Needs first agent run","summary":"No agent outcome reports yet. Use Resolve, run one narrow sandbox task, then report the result.","metrics":{"totalOutcomes":0,"successfulOutcomes":0,"failedOutcomes":0,"installAttempts":0,"installSuccessRate":null,"successRate":null,"recentSuccessRate":null,"recentFailureRate":null,"riskBlocked":0,"setupRequired":0,"notRelevant":0,"avgOutputQuality":null,"avgTimeToUsefulMs":null,"productionOutcomes":0,"humanReviewRequired":0,"uniqueAgents":0,"lastOutcomeAt":null},"signals":[],"penalties":["No real agent outcome evidence yet"]},"audit":{"score":76,"risk_level":"risky","risk_label":"Risky","warnings":["Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision","Potential broker, wallet, exchange, or real-money execution surface; sandbox and explicit approval are required","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review"]},"safety_gate":{"tier":"blocked","label":"Blocked for auto-install","auto_install_policy":"block","auto_install_allowed":false,"human_review_required":true,"blocked":true,"recommended_action":"Do not auto-install. Inspect the source, dependencies, and permission surface first."},"quality":{"score":67,"label":"Promising"},"supply":{"track":"Coding and developer agents","scenario":"GitHub automation","maintenance":"11d since push","risk":"Risky"},"alternative_skills":[],"do_not_use_when":["teams that need a vendor-supported SLA","production agents without a repository review","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Audit risk risky exceeds max_risk=medium","High-risk permission hints: Shell or command execution","Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision"],"agent_contract":{"task_input":"Use alpaca-broker-reconciliation-idempotency in an agent workflow","recommended_action":"Do not auto-install. Inspect the source, dependencies, and permission surface first.","install_policy":"block","minimum_review_before_use":["Trust: 70/100 Manual review","Audit: 76/100 Risky","Safety: 44/100 Avoid automatic install","Review repository, license, install command, and permission surface before production use."],"expected_agent_output":{"selected_skill":"alpacahq-alpaca-broker-reconciliation-idempotency (alpaca-broker-reconciliation-idempotency)","install_command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","risk_summary":"Risky; Blocked for auto-install; Review before production","verification_result":"Report the smallest successful task, files touched, warnings, and any missing setup."}},"outcome_feedback":{"endpoint":"https://www.openagentskill.com/api/agent/outcome","method":"POST","requires_resolve_event_id":true,"event_id_source":"Use install_receipt.outcome_feedback.event_id or feedback.event_id returned by /api/agent/resolve for the current task.","expected_outcomes":["success","failed","not_relevant","blocked_by_risk","setup_required"],"payload_template":{"event_id":"<install_receipt.outcome_feedback.event_id or feedback.event_id from /api/agent/resolve>","skill_slug":"alpacahq-alpaca-broker-reconciliation-idempotency","task":"Use alpaca-broker-reconciliation-idempotency in an agent workflow","agent":"codex","outcome":"success","install_used":true,"risk_blocked":false,"setup_required":false,"task_success":true,"output_quality":4,"error_type":null,"human_review_required":false,"workspace":"sandbox","time_to_useful_ms":120000,"notes":"Report the smallest successful task, setup friction, files touched, and risk notes."}},"endpoints":{"web":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency","api":"https://www.openagentskill.com/api/agent/skills/alpacahq-alpaca-broker-reconciliation-idempotency","audit":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency/audit","eval":"https://www.openagentskill.com/api/agent/evals?slug=alpacahq-alpaca-broker-reconciliation-idempotency&task=Use%20alpaca-broker-reconciliation-idempotency%20in%20an%20agent%20workflow&max_risk=medium","resolve":"https://www.openagentskill.com/api/agent/resolve?task=Use%20alpaca-broker-reconciliation-idempotency%20in%20an%20agent%20workflow&agent=codex&max_risk=medium","receipt":"https://www.openagentskill.com/api/agent/receipt?task=Use%20alpaca-broker-reconciliation-idempotency%20in%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text","install":"https://www.openagentskill.com/api/skills/alpacahq-alpaca-broker-reconciliation-idempotency/install","manifest":"https://www.openagentskill.com/api/registry/manifest/alpacahq-alpaca-broker-reconciliation-idempotency"}},"supply_profile":{"track":{"slug":"coding","label":"Coding and developer agents","shortLabel":"Coding","description":"Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills."},"scenario":{"label":"GitHub automation","description":"I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.","useCases":[{"slug":"local-desktop","title":"Local desktop"},{"slug":"rag-knowledge","title":"RAG and knowledge"},{"slug":"workflow-automation","title":"Workflow automation"}]},"applicableAgents":["Claude Code","Cursor","CLI","Codex"],"install":{"ready":true,"command":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","primaryTarget":"CLI","targetCount":4},"githubQuality":{"stars":112,"starsLabel":"112","forks":11,"license":"Apache-2.0","qualityScore":67,"trustScore":70,"auditScore":76},"maintenance":{"status":"fresh","label":"11d since push","daysSincePush":11,"lastPushedAt":"2026-08-25T20:31:34+00:00"},"risk":{"level":"risky","label":"Risky","requiresReview":true,"notes":["Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision","Potential broker, wallet, exchange, or real-money execution surface; sandbox and explicit approval are required","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue."]},"coverageTags":["Coding","GitHub automation","design-creative","agent-skill"]},"audit":{"audit_score":76,"risk_level":"risky","risk_label":"Risky","quality_score":67,"trust_score":70,"maintenance_score":100,"security_score":73,"install_score":92,"warnings":["Dependency or permission surface needs review","Permission surface may require sandboxing","Financial research output is not financial advice; require human review before any live investment decision","Potential broker, wallet, exchange, or real-money execution surface; sandbox and explicit approval are required","The skill references other skills (alpaca-broker-integration, alpaca-broker-sse-events, etc.) which may not be available in all contexts, but this is a minor dependency issue.","Financial research output is not financial advice; require human review before any live investment decision.","This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.","Quality score needs review","Permission surface needs review: shell or command execution, filesystem or document access","Stars/forks activity: 112 stars, 11 forks; issue activity unavailable in current metadata","Dependency/runtime risk: command execution surface, network or browser surface","Permission surface: shell or command execution, filesystem or document access"]},"quality_signals":{"model":"v2","star_score":14.37,"usage_score":0,"review_score":5.55,"metadata_score":3,"freshness_score":15},"platforms":["Claude Code","Cursor"],"use_cases":[{"slug":"local-desktop","title":"Local desktop","url":"https://www.openagentskill.com/use-cases/local-desktop"},{"slug":"rag-knowledge","title":"RAG and knowledge","url":"https://www.openagentskill.com/use-cases/rag-knowledge"},{"slug":"workflow-automation","title":"Workflow automation","url":"https://www.openagentskill.com/use-cases/workflow-automation"},{"slug":"document-processing","title":"Document processing","url":"https://www.openagentskill.com/use-cases/document-processing"}],"stacks":[{"slug":"frontend-product-ui","title":"Frontend and UI","url":"https://www.openagentskill.com/collections/frontend-product-ui"},{"slug":"rag-knowledge-base","title":"RAG knowledge base","url":"https://www.openagentskill.com/collections/rag-knowledge-base"},{"slug":"content-growth-agent","title":"Content growth agent","url":"https://www.openagentskill.com/collections/content-growth-agent"}],"install":"npx skills add alpacahq/alpaca-skills --skill alpaca-broker-reconciliation-idempotency","install_targets":[{"id":"openagentskill-cli","label":"CLI","title":"OpenAgentSkill CLI","kind":"command","value":"npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.3.0/openagentskill-0.3.0.tgz add alpacahq-alpaca-broker-reconciliation-idempotency","description":"Resolve policy, run the source installer safely, and report a verified install receipt.","copyLabel":"Copy command"},{"id":"codex","label":"Codex","title":"Codex install prompt","kind":"agent-prompt","value":"Install the \"alpaca-broker-reconciliation-idempotency\" agent skill from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"codex\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.","description":"Give Codex a repo-aware install prompt when the skill is not available through a local CLI.","copyLabel":"Copy prompt"},{"id":"claude-code","label":"Claude Code","title":"Claude Code skill prompt","kind":"agent-prompt","value":"Add \"alpaca-broker-reconciliation-idempotency\" as a Claude Code skill from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency. Inspect the skill instructions, place the reusable skill files in the appropriate local skills location for this project, and report the activation steps. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"claude-code\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.","description":"Use this prompt to ask Claude Code to add the skill and explain the local activation steps.","copyLabel":"Copy prompt"},{"id":"cursor","label":"Cursor","title":"Cursor rule prompt","kind":"agent-prompt","value":"Turn \"alpaca-broker-reconciliation-idempotency\" from https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency into a reusable Cursor project rule or agent instruction. Preserve the core workflow, adapt paths to this repo, and keep the rule scoped to tasks where it is relevant. Skill purpose: Keep local state correct against the Alpaca Broker API — idempotency keys, ID-keyed upserts, event snapshotting and dedup, polling rails that have no events, nightly reconciliation/heal jobs, status state-machine mapping, and handling eventual consistency and corrections. Use when designing the data-correctness layer of any Alpaca integration in any language. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {\"event_id\":\"install_<unique-id>\",\"skill_slug\":\"alpacahq-alpaca-broker-reconciliation-idempotency\",\"task\":\"Install alpaca-broker-reconciliation-idempotency\",\"agent\":\"cursor\",\"outcome\":\"success\",\"install_used\":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.","description":"Use this when installing as Cursor project rules or reusable agent instructions.","copyLabel":"Copy prompt"}],"repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","github_repo":"alpacahq/alpaca-skills","version":"1.0.0","license":"Apache-2.0","urls":{"web":"https://www.openagentskill.com/skills/alpacahq-alpaca-broker-reconciliation-idempotency","repository":"https://github.com/alpacahq/alpaca-skills/tree/main/skills/broker-api/reconciliation-idempotency","api":"/api/agent/skills/alpacahq-alpaca-broker-reconciliation-idempotency","install_api":"/api/skills/alpacahq-alpaca-broker-reconciliation-idempotency/install"},"meta":{"created_at":"2026-08-25T20:36:29.51694+00:00","updated_at":"2026-09-01T11:59:28.941454+00:00","agent_friendly":true}}