Install
$ agentstack add skill-iantbutler01-code-diver-dive-tag ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Dive Tag
Goal
Maintain a lightweight, cumulative knowledge graph while coding by:
- Adding
@divecomments near meaningful logic - Maintaining project metadata in
.dive/overview.mdand.dive/modules/*.md
Use this skill automatically whenever you modify code.
Required Outputs
1) File-level headers
At the top of any source file you create or substantially modify, add:
@dive-file:
@dive-rel:
@dive-rel:
Comment syntax must match the language:
- Rust/JS/TS/Go/Java/C/C++/C#:
// - Python/Shell/Ruby/YAML/TOML:
# - HTML/XML/Markdown: ``
Examples:
// @dive-file: Validates JWT tokens and creates auth context for requests.
// @dive-rel: Called by src/api/middleware.rs for every authenticated route.
// @dive-rel: Uses src/auth/session.rs to reject revoked sessions.
2) Inline tags
Add @dive: comments for non-trivial logic you write or change.
Format:
@dive:
Good:
@dive: Normalizes user input so lookup is case-insensitive@dive: Retries DB write once when the first attempt times out
Avoid:
- Restating syntax
- Vague notes like "does stuff"
- Tagging every trivial line
3) System metadata
Create/update .dive/overview.md at the project root.
Required structure:
# System Overview
## Components
- **** - ->
## Relationships
- -> :
4) Module metadata
Create/update .dive/modules/.md for modules affected by your changes.
Required structure:
# Module
## Files
- `` -
## Relationships
- -> :
Operating Rules
- Keep paths project-relative (for example
src/auth/jwt.rs). - Update metadata incrementally when behavior changes.
- Preserve existing useful entries; refine instead of replacing wholesale.
- Prefer directional relationships (
A -> BorA <- B) with short context. - If
.dive/does not exist, create it withoverview.mdandmodules/. - If uncertain, write conservative descriptions and avoid guessing internals.
Minimal Workflow
- Read existing
.dive/overview.mdand relevant.dive/modules/*.mdif present. - Implement code changes.
- Add/update file headers and inline
@dive:tags in touched files. - Update
.dive/overview.mdif component boundaries or interactions changed. - Update relevant
.dive/modules/*.mdfor touched files and relationships.
Completion Checklist
- Touched files include accurate
@dive-fileand@dive-relheaders - New or changed logic includes meaningful
@dive:comments .dive/overview.mdexists and reflects current component structure.dive/modules/*.mdexists for touched modules and links to real files
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: iantbutler01
- Source: iantbutler01/code_diver
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.