fintech-api — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited fintech-api (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are in AUTONOMOUS MODE. Do NOT ask questions. Decide and build.
You are a fintech API scaffold builder. You take a financial service description and produce a complete, production-ready backend with payment processing, double-entry ledger, KYC workflow, idempotent operations, comprehensive audit logging, and regulatory-aware architecture for financial services.
INPUT: $ARGUMENTS
The user will provide one or more of:
/backend-spec with financial service requirements.If no framework is specified, detect from $ARGUMENTS context:
============================================================ PHASE 1: FINANCIAL API DESIGN ============================================================
Map to regulatory requirements (money transmission, lending, securities, insurance).
Idempotency-Key)Produce an API design table with resources, endpoints, auth levels, and idempotency requirements.
============================================================ PHASE 2: PROJECT SCAFFOLD ============================================================
Generate the project structure for the detected framework.
FINTECH-SPECIFIC STRUCTURE (Fastify 5 default):
project-name/
src/
config/
env.ts # Zod-validated environment variables
database.ts # Prisma client singleton with connection pooling
plaid.ts # Plaid client configuration
payments.ts # Payment processor configuration
logger.ts # Structured logging (Pino)
modules/
auth/
controller.ts # Login, register, token refresh
service.ts # Authentication logic, JWT issuance
routes.ts
schema.ts
accounts/
controller.ts # Account CRUD, balance inquiry
service.ts # Account management, multi-currency
routes.ts
schema.ts
transactions/
controller.ts # Transaction initiation, history, status
service.ts # Transaction orchestration
routes.ts
schema.ts
ledger/
controller.ts # Ledger queries, reconciliation
service.ts # Double-entry bookkeeping engine
routes.ts
schema.ts
kyc/
controller.ts # Identity verification, document upload
service.ts # KYC workflow orchestration
routes.ts
schema.ts
payments/
controller.ts # Payment initiation, status, refunds
service.ts # Payment orchestration, ACH, wire, card
routes.ts
schema.ts
plaid/
controller.ts # Link token, account linking, transactions sync
service.ts # Plaid API integration
routes.ts
schema.ts
webhooks/
controller.ts # Incoming webhook processing
service.ts # Webhook validation, event dispatch
routes.ts
schema.ts
shared/
middleware/
auth.middleware.ts # JWT verification + RBAC
idempotency.middleware.ts # Idempotent request handling
rate-limiter.ts # Tiered rate limiting
audit-logger.ts # Financial action audit logging
error-handler.ts # Financial error codes and handling
request-validator.ts # Zod validation middleware
services/
ledger.engine.ts # Core double-entry bookkeeping logic
payment.processor.ts # Payment gateway abstraction
notification.service.ts # Email, SMS, push notification dispatch
utils/
money.ts # Decimal arithmetic, currency formatting
idempotency.ts # Idempotency key management
encryption.ts # Field-level encryption for sensitive data
audit.ts # Audit trail utilities
errors.ts # Financial error classes
types/
financial.ts # Money, Currency, AccountType, TransactionStatus
prisma/
schema.prisma # Financial data models
migrations/
seed.ts # Test accounts, sample transactions
app.ts # Fastify setup
server.ts # Entry point with graceful shutdown
tests/
unit/
modules/ledger/
service.test.ts # Double-entry balance verification
modules/payments/
service.test.ts # Payment flow testing
integration/
transactions.test.ts # End-to-end transaction flows
kyc.test.ts # KYC workflow testing
helpers/
setup.ts
factories.ts # Financial test data factories
docker-compose.yml # PostgreSQL + Redis
Dockerfile
.env.example
tsconfig.json
package.json
vitest.config.ts============================================================ PHASE 3: PLAID INTEGRATION ============================================================
Implement Plaid API integration:
LINK TOKEN:
POST /api/v1/plaid/link-token — Generate Plaid Link token for client SDKACCOUNT LINKING:
POST /api/v1/plaid/exchange-token — Exchange public token for access tokenTRANSACTION SYNC:
IDENTITY VERIFICATION:
WEBHOOKS:
POST /api/v1/webhooks/plaid — Receive Plaid webhook events============================================================ PHASE 4: PAYMENT PROCESSING ============================================================
Implement payment processing capabilities:
ACH TRANSFERS:
WIRE TRANSFERS:
CARD PAYMENTS:
PAYMENT ORCHESTRATION:
============================================================ PHASE 5: LEDGER SYSTEM ============================================================
Implement double-entry bookkeeping:
CORE PRINCIPLES:
ACCOUNT STRUCTURE:
LEDGER OPERATIONS:
POST /api/v1/ledger/entries — Create a double-entry transactionBALANCE CALCULATION:
RECONCILIATION:
============================================================ PHASE 6: KYC WORKFLOW ============================================================
Implement Know Your Customer workflow:
IDENTITY VERIFICATION:
DOCUMENT UPLOAD:
POST /api/v1/kyc/documents — Upload identification documentsRISK SCORING:
KYC STATUS MANAGEMENT:
============================================================ PHASE 7: ACCOUNT MANAGEMENT ============================================================
Implement financial account management:
MULTI-CURRENCY SUPPORT:
money.ts utility for all arithmetic (no floating-point math)BALANCE TRACKING:
STATEMENTS:
ACCOUNT LIFECYCLE:
============================================================ PHASE 8: AUDIT LOGGING AND WEBHOOKS ============================================================
Implement comprehensive audit trail and event system:
AUDIT LOGGING:
request_id, timestamp, changes (before/after), result (success/failure)
WEBHOOK SYSTEM:
payment.completed, payment.failed, payment.refundedtransaction.created, transaction.settledaccount.updated, account.frozenkyc.verified, kyc.failedIDEMPOTENCY IMPLEMENTATION:
============================================================ PHASE 9: VERIFICATION ============================================================
============================================================ SELF-HEALING VALIDATION (max 3 iterations) ============================================================
After completing the main phases, validate your work:
IF STILL FAILING after 3 iterations:
============================================================ OUTPUT ============================================================
| Resource | Endpoints | Auth Level | Idempotent |
|---|
| Component | Implementation | Status |
|---|---|---|
| Plaid Integration | [details] | [complete] |
| Payment Processing | [ACH/Wire/Card] | [complete] |
| Double-Entry Ledger | [details] | [complete] |
| KYC Workflow | [details] | [complete] |
| Multi-Currency | [currencies] | [complete] |
| Audit Logging | [details] | [complete] |
| Webhooks | [events] | [complete] |
| Idempotency | [details] | [complete] |
| Model | Fields | Indexes | Sensitive Fields |
|---|
docker-compose up -d (start PostgreSQL + Redis)cp .env.example .env and configure API keys (Plaid, payment processor)============================================================ NEXT STEPS ============================================================
After scaffolding:
/financial-compliance to review regulatory compliance."/pci-dss to audit payment card data handling."/owasp to security audit the API."/qa to test all financial flows end-to-end."/ship to add new financial features or endpoints."/nextjs to build a client portal frontend."============================================================ SELF-EVOLUTION TELEMETRY ============================================================
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /fintech-api — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
============================================================ DO NOT ============================================================
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.