binary1215/lode/lode-agent-core
Claude Code and agent skill by binary1215/lode
- community
Checking that the SKILL.md file is still in the repository.
Initialize, recover, or operate a provider-neutral Lode Project with common user direction and independently routed logical Sessions, graph-first discovery, direct work, optional bounded delegation, and durable recovery. Use for Lode Agent Core, context recovery, compaction, selected context handoff, multi-step Runs, or worker coordination.
Install
npx vskill@latest install binary1215/lode/lode-agent-coreSKILL.md
The same SKILL.md was published earlier as binary1215/lode/lode-agent-core.
Lode Agent Core
Entry procedure
Read the state you were given (Hook additionalContext or the result of lode_conversation_enter) and follow its row. Branch on status and reasonCode values, never on message text.
| Incoming state | Call | Use of the result | ||
|---|---|---|---|---|
conversation_ready | none | Work from workContext records and workContext.todoContext directly. | ||
conversation_direction_restored (and its _without_transport_continuation / _after_uncertain_continuation variants) | none | Compare currentProjectDirection goal, constraints and cancellations with the current request; the current request wins. | ||
session_selection_unresolved + reasonCode: SINGLE_SESSION_ENTRY_AVAILABLE | sessionDiscovery.call as returned (= lode_conversation_enter) | The Project's only Session answers with its saved direction; nothing is bound. | ||
session_selection_unresolved (other reasonCode) | sessionDiscovery.call as returned (= lode_session_list, in the default list) | Show candidates and leave the choice to the user; independent work continues. | ||
conversation_recovery_unavailable or Hook host_context_unavailable + reasonCode: NOT_INITIALIZED | lode_project_initialize_or_resume {project_root, profile: "core"} only when the user wants Lode here | Never create root instruction files without write_root_instruction_files. | ||
same + PROJECT_RELOCATION_AVAILABLE / PROJECT_RELOCATION_PENDING | nextAction.entrypoint as returned (resume, profile: "core") | Never initialize a new Project over a moved one. | ||
same + PROJECT_NOT_READY | lode_project_status {project_root} once; follow a nextAction it returns | If it answers PROJECT_NOT_READY too, report the files it names and stop; ordinary work is not blocked. | ||
CONVERSATION_ENTRY_BASIS_CHANGED attention | lode_conversation_enter once more | Only dependent context needs the reread. | ||
MCP error with error.data.reasonCode | INVALID_TOOL_ARGUMENTS → fix the arguments; PROJECT_NOT_READY → report the files it names (call lode_project_status only if not already answered with it); NO_PENDING_REVIEW → normal, nothing awaits review | Do not match message strings. | ||
| Tool not in the default list | lode_tools_read {name, arguments} (read-only) / lode_tools_call {name, arguments} (effects) | The router checks read-only status first; `lode_tools_discover {name \ | prefix}` returns exact schemas. |
Entry rules that apply to every row:
- Reuse sufficient verified entry context already supplied for this exact Project
and selected Session; call lode_conversation_enter (read-only) once only when needed context is missing. Do not repeat init/status/list/graph to confirm it.
lode_project_initialize_or_resumeis for first adoption, explicit Session
selection/resume or managed-installation convergence. A Skill match or new turn is not a setup trigger. Do not initialize an unrelated repository.
- No checkpoint means ordinary work continues. Selection loss pauses only
dependent work. Do not enumerate Sessions on every turn or guess owners from titles.
lode_project_direction_readreturningnullmeans no common direction is
recorded; it is not approved emptiness.
- Startup lookup is read-only. Use a verified Host selection or an exact explicit
route (session_id on typed calls, --session on CLI); never guess identities and never ask for bind/save/ID rituals. Host limits are in the work context and Host limits reference.
- Continue the original task in the same turn; no repeat request, profile choice,
user JSON or recovery ritual.
Install and adopt
For an authorized installation/update request, perform the selected client's available official procedure and verify its result; see installation and adoption. Users without the plugin start at Install, without an installed-Skill prerequisite. Preserve valid installations and runtime/link choices. Installed files do not prove Host loading; unavailable loading never blocks independent authorized work. Retained storage formats: recovery.
- Default
profile: "core". Useprofile: "product"and the sibling
lode-agent-onboarding Skill only for an actual Product/World outcome.
- Initialization preserves root instructions. Reuse an already-given choice with
instruction_integration: "link" (CLI --instruction-integration link); preserve makes no edits. Do not re-offer a declined connection.
- Pick
--runtime claude|codex|opencodefor the selected client only.
Work from context
workContext.records[].contentis original;recordExcerptsname exact owner,
field and range. Read missing originals with lode_session (work_read) only when the next action needs them. Excerpts alone are neither empty history nor recovery.
- Todos: write optional work-evidence
todosat meaningful changes only. Each
item: todoId (todo- plus lowercase letters, digits, -), task, status (pending, partial, waiting, completed, cancelled), origin (user-directed, or lode-proposed for a Lode proposal), nextAction while unresolved, reason for waiting/cancelled, and the exact prior on update. Partial and waiting remain open; elapsed time never completes a task. Current user direction/cancellations and P2 take precedence over every Todo.
- Common direction: read
lode_project_direction_read; publish user direction
with lode_project_direction_update and its exact basis (expected_direction_id).
lode_session_listpreviews Sessions read-only; inspect partial/error coverage
before concluding there is no unfinished work. See existing work.
- Prompt/final-response references and native observations are quoted context, not
approval; see runtime composition.
Find context through the graph
- New project information:
lode_project_graph {project_root, query}with
only useful anchors/filters, or reuse same-basis results. Widen from nearby relations; no whole-graph prompt injection or per-turn rescans.
- Code impact:
lode_world(query) (CLIworld-query) for boundedIMPORTS/CALLS
neighbors. With absent or stale World evidence, read current source imports directly.
- Read basis, freshness, coverage and provenance together. Empty or partial
coverage does not prove absence; fall back to original sources on failure. World currentness, Product approval, Run, Capsule and ArcadeDB are not exploration gates. Recheck affected sources before changes.
- Visual graph on request:
node <plugin-root>/scripts/lode.mjs graph-explorer "<target-project-root>" (always the user's Project root; --share omits generated metadata only). See Graph Explorer and project discovery.
Agree the work, not the paperwork
- Reuse still-valid user agreement. Agree only unresolved material behavior,
scope, conditions or user-owned architecture; re-agree only the delta.
- Small exact fixes proceed directly; analysis/proposal-only stays read-only.
Only choice-dependent implementation waits.
- Summaries, reviewer assent and model inference create no user authority. A short
reply must clearly answer a concrete proposal.
Choose execution and preserve judgment
Work directly for small tasks. Delegate an independently reviewable outcome with outcome, allowed context, file ownership and completion evidence; reconcile overlapping writes. Ordinary Host delegation is enough unless durable ownership, interruption recovery or uncertain effects need tracking: then use lode_tools_call with execution_mode: "managed". Fork/fresh context grants no approval or isolation. Continuing in another chat needs a verified target and messaging authority; see existing conversations, follow-up handoffs and runtime composition.
- After a stage, integrate actual results, changed assumptions and remaining work
before planning the next one; preserve completed contributions.
- A cancel request does not prove exit. Never replay uncertain external effects.
Wave or Run success is operational evidence, not approval or P2 direction.
Finish and preserve
- After meaningful code changes, check whether the graph needs an update; reuse
hook updates, run the existing index/World refresh when needed and report what stays unverified. Test presence is not an executed PASS. See after integrated changes.
- Preserve otherwise-unrepresented reasons, alternatives and unknowns only at a
meaningful handoff: the argument work_evidence on lode_checkpoint_sync, or lode_session (work_record) for Run-free work, which takes the same object as evidence (fields go inside it, not at the top level). Optional workLink, executionObservation and workTopics reuse returned exact selectors. No per-turn save, save approval or user JSON.
- Work documents:
lode_work_document(prepare/publish/status); Project documents:
lode_project_document (prepare/publish/status). On prepare, choose feature_keys from the Product model's features (a feature the user named wins); none fits means 소속 미확인. Follow continuation-required by publishing again. Retry a verified rejected write only through retry_rejected_writes with the returned attempt reference. An unknown Notion outcome allows readback only, never a new create; a vault file is settled by its exact name and text. occupiedPath clears when the person moves that file. See work documents.
- A
lode_session(work_record) result with document statuslode-selection-required
(headActionRequired: true, userActionRequired: false) keeps the successful save; finish prepare and publish in the same turn from its returned prior selection and recorded evidence (or pass document_selection), without asking the user.
- Saving is not execution permission: after a save, effects still need current
user authority. A permission denial is not capability absence; do not switch tools or write files directly to get the refused effect.
- Lead with the outcome and uncertainty; use the
Lode conversation Skill when explaining.
Why these rules hold (authority planes, evidence vs. permission, P1–P5): constitution and authority planes. Detail is optional, not a prerequisite reference/tool chain: context workflow, compiler, recovery workflow, Session recovery, authority and roles, conversation UX.
CLI
The CLI is node <plugin-root>/scripts/lode.mjs <command>; when the installer (scripts/install.sh / scripts/install.ps1) created the launcher, lode-agent <command> is the same program. Marketplace installs have no launcher.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lode-agent-core/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/binary1215/lode/lode-agent-core)