원클릭으로
analyze-transaction
Parse decoded V2 transaction CBORs from Atlas API and create/update documentation YAML files
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Parse decoded V2 transaction CBORs from Atlas API and create/update documentation YAML files
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Decide how to document complementary tools and support repos (CLI, SDK, templates, bots, dev/agent repos) so they drive adoption and contributions without competing with the products. Use when adding or reviewing docs for anything that is not itself a sold product, or when deciding where a tool belongs in the IA.
Track guide writing progress, manage blockers, and coordinate the publish pipeline for Andamio documentation guides.
Orchestrate V2 transaction documentation by tracking all endpoints and delegating analysis to /analyze-transaction
Orchestrate V2 transaction MDX documentation coverage and quality tracking
Review individual V2 transaction MDX documentation for coverage and accuracy
| name | analyze-transaction |
| description | Parse decoded V2 transaction CBORs from Atlas API and create/update documentation YAML files |
Important: We are currently migrating to a new instance of the Andamio V2 Preprod network. All addresses in the address-registry.json will be updated as we analyze each transaction. When processing a new transaction CBOR, the addresses in the CBOR are canonical and should replace any existing registry entries.
Key Resources:
public/yaml/transactions/v2/SESSION-NOTES.md - Validator mappings, patterns, and contextpublic/yaml/transactions/v2/address-registry.json - Discovered validators, policies, observerspublic/yaml/transactions/v2/endpoint-registry.json - API endpoint schemaspublic/yaml/transactions/v2/cost-registry.json - Transaction costs and fees.claude/skills/analyze-transaction/hex-patterns.md - Hex encoding patterns for token namespublic/yaml/transactions/v2/ as templates
Read the decoded transaction supplied by the user (JSON format from Atlas API)
Read SESSION-NOTES.md to understand existing validator mappings and patterns
Read address-registry.json to identify known validators/policies by address
Identify transaction components:
Map addresses to validators using address-registry.json
Determine file path: public/yaml/transactions/v2/{system}/{role}/{tx-name}.yaml
Create or update the YAML file with these sections:
name, id, metadata (role, system, description, api_endpoint)costs (txFee, protocolFee, minUtxo, executionUnits)inputs (validator, address, redeemer, datum reference)reference_inputs (UTxO references for scripts)outputs (validator, address, value, datum)mints (policy, tokens, redeemer)withdraws (observer, redeemer) if applicableregistry (local summary of validators/policies used)Update registries if new validators/policies discovered:
inferredFrom trackingAfter completing the YAML documentation, verify and update the monorepo transaction definition:
Locate the definition file:
~/projects/01-projects/andamio-platform/andamio-platform-monorepo/packages/andamio-transactions/src/definitions/v2/{system}/{role}/{tx-name}.tsVerify alignment between YAML and TypeScript:
txParams schema matches the API request body from YAMLendpoint matches metadata.api_endpoint from YAMLestimatedCost aligns with costs section from YAMLdocs.protocolDocs points to the correct MDX documentation pathDo NOT modify:
onSubmit and onConfirmation side effects (separate concern)ui section (unless specifically requested)Update index.ts exports if creating a new definition file
If the transaction includes auxiliary_data.metadata, document it:
CIP-25 NFT Metadata (label 721):
metadata section to the YAML:metadata_721:
policy: "{policy-name}"
asset: "{token-name}"
fields:
name: "{NFT name}"
description: "{description}"
image: "{IPFS URI}"
# ... other fields
Other metadata labels:
Update hex-patterns.md if new token naming patterns are discovered in metadata
When you find ambiguities, ask about:
# V2 Transaction: {Transaction Name}
# Source: Decoded from CBOR transaction
name: {TransactionName}V2
id: {system}.{role}.{action}
metadata:
role: "{role}"
system: "{system}"
description: "{What the transaction does}"
api_endpoint: "/v2/tx/{path}"
costs:
txFee: {lovelace} # Network fee
protocolFee: {lovelace} # Fee to treasury (if any)
minUtxo:
{output_type}: {lovelace}
executionUnits:
spend: { mem: X, steps: Y }
mint: { mem: X, steps: Y }
inputs:
- id: {unique_id}
type: script | wallet
validator: {validator-name} # from address-registry
address: "{bech32_address}"
redeemer:
action: "{ActionName}"
data: "{constructor: N, fields: [...]}"
description: "{What this input provides}"
reference_inputs:
- id: {unique_id}
utxo: "{txHash}#{index}"
description: "{What script this holds}"
outputs:
- id: {unique_id}
type: script | wallet
validator: {validator-name}
address: "{bech32_address}"
value:
- "{amount} lovelace"
- "1 {policy-name}.{token-name}"
datum:
constructor: N
fields:
- field_name: "description or value"
mints:
- id: {unique_id}
policy: {policy-name}
policyId: "{56-char hex}"
redeemer:
data: "{redeemer_value}"
tokens:
- quantity: 1
name: "{token_name}"
description: "{What this token represents}"
withdraws:
- id: {unique_id}
validator: {observer-name}
stakeAddress: "{stake_address}"
redeemer:
data: "{redeemer_value}"
amount: 0
registry:
{validator-name}:
address: "{address}"
{policy-name}:
policyId: "{policyId}"
## Full Example
See .claude/skills/analyze-transaction/example-tx.md for a complete worked example showing:
Input: User provides decoded CBOR JSON from Atlas API
Outputs (all required):
public/yaml/transactions/v2/{system}/{role}/{tx-name}.yaml~/projects/01-projects/andamio-platform/andamio-platform-monorepo/packages/andamio-transactions/src/definitions/v2/{system}/{role}/{tx-name}.tsinferredFrom to track which transactions revealed each validatorhex-patterns.md for encoding patterns; update it when new patterns are discoveredpublic/yaml/transactions/v2/{system}/{role}/{tx-name}.yaml~/projects/01-projects/andamio-platform/andamio-platform-monorepo/packages/andamio-transactions/src/definitions/v2/{system}/{role}/{tx-name}.tscontent/docs/protocol/v2/transactions/{system}/{role}/{tx-name}.mdx| ID | YAML Path | Description |
|---|---|---|
| global.general.access-token.mint | global/general/access-token/mint.yaml | Entry point - mint access tokens |
| course.admin.create | course/admin/create.yaml | Create a new course |
| course.admin.teachers-update | course/admin/teachers-update.yaml | Update course teachers |
| course.teacher.modules-manage | course/teacher/modules-manage.yaml | Mint/update/burn modules |
| course.teacher.assignments-assess | course/teacher/assignments-assess.yaml | Assess student submissions |
| course.student.assignment.commit | course/student/assignment/commit.yaml | Student enrolls and commits to assignment |
| course.student.assignment-update | course/student/assignment-update.yaml | Student updates submission |
| course.student.credential-claim | course/student/credential-claim.yaml | Claim credential (burn) |
Note: File paths match API URL structure. For /v2/tx/global/general/access-token/mint, the YAML is at global/general/access-token/mint.yaml.