Back to skills
SKILL.md
Ap Primitives
ASecurityQuick cheatsheet for `ap` CLI primitives (orient, search, read --symbol/--hashline, splice, sieve, guard, baton, recall).
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added December 5, 2026
Works with
Security analysis
100/100npx -y skills add xgbtxy/ap --skill ap-primitives --agent claude-codeAre you the author of Ap Primitives?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/xgbtxy-ap-primitives)---
name: ap-primitives
description: Quick cheatsheet for `ap` CLI primitives (orient, search, read --symbol/--hashline, splice, sieve, guard, baton, recall).
---
# Agent Primitives (`ap`) Cheatsheet
Use `ap` to navigate, read, edit, and verify codebases with minimal context churn.
## Core Commands
```bash
# 1. Workspace orientation (<15ms structural map)
ap orient .
# 2. Filtered & AST-aware search
ap search "fn main" . --code-only --no-tests
ap search --ast "fetch($URL, $$$)" .
# 3. Symbol-level or Hashline-anchored reads
ap read --symbol handle_request src/server.rs
ap read --hashline src/server.rs --start 1 --end 80
# 4. Safe atomic edits
ap splice apply --hashline <patch-file>
# 5. Compressed command output & 6-gate verification
ap sieve run -- cargo test --workspace
ap guard verify
```
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.