One-click install
npx skills add https://github.com/hidemaro-nsketch/_dotfiles --skill context-loader-hidemaro-nsketch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-loader
Source: https://github.com/hidemaro-nsketch/_dotfiles/tree/main/opencode/skills/context-loader
Command: npx skills add https://github.com/hidemaro-nsketch/_dotfiles --skill context-loader-hidemaro-nsketch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Load shared project context from .claude/ directory to ensure OpenCode CLI has the same knowledge as Claude Code.

Core Features & Use Cases

  • Preloads coding rules from .claude/rules/ to establish project conventions.
  • Loads design decisions and architecture guidance from .claude/docs/DESIGN.md for consistent implementation.
  • Optionally reads library documentation from .claude/docs/libraries/ to inform library usage during tasks.
  • Ensures context is available before executing any task, reducing drift and misalignment.

Quick Start

Run the context-loader at task start to preload project context from the .claude directory.

Frequently Asked Questions about context-loader

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

FAQPage Schema
How do I load project context for OpenCode CLI to match Claude Code's knowledge base?

To load project context, use context-loader to read .claude/rules, .claude/docs/DESIGN.md, and .claude/docs/libraries. This ensures OpenCode CLI shares the same architecture guidance and coding principles as Claude Code before executing tasks.

What is the best way to share design decisions and coding rules between different AI coding assistants?

Sharing design decisions requires loading project-wide context from a centralized .claude directory. This skill reads architecture docs and coding conventions to ensure consistent implementation and reduce drift across different AI assistants.

How do I preload architecture documentation and library usage guidance before starting a coding task?

Preload architecture documentation by reading .claude/docs/DESIGN.md and relevant .claude/docs/libraries files at task start. This establishes project constraints and informs library usage for subsequent coding steps.

Can I use my existing .claude directory rules and docs with OpenCode CLI tasks?

Yes, existing .claude directory rules and docs work with OpenCode CLI. The context-loader reads .claude/rules for conventions and .claude/docs/DESIGN.md for architecture, ensuring your current Claude Code setup applies to OpenCode CLI.

Why does my AI coding assistant drift from established project conventions during implementation?

AI coding assistants drift from project conventions when context is not loaded at task start. Loading .claude/rules and design docs before executing tasks ensures the assistant has the necessary coding principles and architecture constraints.

Do I need to manually load context files every time I start a task in OpenCode CLI?

No, you do not need to manually load context files. The context-loader is applied automatically at the start of every task to preload coding rules, design decisions, and documentation from the .claude directory.