mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-02-12 17:22:50 +00:00
refactor: deduplicate prompt templates with shared content system
Implemented @include() directive system to eliminate ~800 lines of duplicated content across 10 specialist prompt files. All prompt-related content now consolidated under prompts/ directory for better maintainability. Changes: - Added processIncludes() to prompt-manager.js for generic @include() support - Created prompts/shared/ with 5 reusable template files - Refactored all 10 specialist prompts to use @include() for common sections - Moved login_instructions.txt to prompts/shared/ (deleted login_resources/) - Updated CLAUDE.md to reflect new structure Impact: -137 net lines, zero breaking changes, infinitely scalable for future shared content. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
17
CLAUDE.md
17
CLAUDE.md
@@ -36,9 +36,7 @@ npm start <WEB_URL> <REPO_PATH> --config <CONFIG_FILE>
|
||||
```
|
||||
|
||||
### Generate TOTP for Authentication
|
||||
```bash
|
||||
./login_resources/generate-totp.mjs <TOTP_SECRET>
|
||||
```
|
||||
TOTP generation is now handled automatically via the `generate_totp` MCP tool during authentication flows.
|
||||
|
||||
### Development Commands
|
||||
```bash
|
||||
@@ -163,8 +161,8 @@ The agent uses the `@anthropic-ai/claude-agent-sdk` with maximum autonomy config
|
||||
- Configuration context injection for authenticated testing
|
||||
|
||||
### Authentication & Login Resources
|
||||
- `login_resources/generate-totp.mjs` - TOTP token generation utility
|
||||
- `login_resources/login_instructions.txt` - Login flow documentation
|
||||
- `prompts/shared/login-instructions.txt` - Login flow template for all agents
|
||||
- TOTP token generation via MCP `generate_totp` tool
|
||||
- Support for multi-factor authentication workflows
|
||||
- Configurable authentication mechanisms (form, SSO, API, basic)
|
||||
|
||||
@@ -296,14 +294,17 @@ configs/ # Configuration files
|
||||
├── metabase-config.yaml # Metabase configuration
|
||||
└── cal-com-config.yaml # Cal.com configuration
|
||||
prompts/ # AI prompt templates
|
||||
├── shared/ # Shared content for all prompts
|
||||
│ ├── _target.txt # Target URL template
|
||||
│ ├── _rules.txt # Rules template
|
||||
│ ├── _vuln-scope.txt # Vulnerability scope template
|
||||
│ ├── _exploit-scope.txt # Exploitation scope template
|
||||
│ └── login-instructions.txt # Login flow template
|
||||
├── pre-recon-code.txt # Code analysis
|
||||
├── recon.txt # Reconnaissance
|
||||
├── vuln-*.txt # Vulnerability assessment
|
||||
├── exploit-*.txt # Exploitation
|
||||
└── report-executive.txt # Executive reporting
|
||||
login_resources/ # Authentication utilities
|
||||
├── generate-totp.mjs # TOTP generation
|
||||
└── login_instructions.txt # Login documentation
|
||||
scripts/ # Utility scripts
|
||||
└── export-metrics.js # Export metrics to CSV
|
||||
deliverables/ # Output directory (in target repo)
|
||||
|
||||
Reference in New Issue
Block a user