# Ai Rigor Security

> Security rigor for secure-by-default implementation and security best-practice reviews. Use when the user explicitly asks for security guidance, a security review/report, hardening, or secure coding help for Python, JavaScript/TypeScript, or Go. Reads language/framework references and repo standards from .ai-rigor/ when present.

- **Type:** Skill
- **Install:** `agentstack add skill-divyahemantcareer-ai-engineering-rigor-ai-rigor-security`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [DivyaHemantCareer](https://agentstack.voostack.com/s/divyahemantcareer)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [DivyaHemantCareer](https://github.com/DivyaHemantCareer)
- **Source:** https://github.com/DivyaHemantCareer/ai-engineering-rigor/tree/main/.claude/skills/ai-rigor-security

## Install

```sh
agentstack add skill-divyahemantcareer-ai-engineering-rigor-ai-rigor-security
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# AI Engineering Rigor -- Security

Apply security rigor to `$ARGUMENTS`. This skill adapts the security-best-practices guidance into the `ai-rigor-*` skill family.

Use this skill only for explicit security work: security best-practice review, secure-by-default implementation, hardening, vulnerability report, or security-focused code review.

Do not trigger it for ordinary debugging or general code review unless the user asks for security.

## Phase 0: Load Context

1. Read `.ai-rigor/config.yml` if it exists.
2. Read `.ai-rigor/standards.md` if it exists.
3. Identify all languages and primary frameworks in scope.
4. Load only matching reference files from `references/`.

Reference filenames follow `---security.md`.

For full-stack web work, check both frontend and backend guidance.

## Phase 1: Choose Mode

Use the mode that matches the user request:
- Secure implementation: apply secure defaults while writing code.
- Passive detection: flag only critical or high-impact security issues found while working.
- Security report: produce a prioritized report with evidence and line numbers.
- Fixes: implement one security finding at a time after the user approves the fix scope.

## Phase 2: Review or Implement

Prioritize authn/authz failures, injection risks, secret exposure, unsafe subprocess/file handling, weak session/cookie/JWT handling, unsafe CORS or CSRF posture, sensitive data in logs or responses, and dependency risk when dependency files changed.

Follow project-specific rules when they intentionally override generic best practices. Note important overrides instead of fighting them.

## Phase 3: Security Report Format

When the user asks for a report, write it to `security_best_practices_report.md` unless they specify another path.

Include executive summary, prioritized findings by severity, numeric finding IDs, file and line references, impact statement for critical findings, and concrete remediation.

After writing the report, summarize the findings and report path to the user.

## Phase 4: Fixes

Before implementing fixes from a report, let the user confirm the fix scope.

When fixing:
- address one finding or tightly related group at a time
- preserve existing behavior where possible
- add concise comments only where the security reason is not obvious
- run relevant tests/checks
- avoid bundling unrelated security changes

## Attribution

Bundled security reference files are adapted from Apache-licensed security best-practices material. Keep `LICENSE.txt` with this skill when redistributing it.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [DivyaHemantCareer](https://github.com/DivyaHemantCareer)
- **Source:** [DivyaHemantCareer/ai-engineering-rigor](https://github.com/DivyaHemantCareer/ai-engineering-rigor)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** yes
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-divyahemantcareer-ai-engineering-rigor-ai-rigor-security
- Seller: https://agentstack.voostack.com/s/divyahemantcareer
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
