Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Kb Codeindex

ASecurity

Parse all `# implements:` annotations in source code and emit `library/_code-index.md` as a shelf-index. Also extracts cross-module import edges and writes `library/_dependency-edges.md`. Idempotent — re-running produces byte-identical output if no annotations or imports changed.

41 stars
0 votes
0 copies
0 views
Added 9/19/2026
researchpythongojavaswiftnodegit

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add SteveGJones/ai-first-sdlc-practices --skill kb-codeindex --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kb Codeindex?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Kb Codeindex
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stevegjones-kb-codeindex-ai-first-sdlc-practices/badge)](https://www.skillsdirectory.com/skills/stevegjones-kb-codeindex-ai-first-sdlc-practices)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: kb-codeindex
description: Parse all `# implements:` annotations in source code and emit `library/_code-index.md` as a shelf-index. Also extracts cross-module import edges and writes `library/_dependency-edges.md`. Idempotent — re-running produces byte-identical output if no annotations or imports changed.
---

<!-- implements: DES-assured-skills-005 -->

# Skill: kb-codeindex

**Use this skill** to build or refresh the project's code index. The output is structurally a KB shelf-index, queryable by the `research-librarian` agent like the regular library files. Run after adding/changing `# implements:` annotations or modifying import structure.

## Inputs

- (no arguments — operates on the whole project)

## Steps

1. **Load the project root.** Detect from `.git/`.

2. **Walk source files.** Glob `**/*.{py,js,ts,go,rs,java}` excluding standard ignored paths (`.venv/`, `node_modules/`, `.git/`, etc.).

3. **Parse annotations.** Use `parse_code_annotations` to extract every `# implements:` line.

4. **Verify cited IDs.** For each citation, look it up in `library/_ids.md`. Report unresolved citations as warnings (not errors — `annotation_format_integrity` blocks at pre-push).

5. **Render the index.** Use `render_code_index` to produce shelf-index-shaped markdown.

6. **Write to `library/_code-index.md`.** If the file already exists, compare byte-for-byte; only write if different.

7. **Extract dependency edges.** For each language detected in the project paths, invoke the registered `DependencyExtractor` adapter:
   - Python paths → `PythonAstExtractor` (uses `ast.parse` for precise cross-module import resolution)
   - All other paths → `GenericRegexExtractor` (regex-based; configured per language via `make_swift_extractor()` or equivalent)

   Accumulate all returned `ImportEdge` objects across languages. Resolve each edge against the `Decomposition` module paths so edges carry qualified module IDs (e.g. `P1.SP1.M1 → P1.SP1.M2`). Edges that cannot be resolved to a known module are silently dropped (same policy as unresolved annotation citations).

8. **Write to `library/_dependency-edges.md`.** Use `render_dependency_edges(edges, library_handle=<library-handle>)` to produce the artefact. If the file already exists, compare byte-for-byte; only write if different. The file is consumed by `visibility_rule_enforcement` during decomposition validation.

9. **Report.** Print: number of annotations processed, number of unresolved citations, number of import edges extracted, whether either index file changed.

## Done criteria

- `library/_code-index.md` is up to date.
- `library/_dependency-edges.md` is up to date.
- Idempotent (re-running with no changes produces no diff on either file).
- Unresolved citations and unresolvable edges reported but not failed.

Attribution

SteveGJonesSteveGJones
View sourceMore from SteveGJones →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Competitor Analysis

This skill provides comprehensive analysis of competitor SEO and GEO strategies, revealing what's working in your market and identifying opportunities to outperform the competition.

1823 votes

Deep Research

Universal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 7 modes: full research, quick brief, paper review, lit-review, fact-check, Socratic guided research dialogue, and systematic review with optional meta-analysis. Covers research question formulation, Socratic mentoring, methodology design, systematic literature search, source verification, cross-source synthesis, risk of bias assessment, meta-analysis, APA 7.0 report compilation, editorial review...

452202 votes

Paperclip Distill

Use when an operation issue is a Paperclip cursor-window, distill, or backfill — `operationType: "distill"` or `"backfill"` and the body references a Paperclip source bundle for a project or root issue. Turn raw Paperclip activity into a wiki-insightful project page, decisions log, and history note. This skill exists specifically to replace the stiff, datestamp-heavy templated output that the deterministic distiller produces.

798221 votes

Academic Pipeline

Orchestrator for the full academic research pipeline: research -> write -> integrity check -> review -> revise -> re-review -> re-revise -> final integrity check -> finalize. Coordinates deep-research, academic-paper, and academic-paper-reviewer into a seamless 10-stage workflow with mandatory integrity verification, two-stage peer review, and reproducible quality gates. Triggers on: academic pipeline, research to paper, full paper workflow, paper pipeline, end-to-end paper, research-to-publi...

452201 votes

Exa Search

Semantic search, similar content discovery, and structured research using Exa API

304951 votes
View all in research →