context7-local-rules

Prefer local Markdown rules and gate Context7 calls with one-time confirmation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/unnowataru/codex-skills --skill context7-local-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-local-rules
Source: https://github.com/unnowataru/codex-skills/tree/main/context7-local-rules
Command: npx skills add https://github.com/unnowataru/codex-skills --skill context7-local-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill provides a local-first fallback for MCP workflows by preferring local Markdown rules and gating Context7 calls with a one-time confirmation, reducing unnecessary external lookups and context switching.

Core Features & Use Cases

  • Local-first operation: prefer local knowledge base unless required.
  • 3-layer operation with mandatory triggers and safe guards to fall back to local data when Context7 is unavailable.
  • Context7 gating: prompts for confirmation when needed and provides a concise risk note if skipping Context7 is chosen.

Quick Start

Activate the skill to use local-first MCP rules, reference docs/rules.md for decision logic, and prompt for Context7 confirmation when required.

Frequently Asked Questions about context7-local-rules

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

FAQPage Schema
How do I minimize external API lookups in an MCP workflow?

To minimize external API lookups in an MCP workflow, default to local Markdown rules for knowledge retrieval and gate external Context7 calls with a one-time confirmation prompt. This local-first approach reduces unnecessary context switching by relying on your internal knowledge base unless explicitly required.

What is a local-first fallback mechanism for MCP rules?

A local-first fallback mechanism for MCP rules prioritizes your local Markdown knowledge base during workflows and implements a 3-layer decision logic. It safely falls back to local data when Context7 is unavailable, issuing a concise risk note if you choose to skip the external lookup.

How do I configure Context7 gating for local-first operations?

Configure Context7 gating by activating the skill to reference local docs/rules.md for decision logic. The system prompts you for a one-time confirmation before executing any Context7 calls, ensuring external lookups are intentional rather than automatic.

Why does my MCP workflow trigger unnecessary context switching?

Your MCP workflow triggers unnecessary context switching because it defaults to external lookups instead of local data. Applying a hybrid MCP-first approach with local Markdown rules and a 3-layer operation logic prevents this by keeping context local until an explicit override is confirmed.

Do I need a SKILL.md file to scope MCP repository rules?

Yes, you need a SKILL.md file to satisfy repository scoping requirements for MCP workflows. This file must include the skill name and description, and you can optionally include directories for scripts, references, and assets to support the local-first rules.