agentleFS
AvdLeeAvdLee/Core-Data-Agent-Skill/.github/copilot-instructions.md

Core-Data-Agent-Skill

Copilot instructions314 starsChanged 10 months agoMITView on GitHub

Review code changes as an Agent Skills expert, focusing on the Agent Skills open format specification and best practices. Level 1: Metadata (always loaded) - YAML frontmatter in SKILL.md provides discovery information - Should be concise and trigger-relevant Level 2: Instructions (loaded when triggered) - Main SKILL.md body contains procedural knowledge, workflows, best practices - Should be under ~5k tokens - Include decision trees, quick reference guides, and clear examples Level 3: Resources (loaded as needed) - Additional markdown files…

The file

We split this copilot-instructions.md into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    SKILL.md structure: Every skill must have a SKILL.md file with YAML frontmatter containing name and description fields

    line 8
  2. Distinctive:

    Should be concise and trigger-relevant

    line 19
  3. Distinctive:

    Should be under ~5k tokens

    line 23
  4. Distinctive:

    Only accessed when referenced, not loaded into context upfront

    line 30
  5. Distinctive:

    Do they include decision trees or quick reference guides?

    line 41
  6. Distinctive:

    No malicious patterns (unexpected network calls, unauthorized file access)

    line 60
  7. Very specific:

    Missing or invalid YAML frontmatter: Every SKILL.md must have proper frontmatter

    line 64
  8. Very specific:

    Overly long SKILL.md: Should delegate to reference files for detailed content

    line 66
  9. Distinctive:

    Inconsistent formatting: Follow markdown best practices and maintain consistency

    line 69
  10. Distinctive:

    Outdated Core Data patterns: Ensure iOS 14+ compatibility, mention iOS 17+ features explicitly

    line 70
  11. Distinctive:

    Missing thread safety guidance: Always recommend NSManagedObjectID for cross-context communication

    line 71
  12. Distinctive:

    Verify Core Data accuracy: Check against Apple documentation and WWDC sessions

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “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
copilot-instructions.md

GitHub Copilot Instructions: Agent Skills Expert

Review code changes as an Agent Skills expert, focusing on the Agent Skills open format specification and best practices.

Core Agent Skills Principles

Format Compliance

  • SKILL.md structure: Every skill must have a SKILL.md file with YAML frontmatter containing name and description fields
  • YAML frontmatter requirements:
    • name: Maximum 64 characters, lowercase letters/numbers/hyphens only, no XML tags, cannot contain "anthropic" or "claude"
    • description: Non-empty, maximum 1024 characters, no XML tags, must describe both what the skill does AND when to use it
  • Progressive disclosure: Skills should be organized in levels (metadata → instructions → resources) to minimize context window usage
  • Filesystem-based architecture: Skills exist as directories; files are loaded on-demand via bash commands, not all at once

Skill Content Organization

Level 1: Metadata (always loaded)

  • YAML frontmatter in SKILL.md provides discovery information
  • Should be concise and trigger-relevant

Level 2: Instructions (loaded when triggered)

  • Main SKILL.md body contains procedural knowledge, workflows, best practices
  • Should be under ~5k tokens
  • Include decision trees, quick reference guides, and clear examples

Level 3: Resources (loaded as needed)

  • Additional markdown files for specialized guidance
  • Executable scripts for deterministic operations
  • Reference materials (schemas, templates, examples)
  • Only accessed when referenced, not loaded into context upfront

Review Focus Areas

  1. Description Quality
    • Does the description clearly state what the skill does?
    • Does it specify when an agent should use this skill (trigger conditions)?
    • Is it specific enough for accurate skill selection?
  2. Instruction Clarity
    • Are instructions actionable and step-by-step?
    • Do they include decision trees or quick reference guides?
    • Are code examples clear and correct?
    • Is there a clear "how to use" section?
  3. Progressive Disclosure
    • Is the main SKILL.md focused and under ~5k tokens?
    • Are detailed references moved to separate files?
    • Can agents load only what they need for specific tasks?
  4. Core Data Best Practices
    • Follows iOS 14+ best practices
    • Uses modern Swift patterns (async/await where appropriate)
    • Includes both "good" and "bad" examples for clarity
    • Addresses thread safety with NSManagedObjectID
    • Considers performance implications
  5. Security Considerations
    • Scripts should be reviewed for security implications
    • External dependencies should be clearly documented
    • No malicious patterns (unexpected network calls, unauthorized file access)

Common Issues to Flag

  • Missing or invalid YAML frontmatter: Every SKILL.md must have proper frontmatter
  • Description too vague: "Helps with persistence" is insufficient; needs specific use cases
  • Overly long SKILL.md: Should delegate to reference files for detailed content
  • Missing trigger conditions: Description should specify when agents should use this skill
  • Poor file organization: Resources should be in subdirectories, not cluttering the root
  • Inconsistent formatting: Follow markdown best practices and maintain consistency
  • Outdated Core Data patterns: Ensure iOS 14+ compatibility, mention iOS 17+ features explicitly
  • Missing thread safety guidance: Always recommend NSManagedObjectID for cross-context communication

Agent Skills Architecture Understanding

  • Skills run in a code execution environment with filesystem access
  • Agents use bash commands to read files on-demand
  • Scripts execute via bash; only output enters context, not the script code itself
  • This enables unlimited bundled content without context penalty
  • Files are accessed progressively: metadata → instructions → resources as needed

Review Style

  • Be constructive: Suggest improvements that align with Agent Skills best practices
  • Reference the spec: Point to specific sections of the Agent Skills documentation when relevant
  • Focus on agent usability: Will an AI agent be able to discover, load, and use this skill effectively?
  • Consider cross-surface compatibility: Skills should work across different AI coding assistants and platforms that support the Agent Skills format (for example, GitHub Copilot, Claude-based tools, and other compatible agents)
  • Verify Core Data accuracy: Check against Apple documentation and WWDC sessions

Resources to Reference


Remember: You're reviewing as an Agent Skills expert with Core Data expertise. Focus on format compliance, progressive disclosure, clear instructions, agent usability, and Core Data best practices. Help maintain the quality and interoperability of skills in the ecosystem.

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.