Repository navigation
Closed
Labels
Description
Overview
Running the merged Claude Code plugin against a real daemon built from main showed two defects. Both make the plugin quietly do less than it should, with no error.
Problem Statement
1. The skill list shows no descriptions.
- The plugin reads each listed skill's
descriptionfromnodespace --json skill guidance. - A listing entry now carries
use_forand nodescription(the retrieval fields were renamed). - The system prompt section lists every skill as
- <title>:with nothing after it, and a skill whoseuse_forwas edited is not reported as changed by its text.
Evidence: on a fresh database, nodespace --json skill guidance returns 12 entries, each with title, use_for, modified_at, node_id; a search of the output for "description" finds none.
2. A project whose repository was saved with .git is not found.
- A project is created with
repository.url=https://github.com/NodeSpaceAI/nodespace-core.git. - The plugin normalizes the checkout's remote to
https://github.com/NodeSpaceAI/nodespace-coreand queriesrepository.urlwithequals. - The query returns 0 nodes, so the plugin shows "no project for this checkout" and adds nothing.
Evidence: the equals query on the form without .git returns count: 0; the same query with operator in over the spellings of that remote returns the project.
Documentation
- ADR-092 §4 - a client compares the checkout's remote with
project.repository, and two spellings of one remote compare equal - ADR-093 §4, §5 - the project lookup and the skill list in the section; Consequences - the CLI operations are a contract
- Prompt and Skill System, Harness plugins - each entry is a skill's title and its
use_for - Updates: none
Root Cause
Location: packages/skill/plugins/claude-code/hooks/register.ts
skillsOfreadsentry.description. The listing's field isuse_for(skill_jsoninpackages/cli/src/commands/skill.rs). The plugin's tests answer from a fake CLI that still returnsdescription, so they pass.findProjectsends oneequalsfilter with one spelling of the remote.
Proposed Solution
- Read
use_forinskillsOf, and rename the plugin's own field to match. No fallback to the old name. - Query with
inover the spellings of the remote: the HTTPS form with and without.git, and the SSH forms (git@host:pathandssh://git@host/path, each with and without.git). - Make the plugin tests' fake CLI answer in the shapes the real commands print, and add a scripts test that the field the plugin reads is one the CLI's listing prints, so a rename on either side fails the gate.
Acceptance Criteria
- The section lists each skill as its title and its
use_for - A skill whose
use_forchanged is named as changed in the note - A project is found whether its repository was saved as HTTPS or SSH, with or without
.git - The plugin tests' fake CLI returns
use_for, and{count, nodes}for the project query - A test in the merge gate fails if the listing field the plugin reads is not one
skill_jsonprints - Verified in a live session against a daemon on a throwaway
NODESPACE_HOME: the section shows the project and the skills with their text -
bun run --cwd packages/skill test:pluginpasses - Code passes
bun run quality:fix - Tests pass (
bun run test:changed)
Technical Specifications
Files to Modify
packages/skill/plugins/claude-code/hooks/register.ts-skillsOf,findProject,httpsRemotepackages/skill/plugins/claude-code/types/index.d.ts-NodespaceSkillpackages/skill/plugins/claude-code/tests/register.test.ts- the fake CLI's shapesscripts/publish-skill-repo.test.ts- the gate-side check, beside the existing parse check
Test Requirements
- Plugin tests for both fixes, under
claude plugin test - A scripts test (bun, DOM-free) tying the plugin's listing field to
packages/cli/src/commands/skill.rs
Related Issues
- Ship a Claude Code plugin that lists NodeSpace's skills in the session and tracks changes; slim the static skill and remove the tool shims #3545 (the plugin)
- Record a session's own writes in a CLI journal so the Claude Code plugin stops reading shell lines, and report a deleted item apart from a failed read #3642 (the write journal, separate scope)
Activity
malibio commentedon Oct 5, 2026
Baseline before work: Frontend 322 test files passed, 5875 tests passed.
Address review: name the checkout's own remote in the lookup, read on…
Read use_for in the plugin's skill list and look the project up under…
Address review: name the checkout's own remote in the lookup, read on…