context-engineering

Manage agent context setup for code-based tasks using rules files and documentation.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/tgmarinho/agent-super-powers-matt-pocock-skills-comparasions --skill context-engineering-tgmarinho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/tgmarinho/agent-super-powers-matt-pocock-skills-comparasions/tree/main/upstream-snapshots/agent-skills/skills/context-engineering
Command: npx skills add https://github.com/tgmarinho/agent-super-powers-matt-pocock-skills-comparasions --skill context-engineering-tgmarinho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the issue of poor agent output quality due to inadequate context, helping to maintain focus and adherence to project conventions.

Core Features & Use Cases

  • Context Optimization: Curate and manage context provided to agents for enhanced output quality.
  • Project-specific Rules: Define rules files for tech stack, commands, conventions, and boundaries.
  • Spec and Architecture Documentation: Load relevant sections of specifications and architecture documents for targeted context.
  • Source File Integration: Utilize relevant source files for task-specific context.
  • Error Output Handling: Feed error outputs and test results to the agent for iterative improvement.
  • Conversation Management: Manage long conversations to prevent context drift and maintain relevance.

Quick Start

Run the context-engineering skill to optimize context for your coding session.

Frequently Asked Questions about context-engineering

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

FAQPage Schema
How do I provide project-specific context to an agent for code generation?

To provide project-specific context, you define rules files for tech stack and conventions, then load relevant specification and architecture documents to guide agent output quality.

Why does my coding agent ignore project conventions and output poor quality code?

Poor agent output quality often stems from inadequate context. Curating structured context with rules files and relevant source files helps maintain focus and enforces project conventions.

How do I prevent context drift in long conversations with coding agents?

You prevent context drift by managing long conversations actively, feeding error outputs and test results back to the agent for iterative improvement while maintaining relevant context.

Can I use specification documents to optimize agent context for software development workflows?

Yes, you can load relevant sections of specification and architecture documents to provide targeted context, ensuring the agent adheres to defined specifications during code-based tasks.

What do I need to set up before optimizing agent context for coding tasks?

You need rules files defining your tech stack, commands, conventions, and boundaries, alongside relevant documentation and source files to parse and apply project-specific context.

Does feeding test results to an agent improve iterative code generation?

Feeding error outputs and test results to the agent provides direct feedback for iterative improvement, enhancing output quality by refining context based on actual execution failures.