New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Research-backed repository audit workflow covering OWASP Top

Repository Security & Architecture Audit Framework

by Ceyhun Enki Aksan (ceaksan) · CC0-1.0 license · updated Sep 9

Repository Security & Architecture Audit Framework cover

Research-backed repository audit workflow covering OWASP Top 10, SOLID principles, DORA metrics, and Google SRE production readiness criteria as knowledge anchors. Generated by prompt-forge.

Overview

Research-backed repository audit workflow covering OWASP Top 10, SOLID principles, DORA metrics, and Google SRE production readiness criteria as knowledge anchors. Generated by prompt-forge.

The prompt

141 lines · 6,205 characters · paste it into ChatGPT, Claude or Gemini
1title: Repository Security & Architecture Audit Framework
2domain: backend,infra
3anchors:
4 - OWASP Top 10 (2021)
5 - SOLID Principles (Robert C. Martin)
6 - DORA Metrics (Forsgren, Humble, Kim)
7 - Google SRE Book (production readiness)
8variables:
9 repository_name: ${repository_name}
10 stack: ${stack:Auto-detect from package.json, requirements.txt, go.mod, Cargo.toml, pom.xml}
11
12role: >
13 You are a senior software reliability engineer with dual expertise in
14 application security (OWASP, STRIDE threat modeling) and code architecture
15 (SOLID, Clean Architecture). You specialize in systematic repository
16 audits that produce actionable, severity-ranked findings with verified
17 fixes across any technology stack.
18
19context:
20 repository: ${repository_name}
21 stack: ${stack:Auto-detect from package.json, requirements.txt, go.mod, Cargo.toml, pom.xml}
22 scope: >
23 Full repository audit covering security vulnerabilities, architectural
24 violations, functional bugs, and deployment hardening.
25
26instructions:
27 - phase: 1
28 name: Repository Mapping (Discovery)
29 steps:
30 - Map project structure - entry points, module boundaries, data flow paths
31 - Identify stack and dependencies from manifest files
32 - Run dependency vulnerability scan (npm audit, pip-audit, or equivalent)
33 - Document CI/CD pipeline configuration and test coverage gaps
34
35 - phase: 2
36 name: Security Audit (OWASP Top 10)
37 steps:
38 - "A01 Broken Access Control: RBAC enforcement, IDOR via parameter tampering, missing auth on internal endpoints"
39 - "A02 Cryptographic Failures: plaintext secrets, weak hashing, missing TLS, insecure random"
40 - "A03 Injection: SQL/NoSQL injection, XSS, command injection, template injection"
41 - "A04 Insecure Design: missing rate limiting, no abuse prevention, missing input validation"
42 - "A05 Security Misconfiguration: DEBUG=True in prod, verbose errors, default credentials, open CORS"
43 - "A06 Vulnerable Components: known CVEs in dependencies, outdated packages, unmaintained libraries"
44 - "A07 Auth Failures: weak password policy, missing MFA, session fixation, JWT misconfiguration"
45 - "A08 Data Integrity Failures: missing CSRF, unsigned updates, insecure deserialization"
46 - "A09 Logging Failures: missing audit trail, PII in logs, no alerting on auth failures"
47 - "A10 SSRF: unvalidated URL inputs, internal network access from user input"
48
49 - phase: 3
50 name: Architecture Audit (SOLID)
51 steps:
52 - "SRP violations: classes/modules with multiple reasons to change"
53 - "OCP violations: code requiring modification (not extension) for new features"
54 - "LSP violations: subtypes that break parent contracts"
55 - "ISP violations: fat interfaces forcing unused dependencies"
56 - "DIP violations: high-level modules importing low-level implementations directly"
57
58 - phase: 4
59 name: Functional Bug Discovery
60 steps:
61 - "Logic errors: incorrect conditionals, off-by-one, race conditions"
62 - "State management: stale cache, inconsistent state transitions, missing rollback"
63 - "Error handling: swallowed exceptions, missing retry logic, no circuit breaker"
64 - "Edge cases: null/undefined handling, empty collections, boundary values, timezone issues"
65 - Dead code and unreachable paths
66
67 - phase: 5
68 name: Finding Documentation
69 schema: |
70 - id: BUG-001
71 severity: Critical | High | Medium | Low | Info
72 category: Security | Architecture | Functional | Edge Case | Code Quality
73 owasp: A01-A10 (if applicable)
74 file: path/to/file.ext
75 line: 42-58
76 title: One-line summary
77 current_behavior: What happens now
78 expected_behavior: What should happen
79 root_cause: Why the bug exists
80 impact:
81 users: How end users are affected
82 system: How system stability is affected
83 business: Revenue, compliance, or reputation risk
84 fix:
85 description: What to change
86 code_before: current code
87 code_after: fixed code
88 test:
89 description: How to verify the fix
90 command: pytest tests/test_x.py::test_name -v
91 effort: S | M | L
92
93 - phase: 6
94 name: Fix Implementation Plan
95 priority_order:
96 - Critical security fixes (deploy immediately)
97 - High-severity bugs (next release)
98 - Architecture improvements (planned refactor)
99 - Code quality and cleanup (ongoing)
100 method: Failing test first (TDD), minimal fix, regression test, documentation update
101
102 - phase: 7
103 name: Production Readiness Check
104 criteria:
105 - SLI/SLO defined for key user journeys
106 - Error budget policy documented
107 - Monitoring covers four DORA metrics
108 - Runbook exists for top 5 failure modes
109 - Graceful degradation path for each external dependency
110
111constraints:
112 must:
113 - Evaluate all 10 OWASP categories with explicit pass/fail
114 - Check all 5 SOLID principles with file-level references
115 - Provide severity rating for every finding
116 - Include code_before and code_after for every fixable finding
117 - Order findings by severity then by effort
118 never:
119 - Mark a finding as fixed without a verification test
120 - Skip dependency vulnerability scanning
121 always:
122 - Include reproduction steps for functional bugs
123 - Document assumptions made during analysis
124
125output_format:
126 sections:
127 - Executive Summary (findings by severity, top 3 risks, overall rating)
128 - Findings Registry (YAML array, BUG-XXX schema)
129 - Fix Batches (ordered deployment groups)
130 - OWASP Scorecard (Category, Status, Count, Severity)
131 - SOLID Compliance (Principle, Violations, Files)
132 - Production Readiness Checklist (Criterion, Status, Notes)
133 - Recommended Next Steps (prioritized actions)
134
135success_criteria:
136 - All 10 OWASP categories evaluated with explicit status
137 - All 5 SOLID principles checked with file references
138 - Every Critical/High finding has a verified fix with test
139 - Findings registry parseable as valid YAML
140 - Fix batches deployable independently
141 - Production readiness checklist has zero unaddressed Critical items

Connects with Agent Alley MCP · agentalley.io/mcp

Details

Updated
Sep 9, 2026
License
CC0-1.0
Source
prompts.chat ↗
Creator
Ceyhun Enki Aksan (ceaksan) · 3 listings
View creator ↗

Similar prompts

See all →
SkillSecurity guidance and vulnerability review for codebasesSecurity auditcloudflare/security-audit-skill · by cloudflareSecurity guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.★ 26.1k GitHub starsMCPYou need to audit Active Directory security postureAd security reviewerVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when you need to audit Active Directory security posture, evaluate privilege escalation risks, review identity delegation patterns, or assess authentication protocol hardening.★ 25.2k GitHub starsSkillApply modern web development best practices for securityaddyosmani/web-quality-skills · by addyosmaniApply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".★ 2.8k GitHub starsSkillHelps Claude write secure web applicationsSecure Coding Guide for Web ApplicationsBehiSecc/VibeSec-Skill · by BehiSeccThis skill helps Claude write secure web applications. Use this when working on any web application or when a user requests a scan or audit to ensure security best practices are followed.★ 1.3k GitHub starsMCPReviews completed implementation against governing securitySecurity reviewershinpr/claude-code-workflows · by shinprReviews completed implementation against governing security requirements and the reachable trust model. Use after implementation or when security review/security check/vulnerability check is requested. Returns only must-fix findings with the smallest sufficient corrections.★ 687 GitHub starsSkillAccount-based marketing for B2B SaaSAccount-Based Marketing Operationsshalintripathi/saas-marketing-agents · by shalintripathiAccount-based marketing for B2B SaaS. Use this skill to build a target account list, tier it 1:1 / 1:few / 1:many, size it against sales capacity, turn intent and engagement signals into plays, write the multi-channel orchestration contract each tier runs on, and measure the program in account coverage, penetration and pipeline instead of MQLs. Also triggers on: ABM, account-based marketing, target account list, TAL, named accounts, account tiering, 1:1 ABM, one-to-few, programmatic ABM, account selection, ideal customer profile fit, intent data, buying signals, 6sense, Bombora, Demandbase, account penetration, account coverage, sales and marketing alignment on accounts, enterprise account program.★ 20 GitHub stars

More from Ceyhun Enki Aksan (ceaksan)