Skip to content
Back to skills

Examples

ASecurity

Performs structured code review on a file or directory

  • 153 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
data-aigosqlcode-reviewapisecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add Alex8791-cyber/cognithor --skill examples --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Examples?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Examples
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alex8791-cyber-examples/badge)](https://www.skillsdirectory.com/skills/alex8791-cyber-examples)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-review
trigger_keywords: [Code-Review, Review, Codequalität, Code prüfen, Pull Request]
tools_required: [read_file, list_directory, analyze_code]
category: coding
priority: 5
description: "Performs structured code review on a file or directory"
enabled: true
---
# Code Review

## When to Apply
When the user asks for a code review, quality check, or wants feedback on
their code. Typical triggers: "Review this file", "Check the code quality",
"What can I improve in src/...".

## Prerequisites
- A file path or directory to review
- Optional: specific focus areas (security, performance, readability)

## Steps
1. **Identify target** — Ask which file or directory to review if not specified.
2. **Read the code** — Use `read_file` to load the target. For directories,
   use `list_directory` first, then read key files.
3. **Analyze** — Use `analyze_code` for automated metrics (complexity,
   duplication, style). Note any issues.
4. **Review manually** — Check for:
   - Security: injection, hardcoded credentials, path traversal
   - Performance: unnecessary loops, missing caching, N+1 queries
   - Readability: naming, function length, comments
   - Architecture: coupling, single responsibility, error handling
5. **Summarize** — Present findings grouped by severity
   (critical, warning, suggestion) with line references.

## Output Format
```
## Code Review: {filename}

### Critical
- Line 42: SQL injection via string concatenation

### Warnings
- Line 15-30: Function too long (87 lines), consider splitting
- Line 55: Bare except clause catches SystemExit

### Suggestions
- Line 8: Consider using `pathlib.Path` instead of `os.path`
- Missing type hints on public API functions

### Metrics
- Cyclomatic complexity: 12 (moderate)
- Lines of code: 234
```

## Known Pitfalls
- Do not modify files during review — this is a read-only operation.
- For large directories, focus on the most important files first.
- Be constructive — frame suggestions positively.

## Quality Criteria
- All critical issues identified
- Specific line references provided
- Actionable suggestions (not vague "improve this")

Files in this skill

  • README.md1 KB
  • api_client.py1.7 KB
  • custom_skill.md2.1 KB
  • insurance-agent-pack/LICENSE154 B
  • insurance-agent-pack/README.md2.5 KB
  • insurance-agent-pack/docs/DISCLAIMER.md879 B
  • insurance-agent-pack/docs/architecture.md2.5 KB
  • insurance-agent-pack/docs/demo_walkthrough.md1.5 KB
  • insurance-agent-pack/pyproject.toml984 B
  • insurance-agent-pack/src/insurance_agent_pack/__init__.py302 B
  • insurance-agent-pack/src/insurance_agent_pack/agents/__init__.py88 B
  • insurance-agent-pack/src/insurance_agent_pack/agents/compliance_gatekeeper.py2.9 KB
  • insurance-agent-pack/src/insurance_agent_pack/agents/needs_assessor.py687 B
  • insurance-agent-pack/src/insurance_agent_pack/agents/policy_analyst.py712 B
  • insurance-agent-pack/src/insurance_agent_pack/agents/report_generator.py662 B
  • insurance-agent-pack/src/insurance_agent_pack/cli.py2.3 KB
  • insurance-agent-pack/src/insurance_agent_pack/crew.py2.7 KB
  • insurance-agent-pack/src/insurance_agent_pack/knowledge/bav_basics.jsonl558 B
  • insurance-agent-pack/src/insurance_agent_pack/knowledge/bu_grundlagen.jsonl619 B
  • insurance-agent-pack/src/insurance_agent_pack/knowledge/ggf_versorgung.jsonl598 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…