hariharapanigrahy/layerkit / skills/layerkit-align-client-style
layerkit-align-client-style
VerifiedAnalyze existing client package patterns from source evidence; write style notes before source edits.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.3 KB |
SKILL.md
View on GitHub---
name: layerkit-align-client-style
description: Analyze existing client package patterns from source evidence; write style notes before source edits.
---
# layerkit-align-client-style
Before source edits, match the **customer's** package layout, DI, HTTP client, and test stack. Avoid orphan trees.
## Protocol
1. Scan customer repo (read-only) for existing integration clients:
- Java/TS/Python/etc.: package roots, DI/framework style, HTTP client, test stack, naming, error handling
- existing vendor clients, mappers, adapters, SDK wrappers, fetch/axios/WebClient/HttpClient usage
- multi-vendor packages: sibling vendor adapters, shared registry/router, and the sibling test pattern a new vendor should clone
2. **Deny-paths**: same as discover (no `.env`, secrets, keys, pem).
3. Build a **style profile** markdown:
```text
# client-style-profile
- language: java | typescript | python | other
- basePackageOrModule: com.example.integrations | src/integrations
- moduleLayout: single-module | multi-module path
- di: spring | guice | plain ctor
- httpClient: OkHttp | WebClient | java.net.http
- json: jackson | gson
- logging: slf4j | ...
- test: junit5 + (wiremock|mockwebserver|mockito)
- naming: *Client / *Adapter / *Mapper
- errorHandling: checked | runtime + mapping notes
- multiVendor: yes|no; siblingReference: file://…; registry: file://…; newVendorFollows: <path pattern>
- examples: file://paths to 2–3 reference classes (prefer sibling vendor adapters when present)
```
4. Write profile to memory (and optional file under projectDir).
Do this by reading representative source files directly. Deterministic rails may list files, but they must not infer the style profile for you.
Optional research note:
```bash
layerkit memory append --type research --title "client style profile" --vendor general --body-file ./client-style-profile.md
```
5. Next: source-edit skill edits production entrypoints directly using this profile as evidence.
## Forbidden
- Inventing a parallel package tree when an integration module already exists
- Reading secrets or copying credentials into the profile
- Generating production code in this skill (analysis only)
## Success criteria
- [ ] Profile lists package, DI, HTTP, test stack with file:// evidence
- [ ] Memory entry present
- [ ] Source-edit agent can name concrete extension points from the profile
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 |