SkillsReviewed · fabricioctelles

pier-cloud API skill

pier-cloud is an assistant skill for developers and cloud cost teams using Pier Cloud, but it requires platform credentials and has defects that affect automated exports. It combines API instructions with Python scripts for authentication, workspace discovery and retrieving saved cost-data views.

Researched 16 Nov 2026

In short.

pier-cloud is an assistant skill for developers and cloud cost teams integrating with Pier Cloud, but its credentials requirement and automation defects need attention before unattended use. It provides tenant-specific API references, eleven Python scripts, workspace pagination, filtered view-data retrieval and a reusable client with token renewal. Source inspection identifies incomplete context pagination, retry failures that can return no result, and a JSON export defect in the reusable CLI. No code or API calls were executed; live compatibility, performance and service pricing remain unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete skills/pier-cloud folder at revision c491efea06e200e847c416effb87e566d6face3b: SKILL.md, .env.example, both reference documents, scripts/README.md and all eleven Python scripts, together with the repository-root LICENSE. Other repository folders, external documentation contents, service internals and later revisions are outside scope. No code was executed and no live API behavior, benchmarks or operating costs were verified. The distributable SKILL.md is the unchanged entry file; its documented functionality also depends on the companion folder contents.

The overview

Identity

pier-cloud is the Pier Cloud API skill in fabricioctelles/skills, attributed to ft.ia.br. Its entry file describes assistant guidance for integrating, automating and debugging the Pier Cloud Lighthouse API. The resource lives at [https://github.com/fabricioctelles/skills/tree/main/skills/pier-cloud].

The folder combines SKILL.md, an environment-variable template, API and troubleshooting references, a scripts guide and eleven Python files. The entry file depends on these companion files for its documented workflows.

Assessment

This is a useful starting point for extracting existing Pier Cloud information into developer tools or reporting jobs. Its value comes from concrete routes, credential names, pagination code and export examples specific to the service.

The reusable client's description as robust needs qualification. It includes renewal and retry logic, but repeated authentication or rate-limit responses can exhaust its attempts without a usable result. Its all-workspaces JSON export also contains a Python variable-scoping defect. These are source-based findings, not observed execution results.

Users

The clearest audience is Python developers supporting FinOps teams, meaning teams that track and manage cloud spending. Existing Pier Cloud users can use the material to discover workspaces, inspect groups and retrieve data from saved views.

Beginners need familiarity with a terminal, environment variables and platform access permissions. Experienced developers can reuse the client or request examples. Although the description mentions Node.js, the supplied implementations are Python; JavaScript users receive protocol guidance and cURL examples rather than a shipped JavaScript client.

Capabilities

The scripts cover authentication, context listing, paginated workspace listing, individual workspace details, workspace-group listing and group details. Automatic traversal of workspace pages is implemented, with JSON and CSV output in the standalone inventory script.

Separate view scripts list a workspace's views, retrieve view metadata and request view data with date ranges and JSON filters. The view-data script can save JSON and prints up to five returned records to the terminal.

The reusable client exposes context, workspace and workspace-group operations. It has no dedicated view methods or view CLI actions; those operations use the separate scripts or custom requests.

Using it

Requirements

The Python scripts require Python 3, requests, python-dotenv and network access to [https://api.piercloud.io]. No minimum supported Python release or pinned dependency versions are supplied.

Access requires a registered Pier Cloud HTTP client, its client ID and secret, and the appropriate tenancy ID and resource permissions. Configuration uses PIERCLOUD_CLIENT_ID, PIERCLOUD_CLIENT_SECRET and PIERCLOUD_TENANCY_ID. The documentation asks for a .env file; the implementation loads environment variables through load_dotenv().

PIERCLOUD_BUSINESS_ID is supported as a legacy fallback only when PIERCLOUD_TENANCY_ID is absent. A present but empty tenancy variable blocks that fallback. Assistant-specific installation paths and compatibility guarantees are not supplied.

Mechanism

Authentication sends the client ID and secret to POST /auth and expects a 201 response containing a JWT access token. Subsequent requests carry that token in the Authorization header and address resources under /lighthouse/tenancies/{tenancy_id}/. Workspace groups use the exact segment workspaces-groups.

The reusable client calculates renewal time from expires_in, subtracting five minutes, and checks it before requests. Its request loop allows three total attempts, renews after a 401 response and applies exponential delays after rate limiting or request exceptions. The standalone scripts authenticate once and do not contain equivalent renewal or retry logic.

Workspace collection requests pages of 100 records until the reported total is reached. View-data retrieval serializes filters into a query parameter and supports date or month filtering.

Setup

Acquire the complete folder with its scripts and references. A revision-specific source is [https://github.com/fabricioctelles/skills/tree/c491efea06e200e847c416effb87e566d6face3b/skills/pier-cloud]. The documented dependency command is pip install requests python-dotenv.

Populate a discoverable .env using the provided template, then use python scripts/pier-cloud-auth.py as the documented authentication step. The authentication script displays only the final four token characters. Successful authentication alone would not establish permission to access a particular tenancy or workspace.

The documents differ on whether .env belongs in the skill directory or project root. The code specifies no explicit dotenv path, so ensure the intended configuration is discoverable from the chosen directory layout.

Example

For a monthly cost-data export, first discover workspace IDs with python scripts/pier-cloud-list-workspaces.py, then list views using python scripts/pier-cloud-list-views.py --workspace-id WORKSPACE_ID. Replace WORKSPACE_ID with a real numeric ID.

After finding a view, replace VIEW_ID in python scripts/pier-cloud-get-view-data.py --view-id VIEW_ID --start-date 2026-01-01 --end-date 2026-01-31 --output costs.json. The intended result is the saved view's returned data in a local JSON file; its columns depend on that view. This example was not executed.

For a workspace inventory in CSV, use python scripts/pier-cloud-get-all-workspaces.py --output workspaces.csv --format csv. The explicit format argument matters because the script defaults to JSON regardless of the filename extension.

Assessment & evidence

Limitations

Context listing makes one request without pagination parameters or a page loop, although the reference describes a paginated endpoint with a default page size of ten. It therefore does not establish retrieval of every context. Workspace-group listing also requires explicit page selection.

Repeated 401 or 429 responses can exhaust the reusable client's request loop and return None. Callers generally expect a dictionary, so they lack a controlled failure result for that path. Other HTTP errors, including permission or missing-resource responses, can be retried through the general exception handler.

The reusable CLI imports json inside two branches of main(), making json local throughout that function. Its get-all-workspaces branch calls json.dump without first assigning that local variable. Static analysis indicates that this export path would fail after opening the destination file, potentially leaving it empty.

CSV output requires --format csv, which the scripts guide correctly includes. The reference also contains illustrative, non-parseable JSON and a view-data description that incorrectly discusses token retrieval. Examples need interpretation rather than blind copying.

Reasoning

The resource fits work that begins with existing Pier Cloud access and needs programmatic discovery or extraction. Tenant routes, workspace IDs, saved views and export handling are already expressed in inspectable source, reducing the amount of integration scaffolding a developer must write.

Its packaged actions create authentication tokens and read platform data. They do not implement cloud-resource changes, savings calculations or autonomous cost optimisation. Reliable scheduled collection requires resolving the identified export, pagination and failure-handling issues.

Alternatives

Direct HTTP or cURL requests are an alternative for small integrations or languages other than Python. The resource includes examples and points to Pier Cloud's public API documentation at [https://docs.piercloud.com/api-docs-pier-cloud/api-pier-cloud/public-routes-en-us]. Current contents of that external documentation are unverified.

Within the folder, single-purpose scripts offer a smaller starting point for individual operations, while the reusable client provides shared authentication and retry handling for its supported operations. No evidence supports a comparison with competing FinOps products or third-party SDKs.

Evidence

The source snapshot is revision c491efea06e200e847c416effb87e566d6face3b of fabricioctelles/skills, captured on 2026-11-16 at 16:48:59.494 UTC. It contains the sixteen files in skills/pier-cloud and the repository-root licence.

Implementation findings come from the supplied source text. Documentation responses are examples rather than receipts of successful API calls. No scripts or API calls were executed; authentication success, real response schemas, export completeness, throughput and failure recovery remain unverified.

Access & freshness

Costs

Pier Cloud subscription prices, API-access charges, request quotas and any included allowance are unknown. The troubleshooting guide discusses rate limiting without specifying a quota.

The repository licence grants royalty-free rights to the covered source, which does not establish free Pier Cloud service access. The supplied Python scripts call Pier Cloud directly and contain no model API calls; costs associated with an assistant used to operate the skill are unspecified.

Rights

SKILL.md declares Apache 2.0, and the repository-root LICENSE supplies that licence with Copyright 2025 ft.ia.br. It permits reuse, modification and redistribution subject to its terms, including supplying the licence, marking changed files and retaining applicable attribution notices.

Any applicable NOTICE attributions must also be preserved. The licence does not grant general trademark rights and provides the work without warranties.

REFERENCE.md identifies some content as excerpts from Pier Cloud's official documentation. Separate permission covering those upstream excerpts is not established by the supplied evidence.

Freshness

SKILL.md identifies version 1.2 dated 2026-09-21. REFERENCE.md says its public-route material was synchronized on that date. The scripts guide describes a February 2026 migration from organisation/business paths to tenancy paths and labels its endpoint table as updated in September 2026.

These are source-stated dates. Compatibility with the live service at capture time or with subsequent API and dependency changes is unknown. The pinned revision identifies the exact source discussed here.

Actions

For an initial export, obtain platform credentials and tenancy permissions, discover actual workspace and view IDs, and use the relevant standalone script. Set PIERCLOUD_TENANCY_ID explicitly, or remove an empty tenancy setting when relying on the legacy business-ID fallback.

Before scheduling collection, correct the reusable CLI's json scoping, return explicit errors after exhausted requests, and add complete context pagination where required. The standalone all-workspaces exporter provides a separate JSON or CSV path, but lacks automatic token renewal.

Confirm actual token expiry, response shapes, date and filter behavior, pagination completeness and request quotas with the intended tenancy. Use the troubleshooting reference to distinguish invalid credentials, missing permissions and incorrect resource paths. Obtain service pricing directly from Pier Cloud.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/pier-cloud/.env.exampleselected · checked 2026-11-16
skills/pier-cloud/SKILL.mdselected · checked 2026-11-16
skills/pier-cloud/references/REFERENCE.mdselected · checked 2026-11-16
skills/pier-cloud/scripts/README.mdselected · checked 2026-11-16
skills/pier-cloud/scripts/pier-cloud-auth.pyselected · checked 2026-11-16