From milo-activity
Create or edit an ActivityPolicy that translates audit logs or events into human-readable activity summaries. Use when the user mentions ActivityPolicy, wants to create translation rules, asks about CEL expressions for activity, or wants to define how changes appear in the activity timeline.
How this skill is triggered — by the user, by Claude, or both
Slash command
/milo-activity:author-policyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Help the user create or edit an ActivityPolicy.
Help the user create or edit an ActivityPolicy.
For detailed CEL variable definitions and function reference, see cel-functions.md.
Identify the target resource: What API group and kind should this policy cover?
Check existing policies with list_activity_policies.
Discover available data: Use get_audit_log_facets and get_event_facets
to see what data exists for the target resource.
Fetch samples: Use query_audit_logs (limit 5) filtered to the target
resource to see real field values.
Draft the policy: Create ActivityPolicy YAML with rules for common verbs. Use the CEL reference for variable names and template syntax.
Preview: Call preview_activity_policy with autoFetch enabled to test.
Iterate: Fix errors, improve summaries, add rules for unmatched inputs.
Save: Write the final YAML file.
apiVersion: activity.miloapis.com/v1alpha1
kind: ActivityPolicy
metadata:
name: example-resource-policy
spec:
resource:
apiGroup: example.datumapis.com
kind: ExampleResource
auditRules:
- name: create
match: "audit.verb == 'create'"
summary: "{{ actor }} created {{ link(kind + ' ' + audit.objectRef.name, audit.responseObject) }}"
- name: update
match: "audit.verb in ['update', 'patch']"
summary: "{{ actor }} updated {{ link(kind + ' ' + audit.objectRef.name, audit.responseObject) }}"
- name: delete
match: "audit.verb == 'delete'"
summary: "{{ actor }} deleted {{ kind }} {{ audit.objectRef.name }}"
- name: fallback
match: "true"
summary: "{{ actor }} performed {{ audit.verb }} on {{ kind }} {{ audit.objectRef.name }}"
$ARGUMENTS
npx claudepluginhub datum-cloud/claude-code-plugins --plugin milo-activityInspects Fabric alerts, notifications, and Activator/Reflex definitions via read-only REST API calls using `az rest`. Use to list alerts, inspect rules/sources/actions, or decode ReflexEntities.json.
Inspect existing alerts, notifications, and automated actions in Fabric via read-only REST API calls using `az rest` CLI. Helps list alerts, inspect configurations, decode Activator/Reflex definitions.
Creates, updates, and deletes alerts, notifications, and automated actions on Microsoft Fabric data and events via Fabric REST API and `az rest` CLI. Connects alert logic to Eventhouse, Eventstream, Real-time Hub, or Digital Twin Builder/Ontology data.