@jini-ai/agent-plugins 0.6.23 → 0.7.1
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.
- package/CHANGELOG.md +49 -0
- package/README.md +13 -0
- package/calendly/exports/booking-calendar.css +7 -0
- package/calendly/exports/booking-calendar.html +5 -0
- package/calendly/mcp.json +10 -0
- package/calendly/plugin.json +47 -0
- package/calendly/skills/calendly/SKILL.md +27 -0
- package/charts-echarts/plugin.json +2 -2
- package/charts-recharts/plugin.json +2 -2
- package/cloudflare/lib/cms-forms.mjs +57 -0
- package/cloudflare/lib/forms.mjs +78 -18
- package/cloudflare/lib/target.mjs +17 -4
- package/cloudflare/plugin.json +2 -2
- package/cloudflare/skills/cloudflare/SKILL.md +4 -4
- package/cloudflare/skills/cloudflare/references/workers.md +4 -4
- package/cloudflare/worker/forms-receiver.mjs +81 -41
- package/cloudflare/worker/portable-validation.mjs +220 -0
- package/commerce/plugin.json +17 -0
- package/commerce/skills/commerce/SKILL.md +23 -0
- package/composio/mcp.json +1 -1
- package/composio/plugin.json +2 -2
- package/composio/skills/composio/SKILL.md +4 -4
- package/core/commerce-server.d.ts +2 -0
- package/core/commerce-server.mjs +2 -0
- package/dist/admin-surfaces/connections/connections.d.ts +35 -0
- package/dist/admin-surfaces/connections/connections.js +135 -0
- package/dist/admin-surfaces/connections/index.d.ts +3 -0
- package/dist/admin-surfaces/connections/index.js +2 -0
- package/dist/admin-surfaces/connections/ports.d.ts +110 -0
- package/dist/admin-surfaces/connections/ports.js +2 -0
- package/dist/admin-surfaces/index.d.ts +2 -0
- package/dist/admin-surfaces/index.js +1 -0
- package/dist/admin-surfaces/plugin-state-persistence.d.ts +27 -0
- package/dist/admin-surfaces/plugin-state-persistence.js +2 -0
- package/dist/admin-surfaces/plugin-state.d.ts +51 -0
- package/dist/admin-surfaces/plugin-state.js +106 -0
- package/dist/connect/access-token-tool.d.ts +240 -0
- package/dist/connect/access-token-tool.js +213 -0
- package/dist/connect/apply-connect-defaults.d.ts +91 -0
- package/dist/connect/apply-connect-defaults.js +113 -0
- package/dist/connect/apply-tool-renames.d.ts +72 -0
- package/dist/connect/apply-tool-renames.js +105 -0
- package/dist/connect/connect-card-ui.d.ts +143 -0
- package/dist/connect/connect-card-ui.js +106 -0
- package/dist/connect/connect-destination.d.ts +35 -0
- package/dist/connect/connect-destination.js +45 -0
- package/dist/connect/connect-sign-in-wait.d.ts +31 -0
- package/dist/connect/connect-sign-in-wait.js +21 -0
- package/dist/connect/connect-tool.d.ts +314 -0
- package/dist/connect/connect-tool.js +431 -0
- package/dist/connect/connection-status.d.ts +33 -0
- package/dist/connect/connection-status.js +63 -0
- package/dist/connect/credential-cards.d.ts +15 -0
- package/dist/connect/credential-cards.js +49 -0
- package/dist/connect/credential-save-tool.d.ts +45 -0
- package/dist/connect/credential-save-tool.js +156 -0
- package/dist/connect/enable-access.d.ts +67 -0
- package/dist/connect/enable-access.js +74 -0
- package/dist/connect/executable/approval.d.ts +58 -0
- package/dist/connect/executable/approval.js +40 -0
- package/dist/connect/executable/host-capabilities.d.ts +76 -0
- package/dist/connect/executable/host-capabilities.js +100 -0
- package/dist/connect/executable/index.d.ts +10 -0
- package/dist/connect/executable/index.js +9 -0
- package/dist/connect/executable/ports.d.ts +189 -0
- package/dist/connect/executable/ports.js +2 -0
- package/dist/connect/executable/register.d.ts +21 -0
- package/dist/connect/executable/register.js +125 -0
- package/dist/connect/federate-mcp.d.ts +190 -0
- package/dist/connect/federate-mcp.js +440 -0
- package/dist/connect/grant-signed-in-defaults.d.ts +96 -0
- package/dist/connect/grant-signed-in-defaults.js +100 -0
- package/dist/connect/import-access-token.d.ts +114 -0
- package/dist/connect/import-access-token.js +103 -0
- package/dist/connect/index.d.ts +19 -0
- package/dist/connect/index.js +19 -0
- package/dist/connect/plugin-credential-card.d.ts +46 -0
- package/dist/connect/plugin-credential-card.js +63 -0
- package/dist/connect/plugin-host/index.d.ts +203 -0
- package/dist/connect/plugin-host/index.js +153 -0
- package/dist/connect/ports.d.ts +74 -0
- package/dist/connect/ports.js +2 -0
- package/dist/connect/switch-on-saved-token.d.ts +48 -0
- package/dist/connect/switch-on-saved-token.js +20 -0
- package/dist/connect/token-sign-in.d.ts +51 -0
- package/dist/connect/token-sign-in.js +43 -0
- package/dist/core/identity-namespace.d.ts +39 -0
- package/dist/core/identity-namespace.js +61 -3
- package/dist/folder-zip-node.js +3 -1
- package/dist/lifecycle/automatic-use.d.ts +12 -7
- package/dist/lifecycle/automatic-use.js +37 -28
- package/dist/lifecycle/capability-projection.js +5 -1
- package/dist/lifecycle/contribution-loader.d.ts +2 -7
- package/dist/lifecycle/contribution-types.d.ts +8 -0
- package/dist/lifecycle/contribution-types.js +2 -0
- package/dist/lifecycle/credential-card-metadata.d.ts +23 -0
- package/dist/lifecycle/credential-card-metadata.js +184 -0
- package/dist/lifecycle/exports.d.ts +11 -0
- package/dist/lifecycle/exports.js +64 -3
- package/dist/lifecycle/host-tools/identity.d.ts +38 -0
- package/dist/lifecycle/host-tools/identity.js +58 -0
- package/dist/lifecycle/host-tools/index.d.ts +20 -0
- package/dist/lifecycle/host-tools/index.js +20 -0
- package/dist/lifecycle/host-tools/memory-tools.d.ts +22 -0
- package/dist/lifecycle/host-tools/memory-tools.js +63 -0
- package/dist/lifecycle/host-tools/ports.d.ts +121 -0
- package/dist/lifecycle/host-tools/ports.js +2 -0
- package/dist/lifecycle/host-tools/provider-status-tool.d.ts +88 -0
- package/dist/lifecycle/host-tools/provider-status-tool.js +45 -0
- package/dist/lifecycle/host-tools/search-tool.d.ts +74 -0
- package/dist/lifecycle/host-tools/search-tool.js +282 -0
- package/dist/lifecycle/host-tools/skill-tool.d.ts +219 -0
- package/dist/lifecycle/host-tools/skill-tool.js +482 -0
- package/dist/lifecycle/host-tools/write-note-tool.d.ts +22 -0
- package/dist/lifecycle/host-tools/write-note-tool.js +47 -0
- package/dist/lifecycle/index.d.ts +2 -1
- package/dist/lifecycle/install.js +2 -1
- package/dist/lifecycle/installed-package-index.js +5 -8
- package/dist/lifecycle/mail/adapter-descriptors.d.ts +78 -0
- package/dist/lifecycle/mail/adapter-descriptors.js +155 -0
- package/dist/lifecycle/mail/catalog.d.ts +116 -0
- package/dist/lifecycle/mail/catalog.js +72 -0
- package/dist/lifecycle/mail/configuration.d.ts +25 -0
- package/dist/lifecycle/mail/configuration.js +62 -0
- package/dist/lifecycle/mail/contribution.d.ts +89 -0
- package/dist/lifecycle/mail/contribution.js +115 -0
- package/dist/lifecycle/mail/host-mailer.d.ts +24 -0
- package/dist/lifecycle/mail/host-mailer.js +10 -0
- package/dist/lifecycle/mail/index.d.ts +16 -0
- package/dist/lifecycle/mail/index.js +16 -0
- package/dist/lifecycle/mail/selection.d.ts +40 -0
- package/dist/lifecycle/mail/selection.js +86 -0
- package/dist/lifecycle/manifest.d.ts +7 -2
- package/dist/lifecycle/manifest.js +32 -9
- package/dist/lifecycle/metadata.d.ts +31 -0
- package/dist/lifecycle/metadata.js +80 -0
- package/dist/lifecycle/persistent-state.js +2 -1
- package/dist/lifecycle/ports.d.ts +2 -0
- package/dist/lifecycle/resolve-agent-plugin-refs.d.ts +2 -1
- package/dist/lifecycle/resolve-agent-plugin-refs.js +14 -8
- package/dist/lifecycle/search-projection.d.ts +3 -4
- package/dist/lifecycle/search-projection.js +5 -7
- package/dist/lifecycle/search.js +3 -2
- package/fly/plugin.json +5 -5
- package/fly/skills/fly/SKILL.md +1 -1
- package/formspree/plugin.json +7 -0
- package/formspree/skills/formspree/SKILL.md +11 -0
- package/github/plugin.json +2 -2
- package/github/skills/github/SKILL.md +28 -28
- package/github/skills/github/references/actions.md +8 -8
- package/github/skills/github/references/auth-and-tokens.md +7 -7
- package/github/skills/github/references/repo-files.md +5 -5
- package/github/skills/github/references/site-backup.md +16 -16
- package/github/skills/github/references/source-control.md +17 -17
- package/github-pages/plugin.json +2 -2
- package/github-pages/skills/github-pages/SKILL.md +3 -3
- package/google-forms/plugin.json +7 -0
- package/google-forms/skills/google-forms/SKILL.md +15 -0
- package/google-login/plugin.json +3 -3
- package/google-login/skills/google-login/SKILL.md +17 -60
- package/google-workspace/plugin.json +6 -6
- package/google-workspace/skills/google-workspace/references/connection.md +1 -1
- package/google-workspace/skills/google-workspace/references/form-delivery.md +4 -4
- package/google-workspace/tovu-admin-surfaces.json +5 -5
- package/higgsfield-media/plugin.json +5 -5
- package/higgsfield-media/skills/higgsfield-media/SKILL.md +31 -33
- package/higgsfield-media/skills/higgsfield-media/references/failure-modes.md +7 -7
- package/higgsfield-media/skills/higgsfield-media/references/models-and-plan-gates.md +3 -3
- package/jev/plugin.json +2 -2
- package/langfuse/plugin.json +2 -2
- package/meilisearch/plugin.json +2 -2
- package/meilisearch/skills/meilisearch/SKILL.md +1 -1
- package/netlify/plugin.json +2 -2
- package/netlify/skills/netlify/SKILL.md +3 -3
- package/opentelemetry/plugin.json +2 -2
- package/opentelemetry/skills/opentelemetry/SKILL.md +7 -7
- package/package.json +92 -14
- package/posthog/plugin.json +2 -2
- package/posthog/skills/posthog/SKILL.md +7 -7
- package/railway/plugin.json +3 -3
- package/railway/skills/railway/SKILL.md +10 -11
- package/render/plugin.json +3 -3
- package/render/skills/render/SKILL.md +7 -8
- package/resend/NOTES.md +2 -2
- package/resend/mcp.json +1 -1
- package/resend/plugin.json +5 -5
- package/resend/skills/resend/SKILL.md +13 -13
- package/s3-compatible/plugin.json +2 -2
- package/s3-compatible/skills/s3-compatible/SKILL.md +4 -4
- package/sentry/plugin.json +2 -2
- package/sentry/skills/sentry/SKILL.md +7 -7
- package/shopify/plugin.json +2 -2
- package/site-compliance/plugin.json +2 -2
- package/site-compliance/skills/site-compliance/SKILL.md +3 -3
- package/site-compliance/skills/site-compliance/references/gdpr-eu-uk.md +1 -1
- package/site-import/plugin.json +2 -2
- package/slide-design/plugin.json +2 -2
- package/software-engineering/LICENSE +201 -0
- package/software-engineering/NOTICE +9 -0
- package/software-engineering/README.md +89 -0
- package/software-engineering/plugin.json +24 -0
- package/software-engineering/skills/software-engineering/SKILL.md +33 -0
- package/software-engineering/skills/software-engineering/references/debugging.md +54 -0
- package/software-engineering/skills/software-engineering/references/implementation.md +27 -0
- package/software-engineering/skills/software-engineering/references/planning.md +27 -0
- package/software-engineering/skills/software-engineering/references/prototyping.md +14 -0
- package/software-engineering/skills/software-engineering/references/security.md +47 -0
- package/software-engineering/skills/software-engineering/references/verification.md +53 -0
- package/stripe/plugin.json +2 -2
- package/supabase/mcp.json +4 -4
- package/supabase/plugin.json +3 -3
- package/supabase/skills/supabase/SKILL.md +8 -8
- package/supabase/skills/supabase/references/failure-modes.md +5 -5
- package/ui-ux-design/plugin.json +2 -2
- package/vercel/plugin.json +2 -2
- package/vercel/skills/vercel/SKILL.md +3 -3
- package/wordpress/plugin.json +2 -2
- package/wordpress/skills/wordpress/SKILL.md +3 -3
- package/wordpress/skills/wordpress/references/free-site-redirect.md +2 -2
- package/wordpress/skills/wordpress/references/subdomain.md +5 -5
package/shopify/plugin.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "shopify",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Runs a shop on this site while Shopify keeps the products, cart, checkout, payments and orders. Works with no Shopify key at all: it reads the store's public product data (<store>/products.json and /meta.json), copies every product into a 'product' collection here (price, stock, photo, Buy link), and builds the shop grid with the collection embed whose Buy buttons are Shopify cart links (https://<shop>.myshopify.com/cart/<variant_id>:1) that open Shopify's own checkout. Re-running updates the same entries instead of duplicating them. Also encodes the domain move that breaks checkout when done in the wrong order (connect a shop. subdomain to Shopify and make it primary BEFORE the main domain points at this site). Follow the shopify skill and the host guidance.",
|
|
6
6
|
"author": "Tovu",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
|
-
"
|
|
9
|
+
"jini": {
|
|
10
10
|
"maturity": "soon",
|
|
11
11
|
"summary": "Lets your site sell your Shopify products while Shopify handles the cart, checkout, payments and orders.\n\nThe assistant copies your products onto your site and adds Buy buttons that open Shopify's checkout. It also keeps your shop working when you move your web address to this site. Live prices and a cart drawer are available too, with no Shopify key needed.",
|
|
12
12
|
"id": "tovu/shopify",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "site-compliance",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "Evidence-based privacy, cookie/consent, and accessibility risk screening for a website. Collects citable evidence from the site's own configuration and its own rendered pages, reports findings with the exact page path, selector, header, or request that supports each one, and says 'cannot determine' where the evidence is missing. Never asserts a GDPR, CCPA/CPRA, or WCAG compliance verdict.",
|
|
6
6
|
"author": "Tovu",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
|
-
"
|
|
9
|
+
"jini": {
|
|
10
10
|
"maturity": "soon",
|
|
11
11
|
"summary": "Checks your site for privacy, cookie and accessibility risks and shows where each one is. It flags risks; it doesn't certify compliance.",
|
|
12
12
|
"id": "tovu/site-compliance",
|
|
@@ -133,7 +133,7 @@ not silently pick a jurisdiction.
|
|
|
133
133
|
|
|
134
134
|
### Step 1 — configuration truth
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
Read the site profile for the sections you need — typically `pages`, `settings`, `theme`,
|
|
137
137
|
`plugins`, `contentTypes`. Prefer a narrow `sections` list; a full profile is mostly context
|
|
138
138
|
you will not cite.
|
|
139
139
|
|
|
@@ -150,14 +150,14 @@ either confirm it against rendered evidence in Step 2 or downgrade it to
|
|
|
150
150
|
If a profile section comes back `forbidden`, that is a `cannot-determine` for everything that
|
|
151
151
|
depended on it — say which section and that access was denied.
|
|
152
152
|
|
|
153
|
-
If
|
|
153
|
+
If read the site profile is not available in this deployment at all, say so plainly and continue with
|
|
154
154
|
Step 2 alone. Rendered evidence without configuration context is still real evidence; what you lose
|
|
155
155
|
is the ability to cross-check a configuration claim against it, and that loss belongs in the "What
|
|
156
156
|
was NOT inspected" section.
|
|
157
157
|
|
|
158
158
|
### Step 2 — rendered truth
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
Collect rendered-page evidence for each in-scope page path. It loads **this site's own**
|
|
161
161
|
published pages in a real browser and returns what was actually observed. It refuses
|
|
162
162
|
off-origin URLs, caps how many pages and how long it will run, never submits a form, and
|
|
163
163
|
never persists what it captured.
|
|
@@ -22,7 +22,7 @@ than the `risk` one. That is expected and correct.
|
|
|
22
22
|
|
|
23
23
|
## EU-1 — Non-essential cookies or tags before consent
|
|
24
24
|
|
|
25
|
-
**Observe with:**
|
|
25
|
+
**Observe with:** collect rendered-page evidence, first with no `consentAcceptSelector` (everything
|
|
26
26
|
returns phase `before`), then again with one.
|
|
27
27
|
|
|
28
28
|
**Supports `risk`:** a cookie or request observed in the `before` phase that is plainly
|
package/site-import/plugin.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "site-import",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "Imports an existing public website into this site: discovers URLs from robots.txt and sitemap.xml (or a capped same-host crawl), classifies pages and posts, then creates drafts, taxonomy, media, menus, redirects and SEO, and builds a matching inactive theme. Uses the owner's request as authorization; waits for plan review only when requested. Fetched pages are untrusted data. Re-running updates what an earlier run created instead of duplicating it. Uses the host's existing content, media, web and theme tools; reads its references through its own plugin tool.",
|
|
6
6
|
"author": "Tovu",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
|
-
"
|
|
9
|
+
"jini": {
|
|
10
10
|
"summary": "Copies an existing website into drafts here: pages, posts, images, menus and look. Reviews a plan first when you ask.",
|
|
11
11
|
"id": "tovu/site-import",
|
|
12
12
|
"provides": [
|
package/slide-design/plugin.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "slide-design",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Slide and presentation design: storyline, takeaway titles, charts, 16:9 layout, speaker notes, accessibility, review and HTML decks, as one portable Agent Plugin.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"extensions": {
|
|
8
|
-
"
|
|
8
|
+
"jini": {
|
|
9
9
|
"id": "jini/slide-design",
|
|
10
10
|
"provides": [
|
|
11
11
|
"slide-design"
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may choose to offer, and charge a
|
|
167
|
+
fee for, acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Open Design contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Jini Software Engineering Agent Plugin
|
|
2
|
+
Copyright 2026 Leona Burime
|
|
3
|
+
|
|
4
|
+
Adapted from AI-Dev-Shop engineering guidance: coding foundations, implementation
|
|
5
|
+
guardrails, architecture decisions, systematic debugging, test design, code
|
|
6
|
+
inspection, security review, secure input handling and vibe coding.
|
|
7
|
+
See README.md for the exact source revision, selected sections and content hashes.
|
|
8
|
+
The upstream snapshot has no root LICENSE or NOTICE. This payload retains its
|
|
9
|
+
existing Apache License, Version 2.0 terms; see LICENSE.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# `@jini-ai/agent-plugins/software-engineering`
|
|
2
|
+
|
|
3
|
+
One portable plugin, displayed as **Software Engineering** through host metadata.
|
|
4
|
+
Resolve this subpath and stage only its directory through the existing agent-plugin lifecycle.
|
|
5
|
+
It has one small entry router and six on-demand references: implementation, architecture,
|
|
6
|
+
debugging, verification/code review, security, and prototyping. It installs no checker, MCP server,
|
|
7
|
+
hook, analyzer, dependency, watcher or background task. Host activation and permissions apply.
|
|
8
|
+
The inner content version is 0.2.1; the containing npm package version follows the release process.
|
|
9
|
+
|
|
10
|
+
## Repeatable update
|
|
11
|
+
|
|
12
|
+
From the Jini root, use an upstream checkout containing the desired commit:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
git -C /path/to/AI-Dev-Shop fetch origin <sha>
|
|
16
|
+
node scripts/sync-software-engineering.mjs /path/to/AI-Dev-Shop <40-character-sha>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The script reads Git objects at that exact SHA, not working-tree files. It selects named sections,
|
|
20
|
+
applies explicit portable adaptations, validates each reference's size and rejects upstream-specific
|
|
21
|
+
wording before writing. Review the diff when headings or budgets change; never skip those checks.
|
|
22
|
+
The local router and adaptation paragraphs remain maintained here. No upstream code is executed.
|
|
23
|
+
Increment plugin.json's inner version when content changes, regenerate the existing plugin catalog,
|
|
24
|
+
run the checks below, rebuild Jini and relink/stage the selected payload in the host. Keep any host-owned staging mirror synchronized with the complete skill tree and its equality test.
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
node --test packages/agent-plugins/software-engineering/__tests__/bundled-package.test.mjs
|
|
28
|
+
pnpm --filter @jini-ai/agent-plugins typecheck
|
|
29
|
+
pnpm --filter @jini-ai/plugin-catalog generate
|
|
30
|
+
pnpm guard:plugins
|
|
31
|
+
pnpm guard:plugins:packed
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Selection and adaptations
|
|
35
|
+
|
|
36
|
+
Selected foundations and implementation guardrails; architecture defaults and boundary principles;
|
|
37
|
+
root-cause investigation and hypothesis testing; behavior-level assertions; requirement, architecture
|
|
38
|
+
and resource review; resource-level authorization, secret handling and secure input handling; and
|
|
39
|
+
focused exploratory prototyping. These cover the useful engineering responsibilities of Programmer,
|
|
40
|
+
Software Architect, TDD, Code Inspection and Security without shipping their pipeline personas.
|
|
41
|
+
|
|
42
|
+
Left out coordinator startup, approval/report hierarchies, spec certification, peer orchestration,
|
|
43
|
+
analyzer installation, backend-specific integrations, deployment automation, mobile guidance and
|
|
44
|
+
visual design assets. They require separate host capabilities or are outside web app engineering.
|
|
45
|
+
UI work discovers the host's design/accessibility capability. No sibling plugin is imported.
|
|
46
|
+
No project names, source revisions or session provenance are included in delivered skill text.
|
|
47
|
+
Host-only rules live in overlays. Existing tests, supported behavior and honest verification remain
|
|
48
|
+
required; adding feature tests is determined by the task and repository, not a mandatory pipeline.
|
|
49
|
+
|
|
50
|
+
LICENSE retains this payload's existing Apache-2.0 terms. NOTICE retains author attribution and
|
|
51
|
+
identifies the adaptation. The selected upstream snapshot has no root LICENSE or NOTICE; this
|
|
52
|
+
README does not claim that upstream supplied an Apache license declaration.
|
|
53
|
+
|
|
54
|
+
## Size and state cost
|
|
55
|
+
|
|
56
|
+
Entry ≤4 KiB; each reference ≤5 KiB; published payload including legal files ≤40 KiB.
|
|
57
|
+
One selected payload is staged per build; install cost is O(payload) per new digest. Guidance reads
|
|
58
|
+
load only the requested reference through the existing trusted reader. No persistent state, timer,
|
|
59
|
+
cache, poll, migration, endpoint or runtime I/O path is added.
|
|
60
|
+
|
|
61
|
+
## Upstream revision
|
|
62
|
+
|
|
63
|
+
AI-Dev-Shop commit: `f02b883bbf51d043c3589eba093d78745600e13b`.
|
|
64
|
+
|
|
65
|
+
### Selected source files (SHA-256)
|
|
66
|
+
|
|
67
|
+
| Path | Hash |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `skills/architecture-decisions/SKILL.md` | `84d5068554139caa860cd9349f4e1de26714e2326ed07e5f9b1333ab014ba56d` |
|
|
70
|
+
| `skills/code-inspection/SKILL.md` | `96d10fbf3eb12fbe1bb593f2dd88318bef2a5fd3fc4faac76fa7431f227b8b5f` |
|
|
71
|
+
| `skills/coding-foundations/SKILL.md` | `f2baeec706d33c25c93b178d14c90c49a7be8db0bcce046275696818258600a1` |
|
|
72
|
+
| `skills/implementation-guardrails/SKILL.md` | `c86231496d9d3366fda8942b8dabf535c0fcd5c1a41ecce18af0476dcbe5d6bc` |
|
|
73
|
+
| `skills/secure-input-handling/SKILL.md` | `cbacd5dbd92059a51821a78e9f19fbca8a1f88597c96c85e8172ec6685bb1134` |
|
|
74
|
+
| `skills/security-review/SKILL.md` | `4bbc8625ff1a081a59755b2158caffc6dbbd30435848beb59ee6c5207a471a65` |
|
|
75
|
+
| `skills/systematic-debugging/SKILL.md` | `c12f128cf423c86e0777d22433896d542ebf01c80e3c1456ba9ba45d993274ee` |
|
|
76
|
+
| `skills/test-design/SKILL.md` | `793f2899f79fe147daea4fa62215e7d665a8a2c73ea689c99bb617e559fa7627` |
|
|
77
|
+
| `skills/vibe-coding/SKILL.md` | `234b040f9c381307eb809e8783f9168d5093213c3b3711f9b6b408d40cfaccf1` |
|
|
78
|
+
|
|
79
|
+
## Skill hashes (SHA-256)
|
|
80
|
+
|
|
81
|
+
| Path | Hash |
|
|
82
|
+
| --- | --- |
|
|
83
|
+
| `skills/software-engineering/SKILL.md` | `c2d1080438d23bcad9559fc684506f6c277b54ab23fb12b00f11c2c6a328fa2e` |
|
|
84
|
+
| `skills/software-engineering/references/implementation.md` | `51399d0d3086da41ea7c7b6fe2bd5216752ecd7ba3c42edf2e760b8bfabb2dff` |
|
|
85
|
+
| `skills/software-engineering/references/planning.md` | `ce4b8a4e4c1ccdb59fa96e22429354664b32e9deb5fd40316d0fb7c7dbced3a1` |
|
|
86
|
+
| `skills/software-engineering/references/debugging.md` | `8ba84994837106d02ecf6e28926bccb044ecfa61fed551def04c0ab172031085` |
|
|
87
|
+
| `skills/software-engineering/references/verification.md` | `8ac6b41e7203fa6a16e0e4a0d980ed530418e9e0da6426502dc798dcf9fce1b6` |
|
|
88
|
+
| `skills/software-engineering/references/security.md` | `ad501b2e130b7b1c64f75b790b48f59af6b32751a8e7d3d51ad5268b3815126e` |
|
|
89
|
+
| `skills/software-engineering/references/prototyping.md` | `ac802999f8e66c7b857e53055b04e16c2c36dc7f405e730d640210af0b7f011e` |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "software-engineering",
|
|
4
|
+
"version": "0.2.1",
|
|
5
|
+
"description": "Routes implementation, architecture, debugging, testing, code review, security and prototyping to portable engineering guidance.",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"extensions": {
|
|
8
|
+
"jini": {
|
|
9
|
+
"id": "jini/software-engineering",
|
|
10
|
+
"displayName": "Software Engineering",
|
|
11
|
+
"summary": "Helps write maintainable, secure, test-ready software with honest verification.",
|
|
12
|
+
"provides": [
|
|
13
|
+
"software-engineering"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"coding",
|
|
19
|
+
"software-engineering",
|
|
20
|
+
"architecture",
|
|
21
|
+
"debugging",
|
|
22
|
+
"quality"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: software-engineering
|
|
3
|
+
description: Plan, implement, debug, test and review web app changes with explicit boundaries, secure input handling and honest verification. Use for coding, bug fixes, refactors, architecture and exploratory prototypes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Software engineering
|
|
7
|
+
|
|
8
|
+
## Start with the task
|
|
9
|
+
|
|
10
|
+
Use the host's guidance reader to load only the references needed. Discover available tools and follow host permissions. Shell commands and dependency setup apply only in an authorized coding checkout. Missing capabilities are limitations to report, never permission to bypass restrictions. Follow requirements and repository conventions; no external framework or approval ceremony is required.
|
|
11
|
+
|
|
12
|
+
Identify the intended outcome, workspace and acceptance criteria. Inspect its manifests, lockfile, configuration, owner and callers before choosing stack guidance; root dependencies alone do not identify a monorepo's affected stack. Search for an existing owner and extend it. Preserve user work, keep the diff limited to the task and list unrelated findings without fixing them.
|
|
13
|
+
|
|
14
|
+
## Route the work
|
|
15
|
+
|
|
16
|
+
- Quick exploratory web app or prototype: [prototyping](references/prototyping.md).
|
|
17
|
+
- Feature or refactor: [implementation](references/implementation.md).
|
|
18
|
+
- Architecture, unclear behavior or a meaningful boundary change: [planning](references/planning.md), then implementation for the selected slice.
|
|
19
|
+
- Bug or unexpected behavior: [debugging](references/debugging.md), then implementation for the fix.
|
|
20
|
+
- Authentication, authorization, untrusted input, secrets or external integrations: [security](references/security.md).
|
|
21
|
+
- Tests, code review or completion: [verification](references/verification.md). Use it before claiming completion.
|
|
22
|
+
|
|
23
|
+
Load individual references as needed, not the catalog. For UI work, discover available design and accessibility guidance; let it own visual direction and browser checks. Do not import or copy another plugin's files. Discover host memory/resource guidance when needed; keep its policy there.
|
|
24
|
+
|
|
25
|
+
## Keep changes understandable
|
|
26
|
+
|
|
27
|
+
Keep one owner per rule. Inject clocks, randomness, configuration, storage and clients at effect boundaries. Separate decisions from I/O and keep orchestration thin. Use explicit named inputs and return/error contracts. Avoid mutating inputs and adding abstractions without a concrete requirement.
|
|
28
|
+
|
|
29
|
+
Make decisions observable and effects replaceable even when feature tests are optional. Preserve useful validation, recovery and supported behavior. Validate untrusted input before effects and authorize each protected resource. Do not hide failures behind broad catches or success-shaped fallbacks.
|
|
30
|
+
|
|
31
|
+
Errors name the failure, safe context and next action. Redact credentials, private data and raw vendor responses; keep safe details copyable. Bound collections, payloads, concurrency, retries and external call durations. Define cancellation and partial-failure behavior. Prefer bulk I/O and account for frequency × payload of added reads, writes and polls.
|
|
32
|
+
|
|
33
|
+
Follow existing checks. Bugs start with a failing regression; added executable tests require scoped mutation testing. Missing checkers mean UNVERIFIED, never PASS. See verification for measurements and the narrow exhaustive-switch exception. Report changed behavior, exact commands/results and limitations.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Debugging
|
|
2
|
+
|
|
3
|
+
Start with observed behavior, expected behavior and a minimal reproduction. Trace the concrete input through its owner and effect boundary. Redact secrets from evidence. Fix the root cause rather than a downstream symptom.
|
|
4
|
+
|
|
5
|
+
### Phase 1: Root Cause Investigation
|
|
6
|
+
|
|
7
|
+
**BEFORE attempting ANY fix:**
|
|
8
|
+
|
|
9
|
+
1. **Read Error Messages Carefully**
|
|
10
|
+
- Don't skip past errors or warnings
|
|
11
|
+
- They often contain the exact solution
|
|
12
|
+
- Read stack traces completely
|
|
13
|
+
- Note line numbers, file paths, error codes
|
|
14
|
+
|
|
15
|
+
2. **Reproduce Consistently**
|
|
16
|
+
- Can you trigger it reliably?
|
|
17
|
+
- What are the exact steps?
|
|
18
|
+
- Does it happen every time?
|
|
19
|
+
- If not reproducible → gather more data, don't guess
|
|
20
|
+
|
|
21
|
+
3. **Check Recent Changes**
|
|
22
|
+
- What changed that could cause this?
|
|
23
|
+
- Git diff, recent commits
|
|
24
|
+
- New dependencies, config changes
|
|
25
|
+
- Environmental differences
|
|
26
|
+
|
|
27
|
+
### Phase 3: Hypothesis and Testing
|
|
28
|
+
|
|
29
|
+
**Scientific method:**
|
|
30
|
+
|
|
31
|
+
1. **Form Single Hypothesis**
|
|
32
|
+
- State clearly: "I think X is the root cause because Y"
|
|
33
|
+
- Write it down
|
|
34
|
+
- Be specific, not vague
|
|
35
|
+
|
|
36
|
+
2. **Test Minimally**
|
|
37
|
+
- Make the SMALLEST possible change to test hypothesis
|
|
38
|
+
- One variable at a time
|
|
39
|
+
- Don't fix multiple things at once
|
|
40
|
+
|
|
41
|
+
3. **Verify Before Continuing**
|
|
42
|
+
- Did it work? Yes → implement the proven correction
|
|
43
|
+
- Didn't work? Form NEW hypothesis
|
|
44
|
+
- DON'T add more fixes on top
|
|
45
|
+
|
|
46
|
+
4. **When You Don't Know**
|
|
47
|
+
- Say "I don't understand X"
|
|
48
|
+
- Don't pretend to know
|
|
49
|
+
- Ask for help
|
|
50
|
+
- Research more
|
|
51
|
+
|
|
52
|
+
For a bug, write and run a failing regression test before the fix. Confirm failure comes from the behavior, not setup. Probe external dependencies in isolation and consult current upstream documentation or issues before guessing flags. Never repeat a byte-identical failed invocation except for an evidenced transient capacity signal. The same failure twice without progress ends that loop: report the evidence, hypothesis and missing capability, then continue independent work.
|
|
53
|
+
|
|
54
|
+
Implement the smallest correction at the owner, preserving validation, permissions, recovery and supported formats. Run the regression and affected existing checks, inspect the diff and report before/after evidence. Missing reproduction tools mean UNVERIFIED. Never hide a failure with a skip, weakened assertion or silent fallback.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Implementation
|
|
2
|
+
|
|
3
|
+
Read the existing owner and callers first. Reuse the owner, standard library, native platform or installed dependency before adding code. Copying a sibling lifecycle is not reuse. Preserve useful why comments and user work. Keep unrelated fixes out of the diff.
|
|
4
|
+
|
|
5
|
+
## Core Rules
|
|
6
|
+
|
|
7
|
+
1. Keep dependencies explicit. Do not hide clocks, random sources, repositories, config, or clients behind globals or inline construction in logic-bearing code. Avoid module-level singletons and append-only registries; inject registry instances with unregister and reset lifecycles.
|
|
8
|
+
2. Separate decision logic from effect execution where practical. Pure or mostly-pure decision steps should be obvious; effectful wrappers should be thin and explicit.
|
|
9
|
+
3. Prefer not mutating inputs or shared state by default. If mutation is required, the contract or performance reason must be obvious near the code.
|
|
10
|
+
4. Keep exported contracts explicit and stable. Favor named fields and predictable shapes at module boundaries.
|
|
11
|
+
5. Fail fast on invalid input or impossible state unless the spec explicitly requires graceful degradation or recovery. Expose failures as a typed outcome or typed error; never silently swallow them. If a check guarding an irreversible action errors or cannot decide, deny the action.
|
|
12
|
+
6. Keep units small and readable enough that the next agent can reason about them without reading surrounding subsystems or git history.
|
|
13
|
+
|
|
14
|
+
## Scaling and maintainability
|
|
15
|
+
|
|
16
|
+
1. Do an author-time scaling sanity check for any changed path that iterates caller-controlled input, nests loops, batches work, or risks per-item I/O.
|
|
17
|
+
2. Add a short inline complexity note only when the cost, query shape, or tradeoff is non-obvious and materially relevant to future maintainers.
|
|
18
|
+
3. For data-heavy code, make query or network fan-out explicit. Prefer bounded bulk reads/writes over hidden per-item I/O.
|
|
19
|
+
3b. For any function that calls an external service for a user-variable collection (roles, items, permissions, records), enforce resource bounds: maximum collection size (configurable cap), timeout on service calls, and defined behavior at the cap (error, truncate, or paginate). Do not assume typical usage equals worst-case usage.
|
|
20
|
+
4. Keep one source of truth for business rules, mapping tables, config lookups, and shared lifecycles or security-sensitive sequences (for example permission check → secret exchange → sealed store → outcome report); do not duplicate them across modules.
|
|
21
|
+
5. Avoid boolean flag parameters when an enum, options object, or named variant would make the call site clearer.
|
|
22
|
+
6. Prefer descriptive names and flow over clever compactness on non-trivial paths.
|
|
23
|
+
7. If performance or framework constraints force a non-obvious tradeoff, leave the reason near the code.
|
|
24
|
+
|
|
25
|
+
Use required and optional argument objects at public boundaries where the repository follows that convention. Return typed outcomes and document public inputs, outputs, errors and effects. Isolate opaque SDK errors in adapters. A user-facing error names the failure, safe context and next action; redact secrets and keep diagnostic details copyable.
|
|
26
|
+
|
|
27
|
+
Use registered migrations for persisted changes. Preserve compatibility and define cancellation, idempotency and partial-failure behavior before retrying writes. Account for frequency × payload on added reads, writes and polls. Use [security](security.md) when crossing a trust boundary and [verification](verification.md) before completion.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Planning and architecture
|
|
2
|
+
|
|
3
|
+
Identify the requested outcome, acceptance criteria, existing owner, callers and constraints. Choose the smallest reversible slice and record its files, observable contracts, failure modes and verification plan. Preserve the current architecture unless the requirement needs a boundary change.
|
|
4
|
+
|
|
5
|
+
## Default Architecture Heuristic
|
|
6
|
+
|
|
7
|
+
Use this as the default starting position before evaluating exceptions:
|
|
8
|
+
|
|
9
|
+
1. For most long-lived products, start with a **modular monolith** at the macro level.
|
|
10
|
+
2. Organize delivery around **vertical slices** or strongly owned modules rather than broad shared technical layers.
|
|
11
|
+
3. Apply **hexagonal boundaries** inside the slices or modules that have meaningful external I/O, provider-swappability needs, or business-critical logic that must stay framework-independent.
|
|
12
|
+
4. For Python services, workers, APIs, and other domain-heavy backend code, hexagonal architecture is a strong default boundary discipline.
|
|
13
|
+
5. For frontend applications, discover available frontend architecture and design guidance for the affected stack.
|
|
14
|
+
6. For trivial CRUD, scripts, and short-lived work, do not add ports-and-adapters unless the complexity justifies it.
|
|
15
|
+
|
|
16
|
+
This is a default, not a mandate. Override it only when the system drivers clearly justify a different macro shape.
|
|
17
|
+
|
|
18
|
+
## Principles That Always Apply
|
|
19
|
+
|
|
20
|
+
1. **Modular and reversible first.** Keep every part fixable, replaceable, and updatable as requirements change. This outranks elegance and performance; hard requirements remain binding. Treat reversal cost as a first-class criterion. Put one narrow seam at each coupling that already exists: "if this changes, how many places do I edit?" The answer must be one. Prefer additive changes beside published surfaces, then retire the old path; prefer movable configuration data over hardcoded policy where it keeps change local. Reuse proven migration mechanisms and settle shared surface shapes before concurrent work begins. Do not invent speculative extension points: replaceable does not require pluggable.
|
|
21
|
+
2. **Dependencies point inward.** Core business logic must not depend on databases, frameworks, or external services.
|
|
22
|
+
3. **Depend on interfaces, not implementations.** Every external dependency should be behind an interface so it can be swapped, mocked in tests, or replaced without touching core code.
|
|
23
|
+
4. **Start simple, extract when needed.** Modular monolith before microservices. CRUD before CQRS. Add complexity only when the problem actually demands it.
|
|
24
|
+
5. **Match pattern to problem.** Event sourcing for audit trails. CQRS for asymmetric read/write. Vertical slices for large feature teams. One pattern is not universally better.
|
|
25
|
+
6. **Enforce boundaries.** Module A must not import internals from Module B. Enforce this with linting, import rules, or package structure — not by trusting developers to remember.
|
|
26
|
+
|
|
27
|
+
Keep URL, client and server state ownership distinct. Define cleanup, stale response handling and cache invalidation where affected. Use established migrations; plan bounded backfills, lock impact and compatibility. Record frequency × payload and fan-out for added I/O. Resolve ambiguity that changes correctness or irreversible effects; continue independent authorized work.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Prototyping
|
|
2
|
+
|
|
3
|
+
## Operating Style
|
|
4
|
+
|
|
5
|
+
- Ask at most one clarifying question if needed to start.
|
|
6
|
+
- Keep scope to a single focused prototype — one idea, one slice.
|
|
7
|
+
- Prefer minimal files and direct implementation.
|
|
8
|
+
- Avoid heavy architecture, templates, and documentation unless requested.
|
|
9
|
+
- Work on a scratch branch or scratch directory — do not commit exploratory code to main.
|
|
10
|
+
- **Under-specification check**: if the request has no clear artifact (what to build) and no success condition (how to know it works) — offer one sentence before building: "This is open-ended — want me to run a quick structured sharpening before we build, or just start?" Default is start if no answer. If the request contains **contradictory directions**, do not default to start — ask the user to resolve the contradiction first.
|
|
11
|
+
|
|
12
|
+
Deliver runnable code or a concrete scaffold and a short known-rough-edges list. Mark exploratory work as non-production. Do not claim production readiness or modify security-critical authentication/payment flows without an explicit request. Use synthetic fixtures, never real secrets or personal data. For demand or usability experiments, identify one measurable success signal and the smallest authorized feedback loop.
|
|
13
|
+
|
|
14
|
+
Keep permissions, input validation and honest verification even when moving quickly. Before hardening, turn the prototype into concrete acceptance criteria, inspect its actual dependencies and load [planning](planning.md), [implementation](implementation.md), [security](security.md) and [verification](verification.md) only as needed. No external pipeline or planned skill is required.
|