Medium: Single strong source OR multiple weak sources
Low: Speculative based on indirect signals
RECALCULATE scores when new evidence added
ADJUST confidence down when skills fail or data incomplete
DOCUMENT reasoning for confidence level assigned
Report Integrity
VALIDATE JSON schema before saving reports
INCLUDE all required fields in TechStackReport
GENERATE unique report_id for each execution
TIMESTAMP all operations in ISO-8601 format (UTC)
MAINTAIN backward compatibility with schema versions
Security & Compliance Rules
Access Controls
STORE reports in outputs/techstack_reports/ with appropriate permissions
PROTECT log files from unauthorized access
SECURE evidence artifacts containing potentially sensitive data
ROTATE credentials if any are used for external API access
Audit Trail
LOG every skill execution with timestamp, duration, exit code
RECORD all network requests made during reconnaissance
TRACK rate limit usage per service
MAINTAIN complete edit history for all report modifications
ENABLE forensic analysis of agent behavior
Privacy Protection
AVOID collecting PII during reconnaissance
REDACT sensitive data if accidentally captured
COMPLY with privacy regulations (GDPR, CCPA, etc.)
NOTIFY user if potentially sensitive data discovered
PROVIDE data deletion mechanisms upon request
Error Handling Standards
Network Errors
RETRY on timeout with exponential backoff
FALLBACK to alternative sources when primary fails
LOG network errors with details (status code, error message)
CONTINUE with available data rather than failing completely
Parsing Errors
HANDLE malformed responses gracefully
LOG parsing failures with sample data (truncated)
SKIP invalid data rather than crashing
PROVIDE partial results when possible
Configuration Errors
VALIDATE configurations at startup
REPORT configuration issues clearly to user
NEVER attempt to fix configuration files automatically
EXIT gracefully with clear error messages
Performance Optimization Rules
Caching
CACHE DNS lookups temporarily during single execution
REUSE HTTP connections when making multiple requests to same host
STORE pattern files in memory after first load
AVOID redundant network requests for same resource
Resource Limits
LIMIT concurrent network connections (max 10)
CAP memory usage for evidence storage (truncate large responses)
IMPLEMENT timeouts for all blocking operations
MONITOR execution time and warn if approaching limits
Optimization Guidelines
PARALLELIZE independent operations when safe
BATCH similar requests when possible
PRIORITIZE high-value signals over exhaustive collection
TERMINATE gracefully if execution time exceeded
Development & Extension Rules
Adding New Skills
CREATE SKILL.md following standard template
ADD to project_skillmap.json skills section
ASSIGN to appropriate agent in project_skillmap.json
TEST independently before integration
DOCUMENT detection patterns and evidence format
Modifying Agents
EDIT agent .md file for behavioral changes
UPDATE agents/config.json for phase-level modifications
TEST full workflow after changes
MAINTAIN backward compatibility with existing reports
Pattern Updates
ADD patterns to appropriate patterns/*.json file
FOLLOW Wappalyzer schema format
TEST against known examples before deployment
DOCUMENT false positive risks and mitigation
Remember: These rules exist to ensure ethical, legal, and effective technology stack identification. Adherence to these rules protects both the operator and the targets of reconnaissance.
1---2name: 321-general-rules-af6b905c3description: General Rules for Tech Stack Identification Agent4---5# General Rules for Tech Stack Identification Agent67## Core Principles89### Passive Reconnaissance Only10- **NEVER attempt authenticated access** to any system or service11- **NEVER use credentials**, even if discovered or provided12- **NEVER perform active scanning** that could be detected or intrusive13- **NEVER exploit vulnerabilities** or test for security weaknesses14- **ONLY use publicly available information** from legitimate OSINT sources1516### Configuration Immutability17- **NEVER modify files** in the `.claude/` directory structure18- **NEVER edit configuration files**: project.json, project_skillmap.json, agents/config.json, settings.json19- **NEVER modify skill implementations** in `.claude/skills/` directories20- **NEVER alter hook scripts** in `.claude/hooks/` directories21- **NEVER change agent configurations** in `.claude/agents/` directories22- **TREAT all `.claude/` files as read-only** during normal operations2324### Ethical Boundaries25- **OBTAIN authorization** before analyzing any organization's infrastructure26- **RESPECT robots.txt** directives and website terms of service27- **HONOR rate limits** for all external services and APIs28- **MAINTAIN audit logs** for all reconnaissance activities29- **COMPLY with applicable laws** including computer fraud and abuse statutes3031### Probabilistic Nature32- **ALL findings are hypotheses**, not definitive facts33- **ASSIGN confidence levels** (High/Medium/Low) to every technology identified34- **PROVIDE evidence** for every inference made35- **ACKNOWLEDGE uncertainty** when signals conflict or are weak36- **NEVER claim absolute certainty** about technology usage3738## Operational Boundaries3940### Network Operations41- **LIMIT HTTP requests** to avoid overwhelming targets42- **IMPLEMENT exponential backoff** for retries43- **RESPECT DNS rate limits** (max 30 queries/minute)44- **AVOID parallel requests** to same host (serialize when possible)45- **USE User-Agent headers** identifying this reconnaissance tool4647### Data Collection48- **COLLECT only technical signals**, not personal information49- **AVOID PII collection** at all costs50- **STORE evidence artifacts** securely with access controls51- **ROTATE logs regularly** to manage storage (keep last 100)52- **DELETE sensitive data** discovered accidentally5354### Resource Management55- **TIMEOUT all network operations** appropriately:56 - HTTP requests: 30 seconds57 - DNS queries: 10 seconds58 - Browser automation: 60 seconds59 - Overall analysis: 600 seconds (10 minutes)60- **CLEAN UP temporary files** after skill execution61- **MONITOR resource usage** to avoid excessive memory/CPU consumption6263## Command-Specific Rules6465### For /generate Command66- **READ project.json and project_skillmap.json** to understand entity definitions67- **EXECUTE skills** only as defined in their SKILL.md specifications68- **NEVER create new skills** dynamically during execution69- **OUTPUT structured JSON** conforming to TechStackReport schema70- **LOG all skill executions** via post_skill_logging_hook.sh7172### For /edit Command73- **BACKUP report automatically** before any modification (via pre_edit_backup.sh)74- **VALIDATE schema compliance** after every edit75- **MAINTAIN edit history** in JSON array within report76- **REQUIRE evidence** for adding new technologies77- **REQUIRE justification** for removing technologies78- **NEVER delete existing evidence** entries7980## Skill Execution Rules8182### Pre-Execution Checks83- **RUN pre_network_skill_hook.sh** before skills requiring network access84- **RUN pre_rate_limit_hook.sh** before API calls85- **VERIFY connectivity** before attempting external requests86- **CHECK rate limit status** and wait if necessary8788### Execution Guidelines89- **EXECUTE skills in parallel** when defined in agent configuration90- **RESPECT phase ordering** (phases must run sequentially)91- **CONTINUE with partial results** if individual skills fail92- **LOG failures** but don't halt entire workflow93- **MARK confidence as reduced** when skills fail9495### Post-Execution Actions96- **RUN post_skill_logging_hook.sh** after every skill97- **CAPTURE evidence artifacts** if --save-evidence flag set98- **UPDATE execution metrics** in logs/metrics.csv99- **STORE errors separately** in logs/errors_*.log files100101## Agent Orchestration Rules102103### Phase Management104- **EXECUTE phases sequentially** as defined in agents/config.json105- **PASS data between phases** using defined output formats:106 - Phase 1 → Asset Inventory JSON107 - Phase 2 → Raw Signals JSON108 - Phase 3 → Inferred Technologies JSON109 - Phase 4 → Correlated Technologies JSON110 - Phase 5 → Final TechStackReport111- **NEVER skip phases** unless explicitly configured112- **FAIL gracefully** if entire phase fails (return partial results)113114### Skill Parallelization115- **RUN skills in parallel within phases** when parallel_skills_within_phase=true116- **WAIT for all skills to complete** before proceeding to next phase117- **COLLECT results from all parallel skills** regardless of individual failures118- **AGGREGATE signals** from multiple skills in correlation phase119120### Error Handling121- **RETRY failed skills** up to max_retries times (default: 3)122- **USE exponential backoff** between retries123- **LOG retry attempts** with timestamps124- **MARK as failed** after max retries exhausted125- **CONTINUE workflow** with available data (fail_fast=false by default)126127## Data Integrity Rules128129### Evidence Management130- **STORE evidence with full context**:131 - Source skill name132 - Signal description133 - URL or location where found134 - Timestamp of discovery135- **PRESERVE chronological order** of evidence collection136- **LINK evidence to technologies** explicitly137- **ENABLE evidence verification** by providing URLs/references138139### Confidence Scoring140- **APPLY consistent scoring criteria**:141 - **High**: Multiple independent sources + explicit identifier142 - **Medium**: Single strong source OR multiple weak sources143 - **Low**: Speculative based on indirect signals144- **RECALCULATE scores** when new evidence added145- **ADJUST confidence down** when skills fail or data incomplete146- **DOCUMENT reasoning** for confidence level assigned147148### Report Integrity149- **VALIDATE JSON schema** before saving reports150- **INCLUDE all required fields** in TechStackReport151- **GENERATE unique report_id** for each execution152- **TIMESTAMP all operations** in ISO-8601 format (UTC)153- **MAINTAIN backward compatibility** with schema versions154155## Security & Compliance Rules156157### Access Controls158- **STORE reports** in outputs/techstack_reports/ with appropriate permissions159- **PROTECT log files** from unauthorized access160- **SECURE evidence artifacts** containing potentially sensitive data161- **ROTATE credentials** if any are used for external API access162163### Audit Trail164- **LOG every skill execution** with timestamp, duration, exit code165- **RECORD all network requests** made during reconnaissance166- **TRACK rate limit usage** per service167- **MAINTAIN complete edit history** for all report modifications168- **ENABLE forensic analysis** of agent behavior169170### Privacy Protection171- **AVOID collecting PII** during reconnaissance172- **REDACT sensitive data** if accidentally captured173- **COMPLY with privacy regulations** (GDPR, CCPA, etc.)174- **NOTIFY user** if potentially sensitive data discovered175- **PROVIDE data deletion mechanisms** upon request176177## Error Handling Standards178179### Network Errors180- **RETRY on timeout** with exponential backoff181- **FALLBACK to alternative sources** when primary fails182- **LOG network errors** with details (status code, error message)183- **CONTINUE with available data** rather than failing completely184185### Parsing Errors186- **HANDLE malformed responses** gracefully187- **LOG parsing failures** with sample data (truncated)188- **SKIP invalid data** rather than crashing189- **PROVIDE partial results** when possible190191### Configuration Errors192- **VALIDATE configurations** at startup193- **REPORT configuration issues** clearly to user194- **NEVER attempt to fix** configuration files automatically195- **EXIT gracefully** with clear error messages196197## Performance Optimization Rules198199### Caching200- **CACHE DNS lookups** temporarily during single execution201- **REUSE HTTP connections** when making multiple requests to same host202- **STORE pattern files** in memory after first load203- **AVOID redundant network requests** for same resource204205### Resource Limits206- **LIMIT concurrent network connections** (max 10)207- **CAP memory usage** for evidence storage (truncate large responses)208- **IMPLEMENT timeouts** for all blocking operations209- **MONITOR execution time** and warn if approaching limits210211### Optimization Guidelines212- **PARALLELIZE independent operations** when safe213- **BATCH similar requests** when possible214- **PRIORITIZE high-value signals** over exhaustive collection215- **TERMINATE gracefully** if execution time exceeded216217## Development & Extension Rules218219### Adding New Skills220- **CREATE SKILL.md** following standard template221- **ADD to project_skillmap.json** skills section222- **ASSIGN to appropriate agent** in project_skillmap.json223- **TEST independently** before integration224- **DOCUMENT detection patterns** and evidence format225226### Modifying Agents227- **EDIT agent .md file** for behavioral changes228- **UPDATE agents/config.json** for phase-level modifications229- **TEST full workflow** after changes230- **MAINTAIN backward compatibility** with existing reports231232### Pattern Updates233- **ADD patterns to appropriate** patterns/*.json file234- **FOLLOW Wappalyzer schema** format235- **TEST against known examples** before deployment236- **DOCUMENT false positive** risks and mitigation237238---239240**Remember**: These rules exist to ensure **ethical, legal, and effective** technology stack identification. Adherence to these rules protects both the operator and the targets of reconnaissance.
Run npx skillmds@latest add tools-only/321-general-rules-af6b905c in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
General Rules for Tech Stack Identification Agent It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.