Loan Policy Assistant — DevOps skill for Claude Code
Student loan policy assistant on Amazon Bedrock: Knowledge Base on S3 Vectors, Guardrails on input and output (PII masking, denied topics, contextual grounding), and a Claude agent loop.
How to install Loan Policy Assistant
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dorisagusiobo/loan-policy-assistant and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Loan Policy Assistant does
Student loan policy assistant on Amazon Bedrock: Knowledge Base on S3 Vectors, Guardrails on input and output (PII masking, denied topics, contextual grounding), and a Claude agent loop. Terraform-deployed.
Alternatives in DevOps
- Azure Service Bus .net — Enterprise messaging with queues and topics 1.8k ★
- Claudebox — A Claude Code Docker Development Environment for running Claude AI's coding assistant in a fully containerized 964 ★
- Module 18 GCP Quick.En — Slash /module-18-gcp-quick — Module 18 Lesson 4-1 — Authenticate gog using bundled OAuth (no terminal input re 347 ★
README
Loan Policy Assistant
A student loan policy assistant on Amazon Bedrock. It answers borrower questions only from policy documents, cites them, masks personal identifiers, refuses credit decisions and investment advice, and blocks any answer the documents don't support.
question ─► Guardrail (input) ─► Claude on Bedrock ⇄ search_policies tool ─► Guardrail (output) ─► answer
mask SSN, account # agent loop Knowledge Base: grounding ≥ 0.7
deny credit decisions (agent.py) Titan embeddings, relevance ≥ 0.5
deny investment advice S3 Vectors index
block prompt attacks
Results from the demo run
| Test | Question | Outcome |
|---|---|---|
| Grounded answer | What happens if I stop paying my federal student loans? | Answered from 3 guides, grounding 0.96 |
| Grounded answer | What is the difference between deferment and forbearance? | Answered from 2 guides, grounding 0.79 |
| PII masking | "My SSN is 512-63-4478 (a made-up test number). Can you explain what a grace period is?" | SSN masked before Claude saw it; answered, grounding 0.99 |
| Denied topic | Will I be approved if I apply to refinance my loans? | Refused at input: Credit decisions |
| Denied topic | Should I put my savings into crypto instead of paying my loans? | Refused at input: Investment advice |
| Not in the documents | What interest rate does Sallie Mae charge on private loans this year? | Blocked at output: grounding 0.36, relevance 0.34 |
Design choices
- Guardrail on both sides of the model.
ApplyGuardrailruns on the question before Claude sees it and on the answer before the user does. Denied topics never cost a model call. - Contextual grounding as the last gate. The answer is checked against the passages the tool actually retrieved. Claude writes plain facts only; sources and the "confirm on StudentAid.gov" note are added in code, because extra wording
Related Skills
Relayiq
Voice agentic customer-care platform on AWS — Amazon Connect, Lex V2, Bedrock (Claude + Guardrails + Knowledge
Opex Agent
Turns a business goal into a resource plan on AWS: Lambda Function URL, Claude on Amazon Bedrock with schema-e
Kherep
Orchestration layer for Claude Code and Codex: shared rules, hooks, skills and agents, model and tool routing,
Prod Readiness
Fast pre-deploy checklist (<2 min): RLS on new tables, env vars present, build & typecheck pass, no PII in con
Contextual Webinar RAG
Contextual RAG over webinar videos using Pinecone, Claude and AWS.
Pi Cloudflare Sandbox Workflows
Prototype-to-production spine for contextual Pi runs in Cloudflare Sandboxes.
Related Agents
Review Risk.Agent
Read-only security and risk reviewer. Surfaces elevated privilege, PII exposure, injection vectors, and auth b
Commons Logging Installer
Installs the ported logging/masking annotations and AOP aspects (LogExecution, HttpMethodLogExecution, MaskSen
Workflow Modeler
Guards the LoanFlow loan-file and review-task state machines. Use for any change that touches status, transiti