Skip to content

Commit 4930073

Browse files
priyanshu92Priyanshu Agrawalclaude
authored
Rewrite skill descriptions to follow best practices (#90) (#92)
- Use third-person voice instead of "This skill should be used when..." - Lead with what the skill does, then when to use it - Remove bloated quoted trigger-phrase lists - Standardize YAML block scalar to >- across all skills - Bump plugin version to 1.2.2 Co-authored-by: Priyanshu Agrawal <priyanshuag@Priyanshus-MacBook-Pro.local> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2486809 commit 4930073

15 files changed

Lines changed: 65 additions & 92 deletions

File tree

plugins/power-pages/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "power-pages",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Create and deploy Power Pages sites using modern development approaches. Supports code sites (SPAs) with React, Angular, Vue, or Astro, with more site types coming soon.",
55
"author": {
66
"name": "Microsoft",

plugins/power-pages/skills/activate-site/SKILL.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
name: activate-site
3-
description: >
4-
This skill should be used when the user asks to "activate site",
5-
"provision website", "activate a Power Pages website", "activate portal",
6-
"provision portal", "turn on my site", "enable website",
7-
or wants to activate/provision a Power Pages website in their
8-
Power Platform environment via the Power Platform REST API.
3+
description: >-
4+
Activates and provisions a Power Pages website in a Power Platform environment
5+
via the Power Platform REST API. Use when the user wants to activate, provision,
6+
turn on, or enable a Power Pages website or portal.
97
user-invocable: true
108
allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate, TaskList
119
model: sonnet

plugins/power-pages/skills/add-cloud-flow/SKILL.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
---
22
name: add-cloud-flow
3-
description: >
4-
Use this skill when the user wants to "add a cloud flow", "connect a Power Automate flow",
5-
"register a flow", "link a flow to the site", "add automation", "integrate a flow",
6-
"wire up a Power Automate workflow", "use this flow on another page", "add the flow to the
7-
support page too", or wants to allow site users to trigger one or more Power Automate cloud
8-
flows from a Power Pages site. This skill lists available flows (including already-registered
9-
ones that can be integrated into additional pages), suggests the most relevant flows based on
10-
the user's intent, identifies scenarios and web roles, creates the metadata files, generates
11-
client-side code to call the flows, and presents an HTML plan showing roles and reasoning
12-
for each flow. Already-registered flows can be selected for frontend-only integration into
13-
new pages or components without re-creating metadata.
3+
description: >-
4+
Integrates Power Automate cloud flows into a Power Pages site. Lists available flows,
5+
suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata
6+
files, and generates client-side code to call flows. Handles both new flow registration and
7+
adding already-registered flows to additional pages without re-creating metadata. Use when
8+
the user wants to add, connect, register, or link a Power Automate cloud flow to their site.
149
user-invocable: true
1510
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Task, TaskCreate, TaskUpdate, TaskList
1611
model: opus

plugins/power-pages/skills/add-sample-data/SKILL.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
name: add-sample-data
3-
description: >
4-
This skill should be used when the user asks to "add sample data",
5-
"populate tables", "seed data", "add test records", "generate sample records",
6-
"insert demo data", "fill tables with data", "create test data",
7-
or wants to populate their Dataverse tables with sample records
8-
so they can test and demo their Power Pages site.
3+
description: >-
4+
Populates Dataverse tables with sample records for testing and demoing a Power Pages site.
5+
Use when the user wants to add sample data, seed data, generate test records, or insert
6+
demo data into their tables.
97
user-invocable: true
108
allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_search, mcp__plugin_power-pages_microsoft-learn__microsoft_code_sample_search, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch
119
model: sonnet

plugins/power-pages/skills/add-seo/SKILL.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
name: add-seo
3-
description: >
4-
This skill should be used when the user asks to "add SEO", "add meta tags",
5-
"add robots.txt", "add sitemap", "improve SEO", "search engine optimization",
6-
"add open graph tags", "add favicon", "make site searchable",
7-
or wants to add SEO essentials (robots.txt, sitemap.xml, meta tags) to their
8-
Power Pages code site after creating it with /create-site.
3+
description: >-
4+
Adds SEO essentials to a Power Pages code site, including robots.txt, sitemap.xml,
5+
meta tags, Open Graph tags, and favicon configuration. Use when the user wants to
6+
improve search engine optimization or make their site more searchable.
97
user-invocable: true
108
allowed-tools: Read, Write, Edit, Grep, Glob, Bash, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_playwright__browser_navigate, mcp__plugin_power-pages_playwright__browser_snapshot, mcp__plugin_power-pages_playwright__browser_click, mcp__plugin_power-pages_playwright__browser_close
119
model: sonnet

plugins/power-pages/skills/add-server-logic/SKILL.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
---
22
name: add-server-logic
3-
description: >
4-
This skill should be used when the user asks to "create server logic", "add server-side code",
5-
"write server logic", "add server endpoint", "create API endpoint", "add backend logic",
6-
"write server-side JavaScript", "integrate server logic", "add server logic function",
7-
"add server-side processing", "create serverlogic", "add serverlogics", or wants to create,
8-
edit, or manage Power Pages Server Logic files — server-side JavaScript that runs securely
9-
on the Power Pages runtime. This skill orchestrates the full lifecycle: understanding
10-
requirements, fetching latest documentation, implementing the server logic code, configuring
11-
site settings, and deploying. Use this skill whenever the user mentions "server logic",
12-
"server-side code", or wants to move logic from the browser to the server in their Power Pages site.
3+
description: >-
4+
Creates, edits, and manages Power Pages Server Logic files — server-side JavaScript that
5+
runs securely on the Power Pages runtime. Orchestrates the full lifecycle: gathering
6+
requirements, fetching documentation, implementing code, configuring site settings, and
7+
deploying. Use when the user wants to add server-side code, create API endpoints, or move
8+
logic from the browser to the server in their Power Pages site.
139
user-invocable: true
1410
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_search, mcp__plugin_power-pages_microsoft-learn__microsoft_code_sample_search, mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch
1511
model: opus

plugins/power-pages/skills/audit-permissions/SKILL.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
---
22
name: audit-permissions
33
description: >-
4-
Use this skill to audit existing table permissions on a Power Pages site.
5-
Trigger examples: "audit permissions", "check permissions", "review table permissions",
6-
"are my permissions correct", "permission security audit", "verify permissions setup",
7-
"check for permission issues", "permission health check".
8-
This skill analyzes existing table permissions against the site code and Dataverse metadata,
9-
generates an HTML audit report with findings grouped by severity (critical, warning, info, pass),
10-
and suggests fixes for any issues found.
4+
Audits existing table permissions on a Power Pages site by analyzing them against site code
5+
and Dataverse metadata. Generates an HTML audit report with findings grouped by severity
6+
(critical, warning, info, pass) and suggests fixes for issues found. Use when the user wants
7+
to review, verify, or check table permissions for security issues.
118
user-invocable: true
129
argument-hint: "[optional: specific table or concern]"
1310
allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate, TaskList, Agent

plugins/power-pages/skills/create-site/SKILL.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
name: create-site
3-
description: This skill should be used when the user asks to "create a power pages site", "build a code site", "scaffold a website", "create a portal", "make a new site", or wants to create a new Power Pages code site (SPA) using React, Angular, Vue, or Astro.
3+
description: >-
4+
Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through
5+
the full process from initial concept to deployed site: requirements discovery, scaffolding,
6+
component planning, design, implementation, validation, and deployment. Use when the user
7+
wants to create, build, or scaffold a new Power Pages website or portal.
48
user-invocable: true
59
argument-hint: Optional site description
610
allowed-tools: Read, Write, Edit, Grep, Glob, Bash, WebSearch, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, mcp__plugin_power-pages_playwright__browser_navigate, mcp__plugin_power-pages_playwright__browser_snapshot, mcp__plugin_power-pages_playwright__browser_click

plugins/power-pages/skills/create-webroles/SKILL.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: create-webroles
3-
description: >
4-
This skill should be used when the user asks to "create web roles", "add web roles",
5-
"set up web roles", "add roles", "create roles for my site", "manage web roles",
6-
"add authenticated role", "add anonymous role", or wants to create web roles for
7-
their Power Pages code site. Web roles control access and permissions for site users.
3+
description: >-
4+
Creates and configures web roles for a Power Pages code site. Web roles control access
5+
and permissions for site users, including authenticated and anonymous roles. Use when the
6+
user wants to create, add, set up, or manage web roles for their site.
87
user-invocable: true
98
allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList
109
model: opus

plugins/power-pages/skills/deploy-site/SKILL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
name: deploy-site
3-
description: This skill should be used when the user asks to "deploy to power pages", "upload site", "publish site", "deploy site", "push to power pages", "upload code site", or wants to deploy/upload an existing Power Pages code site to a Power Pages environment using PAC CLI.
3+
description: >-
4+
Deploys an existing Power Pages code site to a Power Pages environment using PAC CLI.
5+
Handles tooling verification, authentication, environment confirmation, building, and
6+
uploading. Use when the user wants to deploy, upload, or publish their code site.
47
user-invocable: true
58
allowed-tools: Read, Bash, AskUserQuestion, Glob, Grep, TaskCreate, TaskUpdate, TaskList
69
model: sonnet

0 commit comments

Comments
 (0)