coder-xieshijie/dev-skills / skills/repo-readiness
repo-readiness
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.8 KB |
| agents/openai.yaml | config | 171 B |
| assets/feature-map.template.md | markdown | 1.5 KB |
| references/adapters/README.md | markdown | 1.7 KB |
| references/adapters/_page.mjs | script | 3.1 KB |
| references/adapters/_process.mjs | script | 8.3 KB |
| references/adapters/cli.mjs | script | 13.4 KB |
| references/adapters/http-service.mjs | script | 11.1 KB |
| references/adapters/test/cli.test.mjs | script | 9.3 KB |
| references/adapters/test/contract.test.mjs | script | 2.2 KB |
| references/adapters/test/fixture/toy-app.mjs | script | 2.3 KB |
| references/adapters/test/fixture/toy-cli.mjs | script | 2.6 KB |
| references/adapters/test/http-service.test.mjs | script | 6.2 KB |
| references/adapters/test/page.test.mjs | script | 6.7 KB |
| references/control-contract.md | markdown | 14.6 KB |
| references/counterexamples.md | markdown | 2.7 KB |
| references/lessons.md | markdown | 7.5 KB |
| references/levels.md | markdown | 4.0 KB |
| references/map-audit.md | markdown | 2.7 KB |
| references/route.md | markdown | 4.8 KB |
references/adapters/test/contract.test.mjs
View on GitHub// The kit's adapter contract (assets/verify-skill/scripts/contract.mjs) on each example adapter here,
// configured the way a repository would configure it, with the toy products in fixture/.
import assert from 'node:assert/strict';
import path from 'node:path';
import test from 'node:test';
import { fileURLToPath } from 'node:url';
import { checkContract } from '../../../assets/verify-skill/scripts/contract.mjs';
import { makeRepo } from '../../../assets/verify-skill/scripts/test/helpers.mjs';
const here = path.dirname(fileURLToPath(import.meta.url));
const toyApp = path.join(here, 'fixture', 'toy-app.mjs');
const toyCli = path.join(here, 'fixture', 'toy-cli.mjs');
const ENTRIES = {
http: {
name: 'HTTP',
adapter: path.join(here, '..', 'http-service.mjs'),
options: { command: ['node', toyApp] },
contract: { read: ['read', '/notes'], doctorChecks: ["health proves it is this run's instance"] },
},
'http-token': {
name: 'HTTP with a token',
adapter: path.join(here, '..', 'http-service.mjs'),
options: {
command: ['node', toyApp, '--port', '{port}', '--data', '{dataDir}', '--token', '{token}'],
headers: { authorization: 'Bearer {token}' },
identity: { field: 'pid', equals: '{pid}' },
},
contract: { read: ['read', '/notes'], doctorChecks: ["a request without this run's token is refused"] },
},
cli: {
name: 'CLI',
adapter: path.join(here, '..', 'cli.mjs'),
options: {
command: ['node', toyCli],
pidRecords: [{ dir: '{home}/.toy-cli/workers', fields: ['worker.pid'] }],
keep: ['home/.toy-cli'],
probe: { args: ['list'], code: 0, stdout: '"notes"' },
},
contract: { read: ['query', ['list']], leaves: ['cli', ['serve']] },
},
};
for (const slug of Object.keys(ENTRIES))
test(`the ${slug} example keeps the adapter contract`, { timeout: 120_000 }, async (t) => {
const repo = makeRepo({ config: { entries: { [slug]: ENTRIES[slug] } } });
const result = await checkContract({ config: repo.config, slug });
for (const check of result.checks.filter((item) => item.skipped)) t.diagnostic(`not exercised: ${check.name} (${check.skipped})`);
assert.deepEqual(result.checks.filter((item) => !item.skipped && !item.ok), []);
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |