Nano Banana Pro
Agent skill for nano-banana-pro
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
CC Plans Lister is a comprehensive Go CLI application that fetches data from the Clever Cloud API to generate documentation of available addon providers and application instance types. The tool supports multiple output formats including Markdown, plain text, CSV, and PDF.
# Build the application make build # or go build -o bin/cc-plans-lister cmd/cc-plans-lister/main.go # Run the application ./bin/cc-plans-lister --help ./bin/cc-plans-lister --format=markdown --output=services.md # Cross-platform builds make build-all
# Development workflow (format, vet, test, build) make dev # Format code make fmt go fmt ./... # Run tests make test go test ./... # Run tests with coverage make coverage # Check for issues make vet go vet ./... # Install dependencies make deps go mod tidy
# Environment setup export CLEVER_API_TOKEN="your_token_here" # Generate different output formats ./bin/cc-plans-lister --format=markdown --output=services.md ./bin/cc-plans-lister --format=txt --output=services.txt ./bin/cc-plans-lister --format=csv --output=services.csv ./bin/cc-plans-lister --format=pdf --output=services.pdf # Output to stdout ./bin/cc-plans-lister --format=markdown
The application follows a modular architecture with clean separation of concerns:
cmd/cc-plans-lister/ - Main application entry point with CLI handlinginternal/ - Private application packages
api/ - Clever Cloud API client wrapperconfig/ - Configuration management and validationformatters/ - Output format implementations (markdown, txt, csv, pdf)pkg/clevercloud/ - Public types and data structurestest/fixtures/ - Test data and utilitiesCLI Interface (
)cmd/cc-plans-lister/main.go
--format and --output flagsAPI Client (
)internal/api/client.go
go.clever-cloud.dev/client libraryGetAddonProviders() and GetProductInstances()Configuration (
)internal/config/config.go
CLEVER_API_TOKEN environment variableFormatters (
)internal/formatters/
Formatter interfaceMarkdownFormatter, TextFormatter, CSVFormatter, PDFFormatter/v2/products/addonproviders - Addon providers and plans/v2/products/instances - Application types and flavorsgithub.com/spf13/cobra - Command-line interfacegithub.com/signintech/gopdf - PDF document creationgithub.com/stretchr/testify - Test assertions and utilitiesgo.clever-cloud.dev/client - Official Clever Cloud Go clientencoding/csv, text/tabwriter, sort, etc.The application requires authentication via the
CLEVER_API_TOKEN environment variable:
export CLEVER_API_TOKEN="your_api_token_here"
The token is validated at startup and used for OAuth authentication with the Clever Cloud API.
The project includes comprehensive unit tests:
Run tests with
make test or go test ./...
Font Issues with PDF Generation
./fonts/ directoryAPI Rate Limiting
Large Data Sets