agentleFS
buildpad-aibuildpad-ai/skills/context-engineering/SKILL.md

context-engineering

Skill1 starsChanged 27 days agoMITView on GitHub

Feeds agents the right information at the right time. Use when starting a session, switching tasks, or when output quality drops due to missing context.

  • Reads credentials

131 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use using-agent-skills, deprecation-and-migration and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 36 projects that use this

  • HK-hubSkill

    deprecation-and-migration

    Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.

    Also in 40 projects that use this

  • LLl0k0laDSkill

    shipping-and-launch

    Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

    Also in 43 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 14 projects that use this

  • HK-hubSkill

    source-driven-development

    Grounds every implementation decision in official documentation. Use when you want authoritative, source-cited code free from outdated patterns. Use when building with any framework or library where correctness matters.

    Also in 44 projects that use this

  • +3 more from LLl0k0laD
  • +1 more from HK-hub

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 117 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .env.local for environment configuration (on an Engine project NEXT_PUBLIC_BUILDPAD_DAAS_URL and NEXT_PUBLIC_SUPABASE_URL both hold …

    line 84
  2. Very specific:

    Check .kiro/specs/ for active specs and task progress

    line 85
  3. Distinctive:

    Verify understanding before proceeding

    line 94
  4. Distinctive:

    When agent output degrades:

    line 98

“Common” is measured: kept by at least 6 in 10 of the 117 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Context Engineering

Overview

Feed AI agents the right information at the right time — rules files, context packing, MCP integrations, and skill activation. The quality of agent output is directly proportional to the quality of context provided. Bad context = bad code.

When to Use

  • Starting a new coding session
  • Switching between tasks or features
  • Agent output quality is declining (hallucinations, wrong patterns)
  • Setting up a new project for AI-assisted development
  • Debugging why the agent is making wrong decisions

Context Hierarchy

System Prompt (copilot-instructions.md)
  ├── Core Rules (always active)
  ├── Background Skills (auto-loaded)
  │   ├── daas-platform
  │   ├── authentication-proxy
  │   ├── buildpad-reference
  │   └── hooks-extensions
  └── Active Skills (loaded on demand via /slash commands)
      ├── User-invokable skills
      └── Reference checklists

Context Types

1. Rules (Always Active)

Defined in this project's always-on AI instructions file (the one your IDE loads on every turn):

  • Buildpad-First component rule
  • Two-tier architecture (Frontend → DaaS → Supabase on a Supabase project; Frontend → the Engine on an Engine project, one address for data and sign-in)
  • Server-side proxy pattern
  • Backend-first logic
  • Spec-driven development

2. Skills (On-Demand)

Loaded when the agent detects relevant keywords or via slash commands:

  • /create-collection → full collection skill
  • /review-code → review skill + reference checklists
  • Background skills auto-loaded for context

3. MCP Tools (Live Data)

DaaS MCP Server (the Engine's MCP on an Engine project):
  ├── schema → Live collection/field definitions
  ├── items → Real data operations
  ├── permissions → Current RBAC state
  └── extensions → Runtime hooks
  
Buildpad MCP Server:
  ├── list_components → Available components
  ├── get_component → Component source code
  └── generate_form → Form generation from schema

4. Project Files (Read on Demand)

High-value context files:
  ├── .env.local → Actual credentials and URLs (on an Engine project: the one Engine address for data and sign-in, the tenant id and a fixed public anon value, and no secret)
  ├── .kiro/specs/ → Feature specs and progress (requirements, design, tasks)
  ├── package.json → Dependencies and scripts
  ├── next.config.ts → Build configuration
  └── app/ → Existing code patterns

Context Loading Strategy

Session Start

  1. Read .env.local for environment configuration (on an Engine project NEXT_PUBLIC_BUILDPAD_DAAS_URL and NEXT_PUBLIC_SUPABASE_URL both hold the one Engine address)
  2. Check .kiro/specs/ for active specs and task progress
  3. Scan app/ directory structure for existing patterns
  4. Load relevant background skills based on task

Task Switch

  1. Commit current work
  2. Clear working context (agent memory)
  3. Load context for new task
  4. Verify understanding before proceeding

Quality Drop Recovery

When agent output degrades:

Output quality dropping?
├── Missing domain knowledge → Load relevant skill SKILL.md
├── Wrong component patterns → Load buildpad-reference skill
├── Wrong API patterns → Load daas-platform skill
├── Wrong auth patterns → Load authentication-proxy skill
├── Stale schema → Query the project's MCP (DaaS or Engine) for current schema
└── Context overflow → Summarize and restart with fresh context

Best Practices

  1. Progressive disclosure — Load skills only when needed, not all at once
  2. MCP over assumptions — Query live data instead of guessing schema/state
  3. Verify before acting — Read existing code before modifying
  4. Explicit context — Tell the agent what you are working on and which spec/task it belongs to
  5. Reference, don't duplicate — Point to skill files instead of pasting content

Common Rationalizations

RationalizationReality
"The agent should just know this"Agents have no persistent memory. Provide context every session.
"Loading skills is slow"Loading the wrong skill wastes more time than loading the right one.
"I'll just tell it what to do"Structured skills produce more consistent output than ad-hoc instructions.
"MCP is overkill"MCP provides live data. Hardcoded assumptions become stale.

Verification

  • Agent output follows project conventions
  • Buildpad components used instead of raw Mantine
  • API calls go through proxy pattern
  • Generated code matches existing patterns in the project
  • MCP tools used for live schema/permission data

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.