@pikku/skills 0.12.14 → 0.12.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,109 +0,0 @@
1
- ---
2
- name: pikku-info
3
- description: >-
4
- Discover what exists in a Pikku project — functions (with their transport, middleware and
5
- permissions), tags, middleware and permission definitions. Use when you need to understand the
6
- project structure, find existing functions, or check what middleware and permissions are
7
- defined. TRIGGER when: user asks "what functions exist?", "show me the project structure", "list
8
- routes/middleware/permissions", or needs to understand an existing Pikku codebase. DO NOT
9
- TRIGGER when: user is writing new code (use the specific wiring skill) or asking about Pikku
10
- concepts (use pikku-concepts).
11
- allowed-tools: Bash(yarn pikku info *)
12
- argument-hint: '[functions|tags|middleware|permissions] [--verbose] [--limit N]'
13
- ---
14
-
15
- # Pikku Project Discovery
16
-
17
- ## Agent Operating Procedure
18
-
19
- Use this skill as an execution checklist, not reference material.
20
-
21
- 1. Discover before editing. Run the relevant `pikku meta ... --json` command and inspect only the focused output you need.
22
- 2. Identify the source files that own the behavior. Do not start by reading generated output, `.pikku`, `node_modules`, vendored packages, or broad build artifacts.
23
- 3. Make the smallest source change that satisfies the task. Keep generated files generated, and avoid hand-editing SDKs, schema output, or typegen.
24
- 4. Validate with the narrowest relevant command first, then run `pikku-verify` or `pikku all` when functions, wirings, schemas, or generated clients may have changed.
25
- 5. If validation fails, fix the source cause and rerun validation. Do not paper over generated errors by editing generated files.
26
-
27
- Use the `pikku info` CLI commands to inspect this Pikku project. Run the commands below and present the results to the user in a clear summary.
28
-
29
- There are exactly four subcommands — `functions`, `tags`, `middleware`,
30
- `permissions`. Routes, channels, schedulers and queues are not separate
31
- subcommands; they show up as the _transport_ column of `info functions --verbose`.
32
-
33
- ## Available Commands
34
-
35
- `--silent` suppresses the banner and the inspector's diagnostics, which is what
36
- you want when parsing the table. It is read by the CLI but not declared as an
37
- option, so every run also prints `Warning: Unknown option: --silent (ignored)` —
38
- the warning is wrong, the flag works. Ignore that one line.
39
-
40
- For anything you intend to parse rather than read, prefer `--json` (alias
41
- `-j`, or `--output json`), which emits NDJSON instead of a formatted table.
42
-
43
- ### Functions
44
-
45
- List all registered pikku functions:
46
-
47
- ```bash
48
- yarn pikku info functions --silent
49
- ```
50
-
51
- For full details including transport type (http/channel/scheduler/queue/workflow/mcp/cli/trigger), middleware, permissions, and source file:
52
-
53
- ```bash
54
- yarn pikku info functions --verbose --silent
55
- ```
56
-
57
- ### Tags
58
-
59
- List all tags with counts of associated functions and middleware:
60
-
61
- ```bash
62
- yarn pikku info tags --silent
63
- ```
64
-
65
- For full names instead of counts:
66
-
67
- ```bash
68
- yarn pikku info tags --verbose --silent
69
- ```
70
-
71
- ### Middleware
72
-
73
- List all middleware definitions:
74
-
75
- ```bash
76
- yarn pikku info middleware --silent
77
- ```
78
-
79
- For full details including source file, required services, and description:
80
-
81
- ```bash
82
- yarn pikku info middleware --verbose --silent
83
- ```
84
-
85
- ### Permissions
86
-
87
- List all permission definitions:
88
-
89
- ```bash
90
- yarn pikku info permissions --silent
91
- ```
92
-
93
- For full details including source file, required services, and description:
94
-
95
- ```bash
96
- yarn pikku info permissions --verbose --silent
97
- ```
98
-
99
- ## Instructions
100
-
101
- 1. If the user specifies a subcommand (e.g., `/pikku-info functions`), run only that command.
102
- 2. If no subcommand is specified, run all four commands to give a complete project overview.
103
- 3. Always use `--silent` to suppress the Pikku banner and inspector logs, and disregard the spurious "Unknown option" warning it prints.
104
- 4. Use `--verbose` when the user asks for details, file paths, or "more info". On `tags` it swaps counts for names; elsewhere it adds columns.
105
- 5. Use `--limit N` to control output size (default is 50 rows) — the footer tells you how many were withheld.
106
- 6. After running the commands, summarize the findings concisely:
107
- - Total count of functions, tags, middleware, and permissions
108
- - Notable patterns (e.g., which transport types are in use, which tags group the most functions)
109
- - Any functions without tags or transport types (potential issues)