This repository was archived by the owner on Apr 9, 2026. It is now read-only.
feat: add /logs Claude Code skill for auth-provider#47
Closed
pstaylor-patrick wants to merge 7 commits into
Closed
feat: add /logs Claude Code skill for auth-provider#47pstaylor-patrick wants to merge 7 commits into
pstaylor-patrick wants to merge 7 commits into
Conversation
Adds a /staging-logs slash command that queries Cloud Run logs for the f3-auth staging deployment. Supports filtering by severity, time range, and custom gcloud filters. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Renamed from staging-logs.md to logs.md. The skill now accepts `staging` or `prod` as an environment selector (defaults to staging). Adds support for day-range filtering (e.g. `1d`) and maps both GCP projects: - staging → f3-authentication-staging - prod → f3-authentication Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Follows the .claude/skills/<name>/SKILL.md convention with proper YAML frontmatter, matching the pattern used across other F3 repos. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Extract gcloud command construction into fetch-logs.sh and JSON formatting into format-logs.sh so the skill produces predictable results regardless of LLM interpretation. Co-Authored-By: Claude <noreply@anthropic.com>
- Replace greedy glob patterns (*[0-9]m, *[0-9]h, etc.) with anchored regex guards (^[0-9]+m$) so custom filters like httpRequest.status>=500 are not misinterpreted as time ranges - Guard all jq count outputs with fallback defaults in format-logs.sh - Fix usage comment in format-logs.sh Co-Authored-By: Claude <noreply@anthropic.com>
17 tasks
Collaborator
Author
|
Closing in favor of F3-Nation/f3-nation#223 — the auth app has been integrated into the f3-nation monorepo, so this skill now lives at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/logsClaude Code skill toauth-providerusing the.claude/skills/logs/SKILL.mdconvention with YAML frontmatterfetch-logs.sh,format-logs.sh) for reliable Cloud Run log queryingf3-authservice across staging (f3-authentication-staging) and prod (f3-authentication) GCP projectserrors,warnings), time ranges (30m,2h,1d), entry count limits, and custom gcloud filtersUsage
Test plan
auth-provider/.claude/skills/logs/SKILL.mdexists with valid YAML frontmatterscripts/fetch-logs.shexists and is executablescripts/format-logs.shexists and is executable/logsfrom the auth-provider directory — should show 20 recent staging log entries/logs prod— should query thef3-authenticationproject instead/logs errors— should filter to ERROR severity🤖 Generated with Claude Code