opensite-ai/opensite-skills / launch-with-aws
launch-with-aws
FlaggedMigrates vibe-coded web applications to AWS. Handles the full workflow from analysis through migration to deployment, producing deployable AWS Blocks infrastructure code. Supports full-stack apps built with vibe-coding platforms (Lovable, Bolt.new, Replit) and frontend web applications and websites: React, Vue, Angular, Next.js, Nuxt, Astro, SvelteKit, Gatsby, Vite, Svelte, Solid, Docusaurus, and others (static sites, SPAs, and SSR frameworks with static export). Triggers on: launch with AWS, launch on AWS, deploy to AWS, migrate to AWS, host my app on AWS, move my app to AWS, transfer my app to AWS. Activates when the user wants to migrate a vibe-coded app or frontend web app to AWS, even if they don't say 'migrate' explicitly.
| File | Kind | Size |
|---|---|---|
| .aws-skill-metadata | other | 18 B |
| SKILL.md | skill md | 13.5 KB |
| references/launchwithaws-2026-06-15.json | config | 34.9 KB |
| scripts/archive.py | script | 16.2 KB |
| scripts/auth.py | script | 16.1 KB |
| scripts/auth_callback_server.py | script | 2.9 KB |
| scripts/launch_api_client.py | script | 9.7 KB |
| scripts/launch_config.py | script | 12.6 KB |
| scripts/launch_with_aws.py | script | 12.7 KB |
scripts/auth_callback_server.py
View on GitHub#!/usr/bin/env python3
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""Background OAuth callback server.
Spawned by auth-start, consumed by auth-wait.
Listens for the OAuth callback, exchanges the code for tokens,
writes session.json, and exits.
Usage:
python3 auth_callback_server.py --state STATE --timeout 300
Configuration values are read as a JSON blob from stdin.
Writes the bound port number to stdout (one line) so the parent can read it.
"""
import argparse
import json
import sys
import threading
from http.server import HTTPServer
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))
from dataclasses import fields
from auth import (
_CallbackHandler,
_exchange_code,
_OAuthState,
save_session,
)
from launch_config import (
CALLBACK_TIMEOUT_SECS,
SSO_OIDC_REGION,
ClientCredentials,
StoredSession,
)
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("--state", required=True)
parser.add_argument("--timeout", type=float, default=CALLBACK_TIMEOUT_SECS)
args = parser.parse_args()
# Configuration arrives as a JSON blob on stdin.
raw = sys.stdin.read()
if not raw:
sys.stderr.write("No configuration received on stdin\n")
sys.exit(1)
payload = json.loads(raw)
credentials = ClientCredentials(
client_id=payload["client_id"],
client_secret=payload["client_secret"],
client_expires_at=payload["client_expires_at"],
authorize_endpoint=f"https://oidc.{SSO_OIDC_REGION}.amazonaws.com/authorize",
token_endpoint=f"https://oidc.{SSO_OIDC_REGION}.amazonaws.com/token",
scopes=payload["scopes"],
)
code_verifier = payload["code_verifier"]
oauth_state = _OAuthState(args.state)
server = HTTPServer(("127.0.0.1", 0), _CallbackHandler)
setattr(server, "oauth_state", oauth_state)
port = server.server_address[1]
# Signal port to parent, then close stdout.
sys.stdout.write(f"{port}\n")
sys.stdout.flush()
sys.stdout.close()
server_thread = threading.Thread(target=server.serve_forever, daemon=True)
server_thread.start()
redirect_uri = f"http://127.0.0.1:{port}"
if not oauth_state.code_received.wait(timeout=args.timeout):
server.shutdown()
sys.exit(1)
server.shutdown()
if oauth_state.error or not oauth_state.auth_code:
sys.exit(1)
access_token, refresh_tok, token_expires_at = _exchange_code(
credentials, oauth_state.auth_code, code_verifier, redirect_uri
)
new_session = StoredSession(
**{f.name: getattr(credentials, f.name) for f in fields(ClientCredentials)},
access_token=access_token,
refresh_token=refresh_tok,
token_expires_at=token_expires_at,
)
save_session(new_session)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |