概要
Prabogoは、対話型コマンドインターフェースとAI支援用の組み込み指示を提供し、プロジェクト開発を簡素化するGoフレームワークです。
AI・機械学習計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルPrabogo
![]()
Prabogo is a Go framework designed to simplify project development by providing an interactive command interface and built-in instructions for AI assistance. This framework streamlines common engineering tasks, making it easier for software engineers to scaffold, generate, and manage project components efficiently. With Prabogo, developers benefit from automation and intelligent guidance, accelerating the software development process.
Prabogo now uses Spec Kit to bring spec-driven development into the project, making it easier to guide your AI agent with structured commands during development.
Design Docs
Spec-Driven Development
Learn how to use Spec Kit commands to systematically develop features with your AI agent.
Requirement
- go version >= go1.26.0
Spec Kit
This repository is initialized with Spec Kit for spec-driven development. With Spec Kit, Prabogo follows a spec-driven development workflow so developers can direct AI agents more clearly through structured planning and implementation commands.
GitHub Copilot is the default integration configured in this repository today, but Spec Kit also supports other AI coding agents. If you use a different agent, you can switch the integration to match your setup.
Install Specify CLI
Spec Kit requires Python 3.11+ and assumes uv is already installed.
uv tool install specify-cli --from git+https://github.com/github/[email protected]
specify version
Initialize Spec Kit In This Repository
If you need to reinstall or refresh the Spec Kit files in this project, run:
specify init . --integration copilot
This installs the Spec Kit project files under .specify/ and the GitHub Copilot integration files under .github/agents/, .github/prompts/, and .github/copilot-instructions.md.
Use Another AI Agent
To see which integrations are available in your installed Spec Kit version, run:
specify integration list
If you use a different AI agent, reinitialize Spec Kit with the integration that matches your tool. For example:
specify init . --integration claude
Or:
specify init . --integration gemini
When you change the integration, Spec Kit rewrites the agent-specific command and instruction files for that tool. The core workflow stays the same: define principles, write specs, make a plan, generate tasks, and implement with structured agent commands.
Main Spec Kit Commands
After initialization, you can use the generated Spec Kit commands in your configured AI agent:
/speckit.constitution
/speckit.specify
/speckit.plan
/speckit.tasks
/speckit.implement
Entire.io Integration
Entire.io captures context from AI agent-assisted code changes. For installation and detailed usage, see the Entire CLI installation guide.
Why Prabogo Recommends Entire.io
Prabogo uses Spec Kit for spec-driven development with AI agents. When combined with Entire.io, you get:
- Full development context: Capture prompts, decisions, and iterations alongside your code
- Better collaboration: Future team members understand not just what changed, but why and how it was developed
- Session continuity: Resume interrupted agent sessions instead of starting over
- Clean history: Checkpoint data lives on a separate Git branch, keeping your main history clean
Quick start:
entire enable
When working with AI agents, Entire automatically captures your session context and links it to commits without cluttering your Git history.
View Checkpoints With Entire
To see the available captured sessions and checkpoints, run:
entire sessions list
To open the checkpoint explanation view for a specific checkpoint, use entire explain -c <checkpoint-id>:
entire explain -c <checkpoint-id>
Replace <checkpoint-id> with the checkpoint identifier shown in entire sessions list. When you are finished viewing the explanation, press Ctrl+Z to close it and return to your shell.
Before running the app, copy the example environment file:
cp .env.example .env
cp .env.docker.example .env.docker
Running Services with Docker Compose
Prabogo groups its external dependencies into separate Docker Compose files so you can start only what you need. Before using any of them, make sure your environment file is ready:
cp .env.docker.example .env.docker
Then edit .env.docker and replace the REPLACE_WITH_* values with secure
ones (e.g. openssl rand -hex 32 for secret keys).
Note: Use
docker compose(V2) ordocker-compose(V1). Both are shown below asdocker-compose; adjust for your installed version.
1. Core External Services (required)
Starts the dependencies the app talks to at runtime: PostgreSQL (database), Redis (cache), and RabbitMQ (message queue). It also starts RedisInsight, a web UI for browsing Redis.
| Service | Port(s) | Default credentials |
|---|---|---|
| PostgreSQL | 5432 |
prabogo / (from env) |
| Redis | 6379 |
password from env |
| RedisInsight | 5540 |
— |
| RabbitMQ | 5672 (AMQP), 15672 (UI) |
prabogo / (from env) |
docker-compose --env-file .env.docker up -d
Stop all core services:
docker-compose --env-file .env.docker down
2. Authentik (authentication)
Starts Authentik (identity provider) with its own dedicated PostgreSQL
(5433) and Redis (6380) containers, plus the Authentik server and
worker.
| Service | Port(s) |
|---|---|
| PostgreSQL | 5433 |
| Redis | 6380 |
| Authentik UI | 9080 (HTTP), 9443 (HTTPS) |
docker-compose -f docker-compose.authentik.yml --env-file .env.docker up -d
Stop Authentik services:
docker-compose -f docker-compose.authentik.yml --env-file .env.docker down
3. Temporal (workflow engine)
Starts Temporal for workflow orchestration, along with its PostgreSQL, Elasticsearch, Admin Tools, and the Web UI.
| Service | Port(s) |
|---|---|
| Temporal | 7233 (gRPC) |
| Web UI | 8080 |
docker-compose -f docker-compose.temporal.yml --env-file .env.docker up -d
The Temporal Web UI will be available at http://localhost:8080 and the server
on port 7233.
Stop Temporal services:
docker-compose -f docker-compose.temporal.yml --env-file .env.docker down
4. Observability (OpenTelemetry + Grafana LGTM)
Starts a full Grafana LGTM telemetry stack: Loki (logs), Grafana (visualization), Tempo (traces), and Mimir (metrics), plus an OpenTelemetry Collector that ingests OTLP data from the application and routes each signal to the right backend.
| Service | Ports |
|---|---|
| OpenTelemetry Collector | 4317 (OTLP gRPC), 4318 (OTLP HTTP) |
| Loki | 3100 (HTTP) |
| Tempo | 3200 (HTTP), 3201 (gRPC) |
| Mimir | 9009 (Prometheus API / remote write) |
| Grafana | 3000 (UI) |
docker-compose -f docker-compose.grafana.yml --env-file .env.docker up -d
Grafana is available at http://localhost:3000 (default admin / changeme).
The Loki, Tempo and Mimir datasources are pre-provisioned, and the bundled
dashboards under utils/observability/grafana/provisioning/ are auto-loaded, so logs,
metrics and traces appear immediately.
Enable telemetry in the application
Set the following environment variables (see .env.example). The app points
its OTLP endpoints directly at the LGTM collector:
OTEL_TRACE_ENABLED=true
OTEL_METRIC_ENABLED=true
OTEL_LOG_ENABLED=true
OTEL_TRACE_ENDPOINT=127.0.0.1:4317
OTEL_METRIC_ENDPOINT=127.0.0.1:4317
OTEL_LOG_ENDPOINT=127.0.0.1:4317
What is collected
- Logs: Every logrus entry is masked by
MaskingHookbefore it is written, so both the stdout formatter and the OTLP export (Loki) see the same redacted values. Nested fields inside maps, slices and structs are masked recursively; the default key list lives inutils/masking(bearer_key,password,token,authorization,secret,api_key, …) and resolves to***MASKED***. - Metrics: HTTP request count and latency, tagged with method, route, HTTP
status code, and an
errorboolean indicating whether the status was >= 400. - Traces: Every HTTP request starts a server span, and each domain operation
(
client.upsert,client.find_by_filter, etc.) is recorded as a child span so you can trace the full flow through the domain.
Stop Observability services:
docker-compose -f docker-compose.grafana.yml --env-file .env.docker down
Running everything at once
You can start multiple stacks together by passing several -f flags. For
example, core services plus observability:
docker-compose -f docker-compose.yml -f docker-compose.grafana.yml --env-file .env.docker up -d
To stop everything, run the corresponding down command with the same -f
flags.
Useful Docker Compose commands
| Command | Description |
|---|---|
docker-compose ps |
List running services for the active stack |
docker-compose logs -f <service> |
Follow logs for a single service |
docker-compose restart <service> |
Restart a single service |
docker-compose down |
Stop and remove containers and networks |
docker-compose down -v |
Also remove named volumes (deletes stored data) |
Run App in Development Mode
To run the application directly (without Makefile or Docker), ensure all required environment variables are set. You can use a .env file or export them manually.
Start the app with:
go run cmd/main.go <option>
Replace <option> with any command-line arguments your application supports. For example:
go run cmd/main.go http
Make sure external dependencies (such as PostgreSQL, RabbitMQ, and Redis) are running, either via Docker Compose or another method.
CLI Commands
The project uses prabogo-cli for code generation and development tasks. Install it with:
go install github.com/prabogo/prabogo-cli@latest
Interactive Command Runner

You can use the interactive target selector to choose and run targets:
prabogo-cli run
This will display an interactive menu to select a target and will prompt for any required parameters. The selector works in two modes:
- If
fzfis installed: Uses a fuzzy-search interactive selector (recommended for best experience) - If
fzfis not available: Falls back to a basic numbered menu selection
To install fzf (optional):
- macOS:
brew install fzf - Linux:
apt install fzf(Ubuntu/Debian) ordnf install fzf(Fedora) - Windows: With chocolatey:
choco install fzfor with WSL, follow Linux instructions
Common CLI Targets
Code Generation Targets
model: Creates a model/entity with necessary structuresprabogo-cli model namemigration-postgres: Creates a PostgreSQL migration fileprabogo-cli migration-postgres nameinbound-http-fiber: Creates HTTP handlers using Fiber frameworkprabogo-cli inbound-http-fiber nameinbound-message-rabbitmq: Creates RabbitMQ message consumersprabogo-cli inbound-message-rabbitmq nameinbound-command: Creates command line interface handlersprabogo-cli inbound-command nameinbound-workflow-temporal: Creates Temporal workflow workerprabogo-cli inbound-workflow-temporal nameoutbound-database-postgres: Creates PostgreSQL database adapterprabogo-cli outbound-database-postgres nameoutbound-http: Creates HTTP adapterprabogo-cli outbound-http nameoutbound-message-rabbitmq: Creates RabbitMQ message publisher adapterprabogo-cli outbound-message-rabbitmq nameoutbound-cache-redis: Creates Redis cache adapterprabogo-cli outbound-cache-redis nameoutbound-workflow-temporal: Creates Temporal workflow starter adapterprabogo-cli outbound-workflow-temporal namegenerate-mocks: Generates mock implementations from all go:generate directives in registry filesprabogo-cli generate-mocks
Runtime Targets
build: Builds the Docker image for the applicationprabogo-cli build # Force rebuild regardless of existing image: prabogo-cli build --buildhttp: Runs the application in HTTP server mode inside Dockerprabogo-cli http # Force rebuild before running: prabogo-cli http --buildmessage: Runs the application in message consumer mode inside Dockerprabogo-cli message upsert_client # Force rebuild before running: prabogo-cli message upsert_client --buildcommand: Executes a specific command in the applicationprabogo-cli command publish_upsert_client name # Force rebuild before running: prabogo-cli command publish_upsert_client name --buildworkflow: Runs the application in workflow worker mode inside Dockerprabogo-cli workflow upsert_client # Force rebuild before running: prabogo-cli workflow upsert_client --build
Running test suite
Unit tests
go test -cover ./internal/domain/...
To generate coverage report:
go test -coverprofile=coverage.profile -cover ./internal/domain/...
go tool cover -html coverage.profile -o coverage.html
Coverage report will be available at coverage.html
To check intermittent test failure due to mock. when in doubt, use -t 1000
retry -d 0 -t 100 -u fail -- go test -coverprofile=coverage.profile -cover ./internal/domain/... -count=1
Integration tests
Integration tests are tagged with integration and require Docker to spin up external dependencies (such as PostgreSQL via Testcontainers). Since they are excluded by default, you must pass the build tag when running them:
go test -tags integration ./tests/integration/...
To run all tests (unit + integration) together:
go test -tags integration ./...
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Moch Dieqy Dzulqaidar
関連プロジェクトを探す
読み込み中…