declarative-agents

declarative-agents is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 40 tokens per session (960 once invoked), scanned A, original, MIT.

A development kit for creating Microsoft 365 Copilot declarative agents, which are agents defined by configuration rather than custom application code. It supports JSON manifests, TypeSpec definitions, testing, and Microsoft’s development toolkit.

In plain words
What is it for?
Use it to plan, define, test, and validate basic or enterprise Copilot agents with capabilities such as web search, SharePoint, OneDrive, or Graph connectors.
Why use it?
It guides developers through choosing capabilities and producing valid agent definitions. This reduces errors when building and testing agents for Microsoft 365 environments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to plan, define, test, and validate basic or enterprise Copilot agents with capabilities such as web search, SharePoint, OneDrive, or Graph connectors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boshi-xixixi/traeskill/declarative-agents
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 boshi-xixixi/TraeSkill --skill declarative-agents
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

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 declarative-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/declarative-agents/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/declarative-agents)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/declarative-agents"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/declarative-agents/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 declarative-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/declarative-agents"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/declarative-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 960 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.
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.00040 $0.00960
Opus 5 $0.00020 $0.00480
Sonnet 5 $0.00008 $0.00192
Haiku 4.5 $0.00004 $0.00096

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

Security

Grade A, and why

declarative-agents 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 7d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.trae/Skills/.agents/skills/declarative-agents/SKILL.md · 95 lines

How it starts

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

Microsoft 365 Declarative Agents Development Kit

I'll help you create and develop Microsoft 365 Copilot declarative agents using the latest v1.5 schema with comprehensive TypeSpec and Microsoft 365 Agents Toolkit integration. Choose from three specialized workflows:

Workflow 1: Basic Agent Creation

Perfect for: New developers, simple agents, quick prototypes

I'll guide you through:

  1. Agent Planning: Define purpose, target users, and core capabilities
  2. Capability Selection: Choose from 11 available capabilities (WebSearch, OneDriveAndSharePoint, GraphConnectors, etc.)
  3. Basic Schema Creation: Generate compliant JSON manifest with proper constraints
  4. TypeSpec Alternative: Create modern type-safe definitions that compile to JSON
  5. Testing Setup: Configure Agents Playground for local testing
  6. Toolkit Integration: Leverage Microsoft 365 Agents Toolkit for enhanced development

Workflow 2: Advanced Enterprise Agent Design

Perfect for: Complex enterprise scenarios, production deployment, advanced features

I'll help you architect:

  1. Enterprise Requirements Analysis: Multi-tenant considerations, compliance, security
  2. Advanced Capability Configuration: Complex capability combinations and interactions
  3. Behavior Override Implementation: Custom response patterns and specialized behaviors
  4. Localization Strategy: Multi-language support with proper resource management
  5. Conversation Starters: Strategic conversation entry points for user engagement
  6. Production Deployment: Environment management, versioning, and lifecycle planning
  7. Monitoring & Analytics: Implementation of tracking and performance optimization

Workflow 3: Validation & Optimization

Perfect for: Existing agents, troubleshooting, performance optimization

I'll perform:

  1. Schema Compliance Validation: Full v1.5 specification adherence checking
  2. Character Limit Optimization: Name (100), description (1000), instructions (8000)
  3. Capability Audit: Verify proper capability configuration and usage
  4. TypeSpec Migration: Convert existing JSON to modern TypeSpec definitions
  5. Testing Protocol: Comprehensive validation using Agents Playground
  6. Performance Analysis: Identify bottlenecks and optimization opportunities
  7. Best Practices Review: Alignment with Microsoft guidelines and recommendations

Read the full file on GitHub · 95 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. 7d ago First seen · 95 lines · 40 tokens per session scan A 7a0913860f44

Subscribe to this mod's changes

declarative-agents is a skill published in the GitHub repository boshi-xixixi/TraeSkill (263 stars, last pushed 4mo ago), licensed MIT. It adds 40 tokens to every session and 960 once invoked, about $0.0002 per session on Opus 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-09-03.