dorisagusiobo

Loan Policy Assistant — DevOps skill for Claude Code

DevOps community

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. ApplyGuardrail runs 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