Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Phi Guide

ASecurity

Build with Microsoft's Phi small language models — compact reasoning models for edge and cost-efficient apps.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgoazuretestingapi

Works with

api

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill phi-guide --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Phi Guide?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Phi Guide
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-phi-guide/badge)](https://www.skillsdirectory.com/skills/aicodedecode-phi-guide)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: phi-guide
description: Build with Microsoft's Phi small language models — compact reasoning models for edge and cost-efficient apps.
category: ai-research
---

## Overview

Phi (Microsoft) is a family of small language models (roughly 3B–14B) known for
punching far above their weight — particularly in reasoning, math, and code —
thanks to training on high-quality synthetic and curated data rather than raw
scale. The "textbook quality data" story is the differentiator: Phi demonstrates
that data quality can substitute for parameters, producing small models with
surprising capability.

For builders, Phi's niche overlaps Gemma's (small, efficient, deployable) with
a reasoning emphasis: on-device copilots, cost-efficient RAG components,
edge inference, and applications where a small model's reasoning ability
matters. Microsoft's backing means good tooling integration (ONNX, Windows,
Azure) and continued development.

The practical stance: Phi belongs in every small-model evaluation, especially
when the task involves reasoning rather than just fluency.

## When to use

- Small-model reasoning tasks: math, logic, code assistance at small scale.
- On-device and edge AI (Windows, mobile, browsers).
- Cost-efficient components in larger pipelines (classifiers, extractors,
  rerankers' assistants).
- Offline/air-gapped deployments needing capable small models.
- Educational and research use of compact models.
- Latency-critical inference where small models' speed matters.

## Core concepts

- **Data-quality thesis**: Phi's capability comes from curated/synthetic
  training data, not scale. The lesson generalizes: for fine-tuning small
  models, invest in data quality over quantity.
- **Size range**: roughly 3B–14B across generations. Benchmark the range —
  newer generations improve the quality/size tradeoff.
- **Reasoning emphasis**: unusually strong reasoning for the size class. Test
  on reasoning benchmarks relevant to your task, not just chat fluency.
- **Microsoft ecosystem**: ONNX export, Windows AI integration, Azure
  deployment paths. If you're Microsoft-centric, the integration is smooth.
- **Instruction-tuned variants**: tuned for assistant behavior. Use IT
  variants for interactive use; base for fine-tuning.
- **Edge deployment**: small sizes + quantization = genuine on-device AI.
  Validate on target hardware with your latency budgets.
- **Multimodal variants**: vision-capable Phi versions for compact
  image+text tasks. Evaluate against alternatives at the size.
- **Licensing**: Microsoft's terms for Phi — read for your use case, as with
  any model family.

## Practical workflow

1. **Benchmark reasoning at small scale.** Your reasoning tasks on Phi vs.
   other small models (Gemma, Qwen small, Llama small). Phi's edge is
   reasoning — verify it on your problems.
2. **Test the size range.** Newer Phi generations shift the optimum. Find the
   smallest adequate size for your task.
3. **Evaluate deployment targets.** On-device: quantize and test on hardware.
   Cloud: compare API/self-host economics at your volume.
4. **Consider the Microsoft path.** If you're on Azure/Windows: evaluate the
   integrated deployment options — they may simplify operations.
5. **Fine-tune where close.** Small models + quality data = effective
   fine-tuning. If base Phi is near your bar, targeted training may close it.
6. **Check licensing.** Confirm terms for your commercial or edge deployment
   scenario.
7. **Track generations.** Phi improves rapidly per generation; re-benchmark
   on new releases.

Checklist for Phi in production:
- Reasoning advantage verified against small-model alternatives.
- Smallest adequate size selected.
- Edge deployment validated on target hardware (if applicable).
- License confirmed for your scenario.
- Fine-tuning evaluated where base is close.

## Common pitfalls

- **Fluency-only evals.** Testing chat smoothness and missing Phi's reasoning
  differentiation. Evaluate reasoning specifically.
- **Ignoring the data lesson.** Fine-tuning Phi on sloppy data and wondering
  why it underperforms. The family's thesis is data quality — honor it.
- **Generation blindness.** Running an old Phi when newer generations are
  much better per parameter. Track releases.
- **Edge assumptions.** Assuming on-device works without testing on the
  actual hardware with real latency budgets.
- **Wrong ecosystem.** Fighting the tooling when another small model has
  better support for your stack. Match model to deployment reality.
- **Overestimating small models.** Phi is impressive for its size, not
  limitless. Honest task-difficulty assessment.
- **Skipping quantization tests.** Edge deployment without validating
  quantized quality on your evals.
- **License not checked.** Assuming terms from the general "open" narrative.
  Read the actual terms.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →