typeagent-macros

typeagent-macros is a skill for Claude Code, Codex from microsoft/TypeAgent. It costs 37 tokens per session (753 once invoked), scanned A, original, MIT.

A set of instructions for finding, inspecting, validating, and running TypeAgent macros. A macro is a recorded sequence of tool actions that can be replayed or adapted when its required inputs are available.

In plain words
What is it for?
Use it to search macro catalogs, inspect requirements, run approved workflows, supply inputs, handle results, and submit changed procedures for review.
Why use it?
It adds checks before running a recorded workflow and defines how to report success, failure, cancellation, or changed results. This prevents incomplete or manually reconstructed macro launches.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search macro catalogs, inspect requirements, run approved workflows, supply inputs, handle results, and submit changed procedures for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/typeagent/typeagent-macros
About the project

Microsoft TypeAgent is sample code exploring how a personal software agent can use natural-language interfaces to work with application agents. It is intended for investigating how language models can combine with structured software components for actions, memory, planning, and collaboration. The catalogue entries provide agents, skills, instructions, and an MCP integration for this project.

microsoft/TypeAgent · 748 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add microsoft/TypeAgent --skill typeagent-macros
Clone the repo
git clone --depth 1 https://github.com/microsoft/TypeAgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typeagent-macros

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/typeagent/typeagent-macros/github.svg)](https://agentmods.dev/skills/microsoft/typeagent/typeagent-macros)
Your own site
<a href="https://agentmods.dev/skills/microsoft/typeagent/typeagent-macros"><img src="https://agentmods.dev/badge/skills/microsoft/typeagent/typeagent-macros/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typeagent-macros

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/typeagent/typeagent-macros"><img src="https://agentmods.dev/badge/skills/microsoft/typeagent/typeagent-macros.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 753 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00753
Opus 5.5 $0.00015 $0.00301
Sonnet 5.5 $0.00007 $0.00151
Haiku 4.5 $0.00004 $0.00075

Measured 8d ago against content hash 7a65c21ddd1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typeagent-macros scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ts/packages/copilot-plugin/skills/typeagent-macros/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TypeAgent Program Macros

Use the typeagent-macros MCP server for macro catalog and lifecycle work. Use the configured owner; never switch owners or learning preferences for the user. Routing mode, owner and learning preference are separate settings.

Run A Macro

  1. If the macro reference is not already known, use search_macros or list_macros to find it.
  2. If required inputs are not known, use get_macro_requirements. Collect required inputs without exposing secret values in chat.
  3. Call run_macro with the macro reference and current inputs. The server resolves and validates the current approved immutable program revision; do not call inspect_macro as an execution prerequisite.
  4. For completed, deliver the actual output without inventing or rewriting it. For any non-completed outcome, report its actual structured status without claiming success. Inspect get_macro_run for durable dispatch/uncertainty evidence.

Never launch a planning agent to replay steps, reconstruct a program, or retry an accepted failed, cancelled, denied, or uncertain run through another provider. Symbolic programs make no model calls; hybrid programs call only declared, bounded semantic functions. Backend authorization remains authoritative.

Lifecycle

  • Use inspect_macro for explicit catalog inspection and draft review, not as a prerequisite for execution.
  • For inspection-only requests, inspect an existing candidate; do not create one when the catalog is empty. Report that no candidate is available and obtain recording/learning status before proposing another operation.
  • A recording token from armed or claimed is not a trace ID. Selected successful learning recordings enter program learning automatically; do not bypass a pending or failed job by making a step-only draft or rerunning the task.
  • Native selected learning requires the actual token-bound root success receipt and subsequent final answer. Attest success only after the task succeeds; the receipt is not independent correctness verification. awaitingAuthor is not ready. New user work may preempt a child with a recoverable lease; Off/Cancel rejects late work rather than authorizing another provider.
  • Learning derives independent fixtures, validates source and executable, and publishes under the workspace preference: Off, Prepare, Read-only, or All. Prepare requires review; Read-only and All can auto-publish validated programs. Never change that preference for the user.
  • Validate staged programs before explicit approval. Approval never runs a program and does not grant backend permission.

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · +8 lines · -8 tokens per session 7a65c21ddd1e
  2. 12d ago Changed · +4 lines c81ba6687fb5
  3. 19d ago Changed · +7 lines 7c495b23f50c
  4. 23d ago Changed · +6 lines 45d7a8bb86a5
  5. 1mo ago First seen · 42 lines · 45 tokens per session scan A 84ebda2debb8

Subscribe to this mod's changes

typeagent-macros is a skill published in the GitHub repository microsoft/TypeAgent (748 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 753 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens