Skip to content

Break down large prompts into individual patterns#1

Open
fuzboxz wants to merge 2 commits intoArcanum-Sec:mainfrom
fuzboxz:main
Open

Break down large prompts into individual patterns#1
fuzboxz wants to merge 2 commits intoArcanum-Sec:mainfrom
fuzboxz:main

Conversation

@fuzboxz
Copy link

@fuzboxz fuzboxz commented Jan 21, 2026

Summary

Restructured the large security anti-pattern files into individual pattern files to enable more efficient, targeted security guidance for AI agents.

Changes

  • Split ANTI_PATTERNS_BREADTH.md (61 files) and ANTI_PATTERNS_DEPTH.md (7 files) into individual patterns with meaningful names like sql-injection.md and hardcoded-passwords-api-keys.md
  • Updated README.md and index.html to include both comprehensive and modular approaches
  • Fixed a small typo in README.md

Benefits

For AI agents: Load 500-5K tokens per pattern vs 65K-100K for full documents—more efficient context usage, lower API costs, and better RAG integration. Agents can dynamically retrieve only relevant patterns based on code analysis.
For developers: Easier navigation, focused learning of individual patterns, and flexible workflows—use comprehensive files for full security reviews or modular files for targeted tasks.
Backward compatible: Original files remain unchanged; both approaches are valid depending on context size and use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant