self-commenting

Embed grep-searchable AICODE-* markers to preserve developer intent in source code.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/andrey-belen/alto-iam-cloud --skill self-commenting-andrey-belen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-commenting
Source: https://github.com/andrey-belen/alto-iam-cloud/tree/main/.claude/skills/self-commenting
Command: npx skills add https://github.com/andrey-belen/alto-iam-cloud --skill self-commenting-andrey-belen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI-native code commenting introduces a long-term memory layer into code by embedding grep-searchable markers (AICODE-*) to capture context, decisions, and work-in-progress for future sessions. This helps teams break down complex tasks, document non-obvious logic, and retain fixes across edits.

Core Features & Use Cases

  • Cross-session memory: AICODE markers store critical decisions, TODOs, and fixes within the codebase.
  • Structured annotations: Distinguish notes, tasks, and bug fixes with explicit marker types.
  • Workflow guidance: Follow SCAN → WORK → ANNOTATE to keep context aligned with code changes.
  • References for conventions: See references/conventions.md for marker formats and best practices.

Quick Start

Start a coding session by scanning for AICODE markers: grep -rn "AICODE-" <path>.

Frequently Asked Questions about self-commenting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve developer intent and decisions in source code across sessions?

To preserve developer intent across sessions, embed grep-searchable AICODE-* memory markers directly into source code. This captures critical decisions, TODOs, and bug fixes within the codebase, ensuring context survives across edits without external services.

What is the best way to add grep-searchable notes for non-obvious logic in my codebase?

The best way to add grep-searchable notes is using structured AICODE annotations with explicit marker types like NOTE, TODO, and FIX. This distinguishes notes, tasks, and bug fixes, enabling standard grep workflows to scan complex logic easily.

How do I start a coding session by scanning for existing code memory markers?

Start a coding session by running a standard grep scan for AICODE markers using the command grep -rn "AICODE-" <path>. This reveals all stored decisions, tasks, and fixes, establishing context before you begin working.

Can I use standard grep workflows to manage cross-session code memory without external services?

Yes, you can use standard grep workflows to manage cross-session code memory without external services. The markers, actions, and conventions are defined locally in SKILL.md and references/conventions.md, integrating directly with existing command-line search tools.

What workflow should I follow when annotating complex tasks with AICODE markers?

Follow the SCAN → WORK → ANNOTATE workflow to keep context aligned with code changes. Scan existing AICODE markers first, perform your coding work, then annotate the source code with new markers to document decisions and fixes.

When do I need to embed memory markers for bug fixes and complex code logic?

You need to embed memory markers when working on complex tasks, non-obvious logic, and bug fixes. Adding AICODE annotations during these scenarios ensures future sessions can immediately understand the context and reasoning behind specific code changes.