Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

What I Learned Stealing Ideas from Matt Pocock’s `.agents` Directory

What I Learned Stealing Ideas from Matt Pocock’s .agents Directory If you’ve spent more than ten minutes on TypeScript Twitter, you know Matt Pocock. He’s the guy who made zod and TS generics feel approachable. But a few weeks ago, I stumbled onto something more interesting than his type gymnastics: a repo called mattpocock/skills , which is literally a dump of his .agents directory. At first I…

In the article "What I Learned Stealing Ideas from Matt Pocock’s .agents Directory," the author shares their experience of discovering a repository called mattpocock/skills, which contains a collection of markdown files defining instructions and guidelines for an AI assistant to build code without breaking the existing codebase. The author outlines several key takeaways from this repository:

1. The importance of providing context and guardrails to AI agents

2. The inadequacy of generic prompts and the need for explicit guidelines

3. The structure of the repository and how to implement it

The author explains that most people make the mistake of giving AI agents no context about the project's conventions, leading to issues like renaming public APIs, using banned patterns, and writing tests that mock everything. Matt Pocock's approach is different – he treats the AI assistant like a junior engineer who needs a detailed onboarding document, which he achieves by creating a set of markdown files that define explicit rules and guidelines for the AI assistant.

The repository is divided into several categories, including role and tone definitions, explicit "do not" lists, and context injection patterns. One of the most valuable takeaways is the explicit "do not" lists, which prevent agents from introducing unwanted changes or breaking team conventions. The author also highlights the importance of injecting context into the AI assistant's workflow, with specific files designed to be loaded at certain moments based on patterns in the conversation.

The author provides a practical example of how they implemented this structure in their own project, which is a Node.js monorepo with TypeScript and legacy JavaScript. They created a .agents/ directory containing specific skill files for different tasks, such as writing tests and working with the Git workflow. The author shares a testing skill file that includes details on when to use it, the rules to follow, and an example of the desired test format.

This approach has saved the author from many painful experiences when using AI assistants for code assistance.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Robots That Walk and Talk Are Coming To Car Factories

An anonymous reader quotes a report from The New York Times: At a BMW factory in South Carolina, a human-shaped robot with a screen for a face recently stepped from a charging station toward a stack…

  • BMW unveils humanoid robot at Spartanburg factory
  • Robot demonstrates sluggish, human-like movements
  • Humanoid robots aim to revolutionize U.S. manufacturing

Stop Wasting Free Model Calls on Trivial Diffs: A Three-Tier Escalation Ladder

A merge request changes one README line. The pipeline still calls a model. It costs tokens. It adds latency. It tells you almost nothing. Sound familiar?

  • Implement three-tier escalation ladder to decide model calls
  • Tier 0 for trivial diffs (≤50 lines, docs/config files) with lint checks only
  • Tier 1 for changes up to 400 lines in code/test files, no sensitive paths

Why We Parse Industrial Code Instead of Embedding It

Most of the industrial AI you have seen is a retrieval pipeline with a chat box on it. Chunk the manuals, embed them, stuff the top matches into a context window, let the model talk. It demos well.

  • Nexus system prioritizes language model as core component
  • Parses ladder logic, structured text, AOIs, UDTs, tag databases, device configs
  • Benchmarks show zero errors with independent controls engineers

Container Image Signing & SLSA Provenance Verification with Sigstore Cosign

Container Image Signing & SLSA Provenance Verification with Sigstore Cosign Supply chain security guide on signing OCI container images keylessly and verifying SLSA build provenance using Sigstore…

  • Sigstore Cosign signs container images in CI/CD pipelines without managing private keys.
  • Cosign records signed images in public Rekor transparency log for immutable provenance verification.
  • Kyverno policies enforce use of signed images in Kubernetes clusters for supply chain security.

More from Saturday 15 August →