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

context-engineering

Skill1 starsChanged 4 months 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

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use using-agent-skills, constraint-driven-development and 6 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 24 projects that use this

  • vinvcnSkill

    constraint-driven-development

    把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。

    Also in 4 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 26 projects that use this

  • galandoSkill

    source-driven-development

    Version-aware, source-driven development — fetch official docs before writing framework code

    Also in 25 projects that use this

  • az9713Skill

    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 22 projects that use this

  • +3 more from LLl0k0laD

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 77 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

    line 83
  2. Very specific:

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

    line 84
  3. Distinctive:

    Verify understanding before proceeding

    line 93
  4. Distinctive:

    When agent output degrades:

    line 97

“Common” is measured: kept by at least 6 in 10 of the 77 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 .github/copilot-instructions.md:

  • Buildpad-First component rule
  • Two-tier architecture (Frontend → DaaS → Supabase)
  • 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:
  ├── 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
  ├── .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
  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 DaaS MCP 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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.