Przejdź do treści
Biblioteka skilli
DevOps i chmura · Przegląd i audyt

fastapicloud-logs

/fastapicloud-logs

Sprawdza logi FastAPI Cloud: ostatnie linie, znacznik czasu ostatniego logu, logi budowania wdrożenia i szybka kontrola zdrowia aplikacji.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Sprawdza logi FastAPI Cloud: ostatnie linie, znacznik czasu ostatniego logu, logi budowania wdrożenia i szybka kontrola zdrowia aplikacji.

Oryginalny opis (EN)

Inspect FastAPI Cloud logs. Use when the user asks for recent logs, the latest or last log timestamp, runtime log lines, build logs for a deployment, whether an app has emitted logs, or a quick app log/health check.

Jak działa

  1. Overview
  2. Command Baseline
  3. App Resolution
  4. Runtime Logs
  5. Build Logs
  6. Authentication
  7. Response
Sekcje z nagłówków SKILL.md, w oryginale · 90 linii, 628 słów
Podgląd SKILL.md
---
name: fastapicloud-logs
description: "Inspect FastAPI Cloud logs. Use when the user asks for recent logs, the latest or last log timestamp, runtime log lines, build logs for a deployment, whether an app has emitted logs, or a quick app log/health check."
---

# FastAPI Cloud Logs

## Overview

Inspect FastAPI Cloud logs with the narrowest read-only command that answers the user. Prefer direct log retrieval over broad deployment debugging unless the log output points to a failure that needs deeper triage.

## Command Baseline

Confirm log flags only when needed:

```bash
uv run fastapi cloud logs --help
```

Use `uv run fastapi cloud apps get --json` only when resolving the linked current directory. Use `--json` whenever the command supports it.

## App Resolution

Resolve the app only as far as needed:

1. Use an explicit app ID, app slug, path, or deployment ID from the user.
2. Use the linked current directory with `uv run fastapi cloud apps get --json`.
3. Use `--app-id APP_ID` when the directory is not linked but an app ID is known.
4. List teams and apps only when the user did not provide an app and the local link cannot resolve one.

Do not create apps, link directories, deploy, or mutate environment variables while answering a log request unless the user explicitly asks.

## Runtime Logs

For recent runtime logs:

```bash
uv run fastapi cloud logs . --no-follow --tail 100 --since 30m --json
uv run fastapi cloud logs --app-id APP_ID --no-follow --tail 100 --since 30m --json
```

For the latest log timestamp, try the narrowest command first:

```bash
uv run fastapi cloud logs . --no-follow --tail 1 --json
uv run fastapi cloud logs --app-id APP_ID --no-follow --tail 1 --json
```

If the command returns no lines or requires a time window, widen with bounded supported ranges such as `30m`, `24h`, `7d`, then `30d`. Do not use very large ranges such as `365d`; report the widest window checked when no logs are found.

## Build Logs

When the user asks for build logs or names a deployment:

```bash
uv run fastapi cloud deployments list --app-id APP_ID --json
uv run fastapi cloud deployments build-logs DEPLOYMENT_ID --no-follow --json
```

If no deployment ID is provided, use the newest deployment from `deployments list`.

### Build Failure Guidance

FastAPI Cloud CLI `0.26.0` or newer includes backend failure guidance when available. In `build-logs --no-follow --json`, inspect `data.failed` and `data.failure` as well as `data.logs`. A non-null `failure` contains `error_code`, `error_title`, `error_message`, and `error_hint`. Surface the backend's title, message, and any non-empty hint; use the error code when it helps identify the failure.

Build-log commands exit with code 1 for a failed build even when stdout contains a valid JSON result. Parse that result before treating the exit as a command or network error. Empty logs do not establish that a build succeeded: failure guidance can remain available after logs expire. If `failure` is null, use the reported failure state and available logs without inventing a diagnosis.

For deployment status or persisted failure details:

```bash
uv run fastapi cloud deployments get DEPLOYMENT_ID --app-id APP_ID --json
```

Inspect `data.deployment.status` and `data.deployment.failure`. Build completion alone does not establish that the deployment is healthy.

## Authentication

Treat auth as a blocker, not the main workflow:

- If a read command returns `not_logged_in` or `invalid_token`, stop and tell the user authentication is blocking the log request.
- Ask before starting the device login flow.
- After approval, use the JSON device flow:

```bash
uv run fastapi cloud auth login --no-open --json
uv run fastapi cloud auth wait --device-code DEVICE_CODE --interval 5 --timeout 300 --json
```

Surface only the login URL or user code needed for authorization. Do not print token values, ask the user to paste tokens, or inspect `FASTAPI_CLOUD_TOKEN` unless the user is debugging CI/auth configuration.

## Response

Answer the concrete log question first: newest timestamp, matching log lines, empty result, or the auth/app-resolution blocker. Include the app name or ID only when it clarifies the evidence, and keep follow-up diagnostics to the next likely command.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Wersje

W bazie nie ma innych skilli o nazwie fastapicloud-logs.

Migawka bazy z 28.10.2026 · wersja paczki e8a211fea0e1 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100fastapicloud-deploy
    Przygotowuje i wdraża aplikacje FastAPI do FastAPI Cloud: logowanie, CI/CD w GitHub Actions, tokeny wdrożeniowe, walidacja wejść, .fastapicloudignore i polecenia fastapi deploy.
  • 100fastapicloud-env
    Zarządza zmiennymi środowiskowymi i sekretami FastAPI Cloud: listowanie, odczyt, ustawianie, usuwanie, audyt oraz diagnoza brakującej konfiguracji wdrożonej aplikacji.
  • 100forge-logs
    Odczytuje logi wdrożeń, serwerów, aplikacji, nginx i procesów w tle z Laravel Forge, z trybem triage łączącym ostatnie logi z historią wdrożeń do szybkiej analizy incydentów.
  • 100remote-logs
    Pobiera logi budowania i logi uruchomieniowe wdrożonego backendu aplikacji Fusebase poleceniem fusebase remote-logs przy debugowaniu.
  • 100dt-obs-logs
    Wyszukuje i filtruje logi w Dynatrace, analizuje wzorce błędów i liczy wskaźnik błędów dla logów aplikacji i infrastruktury, także z korelacją danych.
  • 100vercel
    Wdraża i sprawdza aplikacje na Vercel, przypisuje aliasy, usuwa wdrożenia, bada logi i monitoruje wyniki wdrożeń.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.