agentleFS
carlosbuelvas1carlosbuelvas1/openclaw-skills/context-engineering/SKILL.md

context-engineering

Skill0 starsChanged 6 months agoMITView on GitHub

Use when Charlie or Elon is building an AI prompt, prototype, skill, product spec, content system, or agent workflow and needs structured context instead of vague prompting. Applies the 3-layer context stack: functional, visual, data.

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, idea-refine and 10 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

  • LLl0k0laDSkill

    idea-refine

    Refine ideas through structured divergent and convergent thinking. Use "idea-refine" or "ideate" to trigger.

    Also in 44 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

  • 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

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

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 117 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when Charlie asks for any of the following:

    line 13
  2. Distinctive:

    Create a reusable prompt or product brief where quality depends on requirements, taste, and real data.

    line 17
  3. Distinctive:

    Do not use this for simple Q&A, one-off summaries, or tasks where no creative/product output is being generated.

    line 19
  4. Distinctive:

    Before asking AI to build, create a three-layer context stack.

    line 23
  5. Distinctive:

    If this layer is missing, ask one concise question or make reasonable assumptions and label them.

    line 35
  6. Distinctive:

    Use any available references:

    line 39
  7. Distinctive:

    If no visual reference exists, describe the desired style in concrete terms: layout, pacing, density, vibe, hierarchy, and what to avoid.

    line 41
  8. Distinctive:

    Never rely on “make it beautiful” or “make it viral” as visual context.

    line 43
  9. Distinctive:

    If data is missing, create clearly marked sample data only when safe.

    line 54
  10. Distinctive:

    Do not jump straight to the final build prompt.

    line 57
  11. Distinctive:

    When this skill runs, output:

    line 67
  12. Distinctive:

    When improving an existing prompt or skill:

    line 97
  13. Distinctive:

    Do not turn every request into a giant spec.

    line 133
  14. Distinctive:

    Do not generate fake data without labeling it as sample data.

    line 134
  15. Distinctive:

    Do not confuse visual context with decoration.

    line 135
  16. Distinctive:

    Do not treat the video as saying PRDs are dead.

    line 136
  17. Distinctive:

    Do not rewrite prompts longer hoping the model “gets it.” Better context beats longer prompts.

    line 137
  18. Distinctive:

    Do not let the model invent requirements, design, and data simultaneously.

    line 138

“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

Source

Derived from: Everything You Need to Know About Context Engineering in 40 Minutes | Ravi Mehta — Peter Yang Saved note: knowledge/youtube/2026-05-04-everything-you-need-to-know-about-context-engineering-ravi-mehta.md

When to Use

Use this skill when Charlie asks for any of the following:

  • Build a prototype, app, landing page, dashboard, automation, content system, prompt, skill, or agent workflow.
  • Improve weak AI output that feels generic, fake, placeholder-heavy, or “AI slop.”
  • Turn a rough idea into a prompt/spec for Codex, OpenClaw, a design tool, or another AI builder.
  • Create a reusable prompt or product brief where quality depends on requirements, taste, and real data.

Do not use this for simple Q&A, one-off summaries, or tasks where no creative/product output is being generated.

Core Framework

Before asking AI to build, create a three-layer context stack.

1. Functional Context

Define what the thing must do. Include:

  • Goal of the output.
  • User or audience.
  • Required features, sections, steps, or behavior.
  • Inputs and outputs.
  • Constraints, edge cases, and success criteria.
  • What “done” means.

If this layer is missing, ask one concise question or make reasonable assumptions and label them.

2. Visual Context

Define what good should look and feel like. Use any available references:

  • Screenshots, Figma/wireframes, examples, brands, creators, UI patterns, tone references, or formatting examples.
  • If no visual reference exists, describe the desired style in concrete terms: layout, pacing, density, vibe, hierarchy, and what to avoid.

Never rely on “make it beautiful” or “make it viral” as visual context. Translate taste into usable constraints.

For OpenClaw skills, include a real example of the expected output inside the SKILL.md. That example is the visual context layer.

3. Data Context

Define the real content or structured data the output should use. Include:

  • Real names, examples, URLs, quotes, datasets, products, offers, audience pains, trading pairs, metrics, or source material.
  • For prototypes, prefer JSON or structured lists.
  • Separate the data layer from the design and function so it can be swapped later without rebuilding the whole system.

If data is missing, create clearly marked sample data only when safe. Avoid pretending placeholder data is real.

Execution Rule

Do not jump straight to the final build prompt. First produce the context stack, then generate the final prompt/spec from it.

Final prompt/spec should combine:

  • Functional requirements.
  • Visual/taste direction.
  • Data/source layer.
  • Constraints and acceptance criteria.

Output Format

When this skill runs, output:

## Context Stack

### Functional Context
- Goal:
- Audience/User:
- Required behavior/sections:
- Constraints:
- Success criteria:

### Visual Context
- References/style:
- Layout/format:
- Tone/vibe:
- Avoid:

### Data Context
- Source material:
- Structured data:
- Swap-ready elements:

## Final Build Prompt / Spec
[One clean prompt or Codex-ready spec that uses all three layers.]

## Verification
- [Smallest meaningful check: preview, test, lint, screenshot, sample output, or manual review criteria.]

When improving an existing prompt or skill:

  1. Identify which layer is missing or weak.
  2. State the gap in one line.
  3. Rewrite only the weak layer unless Charlie asks for a full rebuild.
  4. Show before/after only if helpful.

Charlie-Specific Application

AI Tooling / OpenClaw

Turn rough agent ideas into Codex-ready specs with:

  • Functional context: exact trigger, behavior, files, constraints, verification.
  • Visual context: how Elon should sound and behave, with example output.
  • Data context: existing workspace files, skill examples, memory rules, Telegram context.

Content Creation

Turn content ideas into stronger assets with:

  • Functional context: platform, format, CTA, audience, outcome.
  • Visual context: creator references like Chente, Rogan, Westcol, Escuela de Nada, raw/contrarian tone.
  • Data context: the actual story, video notes, quotes, market/context facts, Charlie’s take.

Trading Research

Turn trading research requests into structured briefs with:

  • Functional context: pair, timeframe, decision needed, risk lens.
  • Visual context: preferred format, chart/screenshot references if provided.
  • Data context: live market levels, news, journal notes, prior setup rules.

Basic Usage

Charlie can trigger this casually with:

  • “Use context stack for this.”
  • “Build the 3 layers first.”
  • “Make this less AI slop.”
  • “Turn this idea into a Codex-ready spec.”
  • “Before building, give me functional, visual, and data context.”

What to Avoid

  • Do not turn every request into a giant spec. Use the stack only when quality depends on context.
  • Do not generate fake data without labeling it as sample data.
  • Do not confuse visual context with decoration. It is taste, hierarchy, layout, and reference material.
  • Do not treat the video as saying PRDs are dead. The better read: PRDs evolve into living context bundles.
  • Do not rewrite prompts longer hoping the model “gets it.” Better context beats longer prompts.
  • Do not let the model invent requirements, design, and data simultaneously.

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.