peculiarventures-apdu-viewer-parsers-instructions.ocm.json json Copy{
"ocm": "1",
"id": "peculiarventures-apdu-viewer-parsers-instructions",
"kind": "skill",
"name": "Parsers",
"description": "How to add or modify APDU log parsers",
"publisher": "PeculiarVentures",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"How to add or modify APDU log parsers"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/PeculiarVentures/apdu-viewer",
"path": ".github/instructions/frontend/parsers.instructions.md",
"ref": "4a7ca9d976b9d973f80191c4c759f8c17b07c3b2",
"url": "https://github.com/PeculiarVentures/apdu-viewer/blob/4a7ca9d976b9d973f80191c4c759f8c17b07c3b2/.github/instructions/frontend/parsers.instructions.md",
"key": "PeculiarVentures/apdu-viewer/.github/instructions/frontend/parsers.instructions.md"
},
"applies_to": "src/parsers/**"
},
"instructions": "# Parser Guidelines\n\n## Adding a New Log Parser\n1. Create a new file in `src/parsers/` implementing `TraceParser` interface.\n2. Implement `canParse(input)` returning a confidence score (0-100).\n3. Implement `parse(input)` returning a `ParseResult` with a `NormalizedTrace`.\n4. Register it in `src/parsers/registry.ts`.\n5. Add unit tests in `src/test/parsers/`.\n\n## Conventions\n- Parser and registry modules must be independently testable.\n- All public interfaces must have TypeScript types.",
"cost": {
"context_tokens": 122
}
}