Skip to content

Commit 292602e

Browse files
ilyafainbergCopilot
andcommitted
Distribute CodeAppsCompact as a GitHub-hosted skill marketplace
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1b562a3 commit 292602e

12 files changed

Lines changed: 340 additions & 54 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "codeappscompact",
3+
"owner": {
4+
"name": "Ilya Fainberg"
5+
},
6+
"metadata": {
7+
"description": "CodeAppsCompact: a portable agent skill and GitHub-hosted kit for compact Power Platform Code Apps record screens."
8+
},
9+
"plugins": [
10+
{
11+
"name": "codeappscompact",
12+
"source": "./plugins/codeappscompact",
13+
"description": "Reuse the record-screen kit; download the pinned GitHub archive only when missing, then configure existing generated services.",
14+
"version": "0.1.1",
15+
"repository": "https://github.com/ilyafainberg/CodeAppsCompact",
16+
"license": "MIT",
17+
"keywords": ["agent-skills", "power-apps", "code-apps", "power-platform", "react", "typescript"]
18+
}
19+
]
20+
}

‎README.md‎

Lines changed: 83 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,116 @@
11
# CodeAppsCompact
22

3-
Experimental React/TypeScript record screens for Power Platform Code Apps. Configure fields, columns, validation, and a service adapter instead of repeatedly implementing list/editor state management.
3+
**Install the skill. Ask for a Code Apps record screen. The agent obtains the kit only when it is missing.**
44

5-
**Status:** version 0.1.0, experimental and MIT-licensed. Live Power Apps-host and tenant compatibility remain unverified. npm publication is pending; use the local package workflow below until the registry release is available.
5+
CodeAppsCompact is a GitHub-hosted React/TypeScript kit and portable agent skill for Power Platform Code Apps. The agent configures fields, columns, validation, and generated-service mappings instead of regenerating list/editor behavior.
66

7-
## What it does
7+
**Status:** 0.1.1, experimental, MIT-licensed. The kit and skill are distributed through [GitHub Releases](https://github.com/ilyafainberg/CodeAppsCompact/releases/tag/v0.1.1), not the npm registry. Live Power Apps-host and tenant compatibility remain unverified. Version 0.1.1 changes distribution and documentation; the 0.1.0 component behavior is unchanged.
88

9-
`RecordScreen` provides a record table, local search over loaded records, cursor-based pagination and deduplication, accessible create/edit forms, primitive field validation, and explicit read/write errors. Failed writes preserve the form; writes are not automatically retried. A failed refresh after a successful save does not replay the write.
9+
## 1. Install the skill
1010

11-
The app supplies a `DataService<R, D>` with `getAll`, `create`, and `update` returning the Power Apps SDK's `IOperationResult<T>`, plus app-specific mappings. The component requires a caller-owned `QueryClientProvider`.
11+
This repository is a single-plugin skill marketplace named `codeappscompact`. It contains one plugin and one skill, both named `codeappscompact`. Register it explicitly in your agent; the repository is not automatically listed in every host's central catalog.
1212

13-
Supported drafts are flat objects with widened `string` and `number` values. There is no delete, relationship editor, upload support, nested draft schema, or cross-system transaction support. Authentication, SDK initialization, connection configuration, permissions, and deployment remain the host app's responsibility. Actual generated connector signatures must be inspected and adapted; do not assume they match the synthetic service.
13+
### GitHub Copilot CLI
1414

15-
## Develop and run the synthetic example
16-
17-
Use Node.js 22.12 or newer; CI uses Node.js 24. The lockfile pins the development dependencies, including React 18 and Power Apps SDK 1.5.0.
15+
Run in your terminal:
1816

1917
```powershell
20-
git clone https://github.com/ilyafainberg/CodeAppsCompact.git
21-
cd CodeAppsCompact
22-
npm ci --ignore-scripts --no-audit --no-fund
23-
npm run typecheck
24-
npm test
25-
npm run build
26-
npm run dev
18+
copilot plugin marketplace add ilyafainberg/CodeAppsCompact
19+
copilot plugin install codeappscompact@codeappscompact
2720
```
2821

29-
Open the local URL printed by Vite. The example uses in-memory synthetic service-request data: it makes no tenant requests, stores no credentials, and resets on reload. `npm run build:demo` creates a local demo build; it does not publish or deploy a Code App.
22+
### Claude Code
3023

31-
## Use the package locally
24+
Run inside a Claude Code session:
3225

33-
From this repository:
34-
35-
```powershell
36-
npm pack
26+
```text
27+
/plugin marketplace add ilyafainberg/CodeAppsCompact
28+
/plugin install codeappscompact@codeappscompact
3729
```
3830

39-
The prepack script builds the JavaScript and declarations. The archive is `codeappscompact-0.1.0.tgz`. From a consuming Code App, install the archive using its actual local path, for example:
31+
### Other Agent Skills-compatible hosts
4032

41-
```powershell
42-
npm install --save-exact "C:\path\to\CodeAppsCompact\codeappscompact-0.1.0.tgz"
43-
```
33+
Download [codeappscompact-skill-0.1.1.zip](https://github.com/ilyafainberg/CodeAppsCompact/releases/download/v0.1.1/codeappscompact-skill-0.1.1.zip) and import its `codeappscompact` folder through your host's supported skill mechanism. Alternatively, copy the complete [skill directory](plugins/codeappscompact/skills/codeappscompact), including `references`, to a supported skill location. Copying only `SKILL.md` loses the installation instructions and pinned kit manifest.
4434

45-
The required peers are React, TanStack React Query, and the Power Apps SDK; their supported ranges are in `package.json`. Then import `RecordScreen` and the public types from `codeappscompact`. The library does not inject styles or create a query client. Use the host application's styling and query provider, and adapt its generated services to the documented service contract.
35+
The skill is host-neutral guidance, not an executable installer or a grant of permissions. Installation does not run hooks, register MCP servers, download the runtime kit, change a Code App, or deploy anything. The agent performs those kit setup steps only when you invoke the skill for an authorized task. Reload your host if it requires a new session to discover installed skills.
4636

47-
`examples/App.tsx` is a complete configured screen; `examples/main.tsx` demonstrates the query provider, and `examples/service.ts` is the synthetic adapter used by the example and tests. Its strings, including the priority draft field, intentionally use widened primitive types; the select field configuration constrains accepted values.
37+
## 2. Ask for the feature
4838

49-
## API and agent workflow
39+
In an existing React/TypeScript Code App, for example:
5040

51-
Read [API.txt](API.txt) for the full version-matched contract. An agent should inspect the existing app and generated services, read that reference, and write only the fields, columns, mappings, and integration that are specific to the requested feature. Keep errors visible, preserve the stated paging/search semantics, and run the app's own checks. Do not create connections, change tenant data, or publish without authorization.
41+
> Use CodeAppsCompact to add a service-request screen using our existing generated service. Include summary, owner email, priority, and estimated hours. Support creating, editing, paging, and searching loaded records. Preserve the existing theme and do not deploy.
5242
53-
The reusable implementation is the token-saving mechanism. A dedicated portable agent skill is not included yet. This repository does not ship benchmark prompts, usage logs, or trial source. The original pilot artifacts are kept separately; synthetic tests do not establish live-tenant compatibility or savings across all Code Apps.
43+
The skill guides the agent to:
5444

55-
## Repository layout
45+
1. Inspect the app, package manager, generated service types, and requested behavior.
46+
2. Reuse a compatible installed `codeappscompact` package. If it is declared but not restored, restore the existing lockfile instead of replacing its origin or version.
47+
3. If absent, obtain any required permission, download the version-pinned kit from this repository's GitHub release, verify SHA-256, inspect its contents, and install it project-locally. No npm login is needed for the kit.
48+
4. Read the installed version's `API.txt` and write only the app-specific configuration and service adapter.
49+
5. Run the app's checks and report whether integration used synthetic data or authorized live services. A synthetic pass does not establish tenant compatibility.
5650

57-
- `src/index.tsx`: the original 0.1.0 library implementation.
58-
- `API.txt`: complete public API and behavior contract.
59-
- `examples/`: synthetic request-management screen and service.
60-
- `tests/`: behavior checks and a separate inventory-schema example.
61-
- `.github/workflows/ci.yml`: type checking, tests, library/demo builds, and package-content preview. No deployment or npm publishing.
51+
The default downloaded archive is kept inside the consuming app's `vendor` directory and installed as a local file dependency. Keep that archive, the dependency manifest, and the lockfile together in the app repository so a clean checkout can restore it. A valid existing installation is reused without another download or update check. Upgrades are explicit.
6252

63-
Build outputs, dependencies, archives, environment files, and npm configuration are ignored by Git. The npm file allowlist includes `dist` and `API.txt`; npm also includes its standard package metadata, README, and LICENSE.
53+
**GitHub replaces kit hosting, not dependency management.** The package import remains `codeappscompact`; npm, pnpm, or Yarn can install the verified archive. React, TanStack React Query, and the Power Apps SDK remain peer dependencies and may still require your configured package registry. The skill does not bypass registry, TLS, tenant, or tool-permission restrictions.
6454

65-
## Release and licensing status
55+
## What the kit handles
6656

67-
Licensed under the [MIT License](LICENSE), copyright 2026 Ilya Fainberg.
57+
`RecordScreen` provides a record table, search over loaded records, cursor-based pagination and deduplication, accessible create/edit forms, primitive field validation, and visible read/write errors. Failed writes preserve the form; writes are not automatically retried. Refresh failure after a committed save does not replay the write.
58+
59+
The app supplies a `DataService<R, D>` with `getAll`, `create`, and `update` returning the Power Apps SDK's `IOperationResult<T>`, plus fields, columns, defaults, identity, and draft mappings. A caller-owned `QueryClientProvider` is required. The library injects no styles and creates no query client.
60+
61+
Supported drafts are flat objects with widened `string` and `number` values. There is no delete, relationship editor, upload, nested draft schema, server-side search, or cross-system transaction support. Authentication, SDK setup, connections, permissions, and deployment remain the Code App's responsibility. Inspect real generated connector signatures rather than assuming they match the synthetic example. Unsupported requirements must stay visible, not be silently dropped.
62+
63+
## Reference and manual use
6864

69-
The npm package name is `codeappscompact` (lowercase, as required by npm). Release metadata permits public publication to `https://registry.npmjs.org/` and defaults to the experimental `next` tag rather than `latest`. This configuration does not publish the package by itself.
65+
- [Portable skill](plugins/codeappscompact/skills/codeappscompact/SKILL.md): compact agent workflow.
66+
- [Kit installation and reuse](plugins/codeappscompact/skills/codeappscompact/references/install.md): host-neutral procedure and an npm example.
67+
- [Pinned kit manifest](plugins/codeappscompact/skills/codeappscompact/references/kit.json): release URL, supported installed versions, and SHA-256.
68+
- [API.txt](API.txt): complete public API and behavior contract; also included in the kit.
69+
- [examples/App.tsx](examples/App.tsx): configured screen. [examples/main.tsx](examples/main.tsx) supplies the query provider; [examples/service.ts](examples/service.ts) is explicitly synthetic.
7070

71-
Before publishing, confirm registry connectivity, npm sign-in, and name/version availability; run the repository checks and review `npm pack --dry-run`. An authorized release uses:
71+
The kit archive contains compiled JavaScript, TypeScript declarations, API documentation, synthetic examples, README, and LICENSE. It has no install lifecycle hook. After following the verification procedure, an npm project can install its local archive:
7272

7373
```powershell
74-
npm publish --access public --tag next --registry=https://registry.npmjs.org/
74+
npm install --save-exact --ignore-scripts --no-audit --no-fund ".\vendor\codeappscompact-0.1.1.tgz"
7575
```
7676

77-
Do not describe the npm release as available until its registry metadata has been verified.
77+
Import normally:
78+
79+
```typescript
80+
import { RecordScreen, type DataService } from 'codeappscompact';
81+
```
82+
83+
Do not use `npm install codeappscompact` without the archive path: this project does not publish the kit to the npm registry, and a registry name is not proof of this repository's provenance.
84+
85+
## Evidence and limits
86+
87+
The reusable implementation, rather than the skill's wording, is the token-saving mechanism. The earlier 0.1.0 pilot reported 78.6% fewer model-output tokens and 42.8% fewer total tokens across three paired authoring trials of one synthetic record-management feature. Input documentation was counted. This does not establish savings across all applications, against every existing framework, or for this newly packaged installation workflow. Skill discovery, downloads, and first-time dependency setup have their own costs; no new token benchmark is claimed here.
88+
89+
Private benchmark prompts, usage logs, and trial sources are not included. The synthetic example and tests are not a connected or deployed Power Apps app.
90+
91+
## Develop and run the synthetic example
92+
93+
Use Node.js 22.12 or newer; CI uses Node.js 24. The lockfile pins development dependencies, including React 18 and Power Apps SDK 1.5.0.
94+
95+
```powershell
96+
git clone https://github.com/ilyafainberg/CodeAppsCompact.git
97+
cd CodeAppsCompact
98+
npm ci --ignore-scripts --no-audit --no-fund
99+
npm run typecheck
100+
npm test
101+
npm run build
102+
npm run build:demo
103+
npm run dev
104+
```
105+
106+
Open Vite's printed loopback URL. The example uses in-memory synthetic data, makes no tenant requests, stores no credentials, and resets on reload. Neither build command publishes or deploys anything.
107+
108+
## Distribution maintenance
109+
110+
The root `marketplace.json` and `.claude-plugin/marketplace.json` expose the same catalog. `plugins/codeappscompact/plugin.json` uses the Agent Plugins 1.0 format; its `.claude-plugin/plugin.json` companion supports legacy hosts. The skill uses the standard `SKILL.md` format with local references and no host-specific tool requirements, hooks, or automatic updates.
111+
112+
For a new release, update the package, lockfile, plugin manifests, skill version, installation filenames, and kit manifest together. Run the checks, build, then use `npm pack --ignore-scripts` to produce the kit. Review the archive's files and compute its SHA-256 before updating the pinned kit manifest. Archive the complete skill directory only after that hash is recorded. Publish both archives and `SHA256SUMS` on a new GitHub release tag pointing to the reviewed commit; never replace an existing version's artifacts. Verify anonymous downloads, checksums, marketplace discovery, and installation in a separate consumer before announcing availability.
113+
114+
`"private": true` intentionally blocks npm publishing while allowing local packing and installation. CI checks types, behavior, distribution metadata, library/demo builds, and package contents; it does not publish to npm, deploy Code Apps, or change tenant data.
115+
116+
Licensed under the [MIT License](LICENSE), copyright 2026 Ilya Fainberg.

‎marketplace.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "codeappscompact",
3+
"owner": {
4+
"name": "Ilya Fainberg"
5+
},
6+
"metadata": {
7+
"description": "CodeAppsCompact: a portable agent skill and GitHub-hosted kit for compact Power Platform Code Apps record screens."
8+
},
9+
"plugins": [
10+
{
11+
"name": "codeappscompact",
12+
"source": "./plugins/codeappscompact",
13+
"description": "Reuse the record-screen kit; download the pinned GitHub archive only when missing, then configure existing generated services.",
14+
"version": "0.1.1",
15+
"repository": "https://github.com/ilyafainberg/CodeAppsCompact",
16+
"license": "MIT",
17+
"keywords": ["agent-skills", "power-apps", "code-apps", "power-platform", "react", "typescript"]
18+
}
19+
]
20+
}

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codeappscompact",
3-
"version": "0.1.0",
4-
"description": "Experimental schema-configured record screen for Power Apps generated services",
3+
"version": "0.1.1",
4+
"description": "GitHub-hosted React/TypeScript record-screen kit for Power Platform Code Apps",
55
"license": "MIT",
66
"type": "module",
77
"main": "./dist/index.js",
@@ -14,7 +14,8 @@
1414
},
1515
"files": [
1616
"dist",
17-
"API.txt"
17+
"API.txt",
18+
"examples"
1819
],
1920
"sideEffects": false,
2021
"repository": {
@@ -54,9 +55,5 @@
5455
"vite": "7.2.4",
5556
"vitest": "3.2.4"
5657
},
57-
"publishConfig": {
58-
"access": "public",
59-
"registry": "https://registry.npmjs.org/",
60-
"tag": "next"
61-
}
58+
"private": true
6259
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "codeappscompact",
3+
"version": "0.1.1",
4+
"description": "Build compact Power Platform Code Apps record screens with a reusable kit downloaded from GitHub only when missing.",
5+
"author": {
6+
"name": "Ilya Fainberg"
7+
},
8+
"homepage": "https://github.com/ilyafainberg/CodeAppsCompact#readme",
9+
"repository": "https://github.com/ilyafainberg/CodeAppsCompact",
10+
"license": "MIT",
11+
"keywords": ["agent-skills", "power-apps", "code-apps", "power-platform", "react", "typescript"]
12+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3+
"name": "codeappscompact",
4+
"version": "0.1.1",
5+
"description": "Build compact Power Platform Code Apps record screens with a reusable kit downloaded from GitHub only when missing.",
6+
"author": {
7+
"name": "Ilya Fainberg"
8+
},
9+
"homepage": "https://github.com/ilyafainberg/CodeAppsCompact#readme",
10+
"repository": "https://github.com/ilyafainberg/CodeAppsCompact",
11+
"license": "MIT",
12+
"keywords": ["agent-skills", "power-apps", "code-apps", "power-platform", "react", "typescript"]
13+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Ilya Fainberg
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)