Skip to content
Back to skills

Guardian Query

ASecurity

Use for freeform security questions about code (\"is this code secure?\", attack surface, auth flows) or org-wide posture (\"top risks across the org\", --global), answered by the Apiiro Guardian AI agent. One repo's risks: guardian-risks.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 11, 2026
securitybashgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add apiiro/marketplace --skill guardian-query --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Guardian Query?

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

Security grade badge for Guardian Query
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/apiiro-guardian-query/badge)](https://www.skillsdirectory.com/skills/apiiro-guardian-query)

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: guardian-query
description: "Use for freeform security questions about code (\"is this code secure?\", attack surface, auth flows) or org-wide posture (\"top risks across the org\", --global), answered by the Apiiro Guardian AI agent. One repo's risks: guardian-risks."
---

# Apiiro Guardian

Ask security questions and get AI-powered analysis about your repository.

## Query

Auto-detects the current git repository for context (like `risks` does). No need to specify a repo explicitly — Guardian picks it up from the git remote (`origin`, or the first remote if there's no `origin`). If the repo has several remotes pointing at different providers, target one with `--remote <name>`. If it still shows `[✗ Not Monitored by Apiiro]`, pass the repository key directly with `--repository-key <key>`.

**Important:** Before running a query, consider whether the question is repo-specific or org-wide:
- **Repo-specific** (default): questions about the current repo's code, risks, auth flows, dependencies, etc.
- **Org-wide** (`--global`): questions about the org's policies, top risks across all repos, general security posture, or anything not tied to a specific codebase.

If the question is clearly about the org as a whole (e.g. "top risks last week", "what are our policies"), use `--global`. If it's unclear, ask the user: _"Should I scope this to the current repo, or across your whole org?"_

```bash
apiiro ask                                    # Interactive chat; empty line or EOF exits
apiiro ask "what risks exist in this repo"
apiiro ask "deep analysis of auth flow" --model normal
apiiro ask "what is STRIDE?" --global          # General security question
apiiro ask "top risks across the org last week" --global
apiiro ask "what are our org security policies?" --global
apiiro ask "detailed analysis" --timeout 120   # wait longer between responses
apiiro ask "what risks exist here" --remote gh  # use the 'gh' remote, not origin
apiiro ask "risk analysis" -f analysis.md
```

Chat keeps the conversation id between questions.

On `unknown command 'ask'` (older CLI), use `apiiro guardian query` with the same arguments.

Options: `--model <fast|normal>` (default: `fast`), `-g, --global`, `--remote <name>`, `--repository-key <key>`, `--timeout <seconds>` (default: 60, measured as max inactivity between responses), `-f, --file <path>`.

In TTY mode, a progress spinner shows the agent's status while it works, then the full answer is rendered once as markdown.

## Repository Management

```bash
apiiro repositories --detect          # Detect and verify repo in Apiiro
apiiro repositories --clear           # Clear cached repo info
apiiro repositories --clear --global  # Clear all cached repos
```

Detection results are cached for 24 hours.

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.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.