Skip to content

Conversation

@ryoppippi
Copy link
Contributor

@ryoppippi ryoppippi commented Jan 31, 2026

Summary

Add a new skill that uses Claude Code's dynamic context injection feature (!command`` syntax) to embed just --list output at runtime, replacing the static command list in CLAUDE.md.

What Changed

  • Added .claude/skills/just-commands/SKILL.md with dynamic just --list injection
  • Updated CLAUDE.md to reference the skill instead of hardcoding commands

Why

The static command list in CLAUDE.md required manual updates whenever the justfile changed. Using dynamic context injection keeps commands in sync automatically and demonstrates a useful Claude Code feature.


Summary by cubic

Adds a just-commands skill that injects the output of just --list at runtime, replacing the static command list in CLAUDE.md. This keeps commands in sync and removes manual updates.

  • New Features
    • Added .claude/skills/just-commands/SKILL.md with dynamic injection using !just --list.
    • Updated CLAUDE.md to add an Available Skills table referencing the skill and remove the static command list.

Written for commit aa80fd4. Summary will update on new commits.

Copilot AI review requested due to automatic review settings January 31, 2026 15:45
@ryoppippi ryoppippi force-pushed the feat/dynamic-just-commands-skill branch from 3077f9c to 33d8b2c Compare January 31, 2026 15:47
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Add a new skill that uses Claude Code's dynamic context injection feature
to embed the output of `just --list` at runtime. This replaces the
static command list in CLAUDE.md with a reference to the skill.

Benefits:
- Commands stay in sync with justfile automatically
- Reduces manual maintenance of CLAUDE.md
- Demonstrates Claude Code's !`command` syntax for dynamic context
@ryoppippi ryoppippi force-pushed the feat/dynamic-just-commands-skill branch from 33d8b2c to aa80fd4 Compare January 31, 2026 15:48
@ryoppippi ryoppippi merged commit bf9f3fb into main Jan 31, 2026
12 checks passed
@ryoppippi ryoppippi deleted the feat/dynamic-just-commands-skill branch January 31, 2026 15:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Claude Code “skill” that dynamically injects the current just --list output at runtime, and removes the now-stale hardcoded command list from CLAUDE.md.

Changes:

  • Add .claude/skills/just-commands/SKILL.md using dynamic context injection to embed just --list.
  • Update CLAUDE.md to point developers (and Claude) to just --list / the new skill instead of a static list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
CLAUDE.md Replaces the hardcoded “Essential Development Commands” block with guidance to use just --list / the new skill.
.claude/skills/just-commands/SKILL.md Introduces a skill that injects just --list output dynamically.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +26 to +28
| Skill | Description |
| ----------------- | -------------------------------------------- |
| **just-commands** | Available just commands (dynamically loaded) |
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence claims Claude will “automatically reference” the just-commands skill, but earlier in this same file skills are described as “Manually invoked”. Please align the documentation (either clarify that this skill is auto-loaded, or update this line to describe the manual invocation mechanism).

Suggested change
| Skill | Description |
| ----------------- | -------------------------------------------- |
| **just-commands** | Available just commands (dynamically loaded) |
| Skill | Description |
| ----------------- | -------------------------------------------------------- |
| **just-commands** | Manually invoked skill that lists available just commands |

Copilot uses AI. Check for mistakes.
just lint # Run ruff linting
just lint-fix # Auto-fix linting issues
just ty # Run type checking
## Project Overview
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR removes the static command list from CLAUDE.md to avoid drift, but there is still a static “Essential Commands” list in .claude/rules/development-workflow.md that appears out of sync with the current justfile (e.g., it references just lint-fix but the justfile defines format). Consider updating that rule to reference this skill or to use just --list as well, so there is a single source of truth.

Copilot uses AI. Check for mistakes.
---
name: just-commands
description: Available just commands for this project. Use when you need to know what development commands are available.
user-invocable: false
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user-invocable: false conflicts with CLAUDE.md referencing this skill as a way to discover commands. If the intent is for developers to manually invoke it, set it to user-invocable; if the intent is automatic loading, update the surrounding docs in CLAUDE.md to reflect that skills are not purely manual in this repo.

Suggested change
user-invocable: false
user-invocable: true

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant