skill-from-codebase

Generate and refresh repository SKILL.md from committed git history.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Alpha-Innovation-Labs/opennexus --skill skill-from-codebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-from-codebase
Source: https://github.com/Alpha-Innovation-Labs/opennexus/tree/main/.nexus/ai_harness/skills/skill-from-codebase
Command: npx skills add https://github.com/Alpha-Innovation-Labs/opennexus --skill skill-from-codebase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintains a single, canonical SKILL.md at the repository root by deriving and validating its content from committed code changes, preventing drift between code and documentation.

Core Features & Use Cases

  • Automates canonical SKILL.md generation and refresh based on committed git history.
  • Enforces incremental updates by only regenerating changed sections.
  • Validates SKILL.md against repository structure before writing.
  • Preserves existing section content during incremental refresh when unchanged.

Quick Start

Run the generation workflow to produce or refresh the repository SKILL.md from the current committed state.

Frequently Asked Questions about skill-from-codebase

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

FAQPage Schema
How do I keep my repository documentation in sync with code changes automatically?

You can keep documentation in sync by running an automation workflow that derives and validates repository SKILL.md content directly from committed git history, preventing drift between code and documentation. It only regenerates changed sections.

What is incremental documentation generation from a codebase?

Incremental documentation generation is the process of refreshing only the affected sections of a canonical SKILL.md file. It validates updates against the repository structure and preserves existing unchanged content during safe merges.

Do I need a clean git working tree to generate or refresh SKILL.md?

Yes, you need a clean git working tree. The generation workflow requires access to git history since the last generated commit and a valid frontmatter-bearing SKILL.md to perform safe, incremental updates without conflicts.

How to validate SKILL.md against the repository structure before merging?

To validate SKILL.md against the repository structure, run the refresh workflow which checks the derived content against committed code changes before writing. This ensures safe merges and prevents invalid documentation updates.

What is the best way to maintain a canonical SKILL.md at the repository root?

The best way to maintain a canonical SKILL.md is using an automation workflow that enforces incremental updates. It derives content from committed code, validates it, and safely merges only the changed sections while preserving the rest.