skills/astrabit-cpt/repo-metadata/SKILL.md
This skill should be used when the user asks to "generate repository metadata", "create catalog-info.yaml", "add repo metadata", "document repository structure", or mentions generating structured metadata for service catalog or architecture documentation.
npx skillsauth add aiskillstore/marketplace repo-metadataInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate structured catalog-info.yaml metadata for repositories using industry-standard conventions (based on Backstage catalog format). This metadata enables cross-repository architecture analysis and service catalog functionality.
Create and maintain catalog-info.yaml files that describe a repository's role in the broader architecture. This metadata feeds into architectural views, dependency graphs, and service groupings across the entire organization.
Trigger this skill when:
The catalog-info.yaml file follows Backstage conventions with Astrabit-specific extensions:
apiVersion: astrabit.io/v1
kind: Component
metadata:
name: service-name # Required: Unique identifier
description: Brief description
tags:
- backend
- user-management
spec:
# Service Classification
type: service # Required: service, gateway, worker, library, frontend, database
category: backend # Broader category
domain: trading # Business domain
owner: platform-team # Team responsible
# Dependencies (Upstream)
dependsOn:
- component: auth-service
type: service
- component: user-db
type: database
# APIs Provided
providesApis:
- name: User API
type: REST
definition: ./openapi.yaml
# APIs Consumed
consumesApis:
- name: Auth API
providedBy: auth-service
# Events Produced
eventProducers:
- name: user-events
type: kafka
topic: user.created
schema: avro
# Events Consumed
eventConsumers:
- name: order-events
type: kafka
topic: order.placed
group: user-service-group
# HTTP Routes (for gateways/services)
routes:
- path: /api/users/*
methods: [GET, POST, PUT, DELETE]
handler: this
- path: /api/auth/*
methods: [POST]
forwardsTo: auth-service
# Infrastructure
runtime: nodejs # nodejs, python, go, java, etc.
framework: nestjs # nestjs, fastapi, spring, etc.
Gather information about the repository:
Use existing analysis scripts:
python skills/repo-docs/scripts/analyze-repo-structure.py /path/to/repo
python skills/repo-docs/scripts/find-integration-points.py /path/to/repo
Read existing documentation:
INTEGRATIONS.md - contains upstream/downstream relationshipsARCHITECTURE.md - contains service role and dependenciesREADME.md - contains basic description and tech stackDetect from code:
Based on analysis, generate catalog-info.yaml with detected values:
| Field | Detection Method |
|-------|------------------|
| name | Repo name or package.json name field |
| description | README title/description or generated from code |
| type | Inferred from code patterns (gateway has routes, worker has consumers only) |
| runtime | From package files (package.json, pyproject.toml, go.mod) |
| framework | From dependencies (nestjs, fastapi, spring-boot, etc.) |
| dependsOn | From integration point scanning |
| eventProducers | From kafka.producer or similar patterns |
| eventConsumers | From @KafkaListener, @EventListener, or similar patterns |
| routes | From @Controller, @GetMapping, router definitions |
Present the generated metadata to the user in a table format:
Generated catalog-info.yaml:
| Field | Value | Source |
|-------|-------|--------|
| name | user-service | repo name |
| type | service | detected: has routes and consumers |
| runtime | nodejs | package.json |
| framework | nestjs | dependencies |
| domain | unknown | ❌ needs input |
| owner | unknown | ❌ needs input |
| dependsOn | auth-service, user-db | integration scan |
Prompt user to review and fill in missing fields (marked with ❌).
Write catalog-info.yaml to the repository root.
Offer to update related docs to reference the new metadata file:
catalog-info.yaml in README.mdINTEGRATIONS.md to be consistent with metadata| Type | Indicators |
|------|------------|
| gateway | Has routes with forwardsTo, handles external requests, minimal business logic |
| service | Has both providesApis and consumesApis, business logic |
| worker | Only eventConsumers, no HTTP routes, background processing |
| library | No APIs consumed, only provides, shared utilities |
| frontend | type: frontend in package.json, has build artifacts |
| database | Contains migrations, schemas, no application code |
Use scripts/generate-metadata.py to automate metadata generation:
# Generate from current directory
python skills/repo-metadata/scripts/generate-metadata.py
# Generate from specific repo
python skills/repo-metadata/scripts/generate-metadata.py /path/to/repo
# Output as JSON for inspection
python skills/repo-metadata/scripts/generate-metadata.py --format json
The script:
catalog-info.yaml contentreferences/schema.md - Complete catalog-info.yaml schema referencereferences/detection-patterns.md - Patterns for detecting service characteristicsexamples/catalog-info-template.yaml - Full template with all fieldsexamples/catalog-info-gateway.yaml - Example gateway serviceexamples/catalog-info-worker.yaml - Example worker serviceexamples/catalog-info-library.yaml - Example shared libraryBefore finalizing metadata, verify:
name is unique across the organizationtype correctly classifies the servicedomain and owner are filled (not auto-detected)dependsOn lists all upstream dependencieseventProducers and eventConsumers are completecatalog-info.yaml)development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.