Reskill is an Adaptive Learning System for the Nexus Ecosystem, designed for creating, evolving, and refining "Skills" (system prompts, context rules, and templates) for AI Agents.
It treats architecture and best practices as living software artifacts that can be:
- Discovered: Scanned from your codebase (
.skillsdirectories). - Learned: Evaluated and updated based on architectural "Patterns" (Truth) in your codebase via an Architect AI.
- Distributed: Bundled and symlinked to consumption points (VS Code, Cursor, GitHub Copilot).
Reskill follows a Core, Shell & Registry architecture.
- Core (
src/core/): The immutable logic driving the cyclical Learning Loop (Explore -> Strategize -> Execute). - Shell (
src/commands/): The CLI interface via@nexical/cli-coreexposingnexical skill learnandnexical skill watch. - Registry (
.reskill/skills/): The output destination where generated skills are bundled and exposed.
It relies on the @nexical/ai package for an abstract LLM interaction capability, supporting seamless model rotation (e.g. gemini-3-pro-preview falling back to gemini-3-flash-preview) and robust context generation via repomix.
Note: For a comprehensive overview of the components, pipelines, and data flow, please see the Architecture & Specification Guide.
Reskill is configured through the nexical.yaml file in your project root, under the reskill key.
reskill:
# Constitution governing the AI's behavior and architectural rules
constitution:
architecture: 'ARCHITECTURE.md'
patterns: 'MODULAR_PATTERNS.md' # Optional (string or string array)
# Discovery settings for finding projects and distributed skills
discovery:
root: '.' # Root directory to scan from
ignore: # Directories to ignore
- 'node_modules'
- 'dist'
depth: 5 # Max recursion depth
# Output settings for context injection and symlinking
outputs:
# Files to concatenate into a global context (e.g., GEMINI.md)
contextFiles:
- 'GEMINI.md'
- '.cursorrules'
# Symlinks to create pointing to the generated skills (bundle)
symlinks:
- .agent/skills
- .gemini/skillsReskill automatically initializes its environment (scaffolds directories and copies prompts) on the first execution of any command.
Runs the full learning loop (Explorer -> Architect -> Pipeline).
- Scans your projects for
.skillsdirectories, bundles them, and runs the multi-stage AI Pipeline to audit and update skills based on your code's real-world patterns. - Best for CI/CD pipelines or nightly builds.
nexical skill learnRuns as a daemon, watching your project workspace for file changes.
- Incrementally triggers drift detection when core files change and seamlessly rewrites relevant skills on-the-fly.
nexical skill watchReskill is fully extensible through its hooks system and Prompt Overrides:
You can map specific AI personas (Auditor, Critic, Instructor) to customized system prompts located in .agent/prompts/agents/.
All agents within this package must adhere to the AgentRunner pattern.
- Static Service: Agents are stateless classes with a
static async run()method. - Error Handling: Must use the centralized
loggerand wrap logic intry/catch. - Imports: Must use
.jsextensions for local imports.
For AI assistance, use the reskill-implement-agent-runner skill.