Loading...
Loading...
Connect an AI agent to Handlebar governance platform
npx skill4agent add gethandlebar/agent-skills handlebar-setup"To connect your agent to Handlebar, you'll need an account and API key:Sign up: https://app.gethandlebar.com
(Handlebar is currently operating a waitlist - if you don't have access, email contact@gethandlebar.com to request it)Create an API key: Org Settings > API Keys > Create API keySet the environment variable:bashexport HANDLEBAR_API_KEY=hb_your_api_key_here # Or add to .env file HANDLEBAR_API_KEY=hb_your_api_key_hereDon't worry if you don't have this yet - the API key can be added after we've onboarded your agent. Let's continue with the setup."
| Framework | Detection Pattern | Package |
|---|---|---|
| Vercel AI SDK v5+ | | |
| LangChain JS | | |
| LangChain Python | | |
| Google ADK Python | | |
| LlamaIndex TS | | Custom with |
| OpenAI SDK | | Custom with |
| Anthropic SDK | | Custom with |
| Google Gemini | | Custom with |
| Custom | Manual agent loop | |
@handlebar/corehandlebar-core"[Language] is not yet supported by Handlebar SDKs.Please contact the Handlebar team at contact@gethandlebar.com to let them know the agent framework you want to use. We will endeavour to support it as soon as possible.In the meantime, let's continue with the agent and rule analysis so you're ready when support is available."
readwritedeletepiiphifinancialsensitiveinternalexternalirreversiblehigh-riskauthadmin-onlymanager-only## Tool Analysis
| Tool | Summary | Categories |
|------|---------|------------|
| getUserProfile | Fetches user profile data | read, pii, internal |
| issueRefund | Processes customer refunds | write, financial, irreversible |
| sendEmail | Sends email to customer | write, external |## Agent Intent & Workflow
**Domain**: Healthcare
**Primary workflow**: Patient appointment management
**Agent goal**: Help patients book, modify, and cancel appointments with their healthcare provider
**Typical workflow**:
1. Verify patient identity (lookup_patient, verify_dob)
2. Understand patient need (conversation)
3. Check availability (check_slots)
4. Book/modify/cancel appointment (book_appointment, cancel_appointment)
5. Send confirmation (send_confirmation_sms, send_confirmation_email)
**Key interactions**:
- Patient ↔ Agent: Conversational booking
- Agent ↔ Clinical system: Appointment CRUD
- Agent ↔ Patient: NotificationsNHSHIPAAGDPRFCAPCI-DSS.nhs.uk.gov.eu£$€+44+1## Jurisdiction & User Impact
**Detected jurisdiction**: UK (NHS references, £ currency, +44 phone format)
**Users impacted**: Patients
**Data sensitivity**:
- PHI (health records)
- PII (contact details)
**Regulatory considerations**:
- UK GDPR
- NHS Data Security and Protection Toolkit
- Caldicott Principles
**High-risk actions**:
- Book/cancel appointments (affects patient care)
- Access medical records (PHI exposure)"I couldn't determine the jurisdiction from the codebase. Where will this agent operate?
- UK
- US
- EU
- Other (please specify)"
.handlebar./claude.claude/.handlebar/agent-config.json{
"agent": {
"slug": "[agent-slug]",
"name": "[agent-name]",
"framework": "[detected framework]",
"package": "[package to install]"
},
"tools": [
{ "name": "toolName", "summary": "...", "categories": ["read", "pii"] }
],
"intent": {
"domain": "[healthcare/finance/etc.]",
"workflow": "[primary workflow]",
"goal": "[agent goal]"
},
"context": {
"jurisdiction": "[UK/US/EU]",
"users": "[who is impacted]",
"regulations": ["regulation1", "regulation2"],
"highRiskActions": ["action1", "action2"]
}
}# Handlebar Configuration Summary
## Agent
- **Framework**: [detected framework]
- **Package**: [package to install]
## Tools
| Tool | Summary | Categories |
|------|---------|------------|
| ... | ... | ... |
## Intent
- **Domain**: [domain]
- **Workflow**: [primary workflow]
- **Goal**: [agent goal]
## Context
- **Jurisdiction**: [detected/specified]
- **Users**: [who is impacted]
- **Regulations**: [applicable regulations]
- **High-risk actions**: [list]
## Next Steps
1. Install the package: `npm install [package]`
2. Add the integration code (above)
3. Run `/handlebar_rule_generation` to generate governance rules
---
Configuration saved to `.claude/.handlebar/agent-config.json`"Please review the configuration above. Is this information correct?
- If yes, you can proceed with
to generate governance rules/handlebar-rule-generation- If anything needs to be changed, let me know and I'll update the configuration
Important: Only proceed with rule generation once you are satisfied that the information mentioned above is accurate and complete. This configuration will be saved toand the generated rules will be based on it, so any inaccuracies here will affect the quality of your governance rules.".claude/.handlebar/agent-config.json