본문으로 건너뛰기
cccskills
무료GitHub에 공개

pier-cloud

This skill should be used when the user needs to consume the Pier Cloud (Lighthouse) API for cloud cost management — including JWT authentication, listing contexts, workspaces, workspace groups, and FinOps data views. Trigger whenever there is a need to integrate, automate, or debug calls to the Pier Cloud platform via Python, Node.js, or cURL.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(16)

  • SKILL.md4.3 KB
  • .env.example233 B
  • references/REFERENCE.md20.0 KB
  • references/TROUBLESHOOTING.md2.7 KB
  • scripts/pier_cloud_client.py9.7 KB
  • scripts/pier-cloud-auth.py1.8 KB
  • scripts/pier-cloud-get-all-workspaces.py3.9 KB
  • scripts/pier-cloud-get-view-data.py4.5 KB
  • scripts/pier-cloud-get-view.py2.6 KB
  • scripts/pier-cloud-get-workspace-group.py3.3 KB
  • scripts/pier-cloud-get-workspace.py2.9 KB
  • scripts/pier-cloud-list-contexts.py2.3 KB
  • scripts/pier-cloud-list-views.py2.7 KB
  • scripts/pier-cloud-list-workspace-groups.py4.1 KB
  • scripts/pier-cloud-list-workspaces.py3.7 KB
  • scripts/README.md5.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Pier Cloud API

Prerequisites

Credentials

Locate the .env file in the skill directory with the following variables:

PIERCLOUD_CLIENT_ID=your_client_id
PIERCLOUD_CLIENT_SECRET=your_client_secret
PIERCLOUD_TENANCY_ID=your_tenancy_id

If the .env file does not exist, inform the user that credentials must be obtained from the Pier Cloud platform before proceeding. Do not proceed without the .env file.

Note: PIERCLOUD_TENANCY_ID is equivalent to the former PIERCLOUD_BUSINESS_ID. Scripts accept both as fallback.

Python Dependencies

pip install requests python-dotenv

Basic Configuration

The API uses JWT authentication. Required flow:

  1. Authenticate via POST /auth with client_id and client_secret to obtain a JWT token
  2. Include the token in all requests: Authorization: Bearer {token}
  3. Renew the token upon expiration (default validity: 1 hour)

Base URL: https://api.piercloud.io

Workspace groups live at /lighthouse/tenancies/{tenancy_id}/workspaces-groups (note the plural workspaces).

Verify the connection by running:

python scripts/pier-cloud-auth.py

Available Scripts

Ready-to-use scripts in scripts/. See scripts/README.md for detailed instructions.

ScriptDescription
pier-cloud-auth.pyAuthenticate and obtain JWT token
pier-cloud-list-contexts.pyList available contexts
pier-cloud-list-workspaces.pyList workspaces with pagination
pier-cloud-get-workspace.pyGet specific workspace details
pier-cloud-get-all-workspaces.pyGet all workspaces (automatic pagination)
pier-cloud-list-views.pyList views for a workspace
pier-cloud-get-view.pyGet specific view information
pier-cloud-get-view-data.pyGet view data with filters
pier-cloud-list-workspace-groups.pyList workspace groups (/workspaces-groups)
pier-cloud-get-workspace-group.pyGet workspace group by id
pier_cloud_client.pyRobust client with CLI and reusable library

Workflows

Follow the detailed workflows with request and response examples in references/REFERENCE.md:

  • Workflow 1 — Authentication and Token Retrieval
  • Workflow 2 — List Contexts
  • Workflow 3 — List Workspaces
  • Workflow 4 — Get Workspace Details
  • Workflow 5 — Get All Workspaces (Automatic Pagination)
  • Workflow 6 — Robust Client with Retry and Token Renewal
  • Workflow 9 — List Workspace Views
  • Workflow 10 — Get View Information
  • Workflow 11 — Get View Data with Filters
  • Workflow 12 — List Workspace Groups (/workspaces-groups)
  • Workflow 13 — Get Workspace Group Details

For endpoint reference, parameters, response structures, and cURL examples, see references/REFERENCE.md.

For error diagnosis (401, 403, 404, timeout, rate limiting), see references/TROUBLESHOOTING.md.

Additional Resources

Quality Checklist

  • .env file present with PIERCLOUD_CLIENT_ID, PIERCLOUD_CLIENT_SECRET, and PIERCLOUD_TENANCY_ID
  • Python dependencies installed (requests, python-dotenv)
  • Authentication successful (JWT token obtained without errors)
  • Correct endpoint being used (/lighthouse/tenancies/{tenancy_id}/...; groups → workspaces-groups)
  • Token being renewed before expiration in long sessions
  • Workspace/view IDs confirmed via listing before using directly
  • Errors handled per references/TROUBLESHOOTING.md

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Audit, score, and compare repositories containing portable Agent Plugins against the official Agent Plugins specification. Use when asked to review a plugin repo, check plugin.json or mcp.json conformance, assess bundled skills and MCP servers, produce an evidence-cited 0–100 plugin scorecard, identify release blockers, or compare two agent plugins side by side.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement A2A Agent Card

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement ACP Discovery Document

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement Agent Skills Discovery Index

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement AI Bot Rules in robots.txt

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement API Catalog

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

fabricioctelles의 스킬 모두 보기

이 스킬의 문제 신고