agentleFS
sunholo-datasunholo-data/ailang/.agents/skills/cloud-setup/SKILL.md

cloud-setup

Skill34 starsChanged 59 days agoApache-2.0View on GitHub

Set up Codex cloud/mobile environments for AILANG development. Use when starting a new cloud session, when tools are missing (Go, make, gh), or when user says "setup cloud", "setup environment", or mentions mobile Codex.

  • Deletes or force-pushes
  • Installs packages

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the setup script to install all required tools:

    line 12
  2. Distinctive:

    Use this skill when:

    line 26
  3. Distinctive:

    Verify environment is correctly set up.

    line 138
  4. Very specific:

    Solution: Add Google DNS to /etc/resolv.conf:

    line 170
  5. Distinctive:

    Solution: Use direct downloads:

    line 179
  6. Very specific:

    Solution: Use wget --no-check-certificate instead of curl

    line 189
  7. Distinctive:

    After setup, verify you can:

    line 204

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cloud Environment Setup

Set up a fresh cloud/mobile Codex environment with all tools needed for AILANG development.

Quick Start

Run the setup script to install all required tools:

.Codex/skills/cloud-setup/scripts/setup.sh

Or verify an existing environment:

.Codex/skills/cloud-setup/scripts/verify.sh

When to Use This Skill

Use this skill when:

  • Starting a new cloud/mobile Codex session
  • go, make, or gh commands are not found
  • User says "setup cloud", "setup environment", "install tools"
  • Build commands fail due to missing tools
  • User mentions "mobile Codex" or "cloud environment"

Environment Requirements

Required Tools

ToolPurposeMinimum Version
GoBuild AILANG1.24+
makeBuild automationGNU Make 4+
ghGitHub CLI2.0+
gitVersion control2.0+

Resource Requirements

ResourceMinimumRecommended
RAM4 GB8+ GB
Disk5 GB free10+ GB
CPUs24+
NetworkRequiredRequired

Setup Workflow

Step 1: Assess Current Environment

# Check what's available
which go make gh git 2>/dev/null
go version 2>/dev/null

Step 2: Fix DNS (if needed)

Cloud environments sometimes have broken DNS. Fix with:

echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf

Step 3: Install Go

# Install via apt (may get older version)
apt-get update && apt-get install -y golang-go make

# OR install specific version directly
wget --no-check-certificate https://go.dev/dl/go1.24.4.linux-amd64.tar.gz -O /tmp/go.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/go.tar.gz
export PATH=/usr/local/go/bin:$PATH

Step 4: Install GitHub CLI

# Download and install
curl -L https://github.com/cli/cli/releases/download/v2.63.2/gh_2.63.2_linux_amd64.tar.gz -o /tmp/gh.tar.gz
tar -xzf /tmp/gh.tar.gz -C /tmp
mv /tmp/gh_*/bin/gh /usr/local/bin/
rm -rf /tmp/gh*

Step 5: Configure Go Environment

export PATH=/usr/local/go/bin:$PATH
export GOTOOLCHAIN=local      # Prevent auto-download of newer Go
export GOPROXY=direct         # Bypass proxy if blocked

Step 6: Build AILANG

# Download dependencies
go mod download

# Build
make build

# Verify
./bin/ailang run examples/runnable/hello.ail

Available Scripts

scripts/setup.sh

Full automated setup - installs Go, make, gh, and builds AILANG.

Usage:

.Codex/skills/cloud-setup/scripts/setup.sh

What it does:

  1. Checks current environment
  2. Fixes DNS if needed
  3. Installs Go 1.24.4
  4. Installs make
  5. Installs GitHub CLI
  6. Downloads Go modules
  7. Builds AILANG
  8. Runs verification

scripts/verify.sh

Verify environment is correctly set up.

Usage:

.Codex/skills/cloud-setup/scripts/verify.sh

Checks:

  • Go version and PATH
  • make availability
  • gh CLI availability
  • AILANG binary exists
  • AILANG can run examples
  • Core tests pass

Resources

Troubleshooting Guide

See resources/troubleshooting.md for common issues and solutions.

Known Issues

1. Go Toolchain Auto-Download

Symptom: Go tries to download newer toolchain, fails with network error

Solution: Set GOTOOLCHAIN=local

2. DNS Resolution Failures

Symptom: dial tcp: lookup ... on [::1]:53: connection refused

Solution: Add Google DNS to /etc/resolv.conf:

echo "nameserver 8.8.8.8" > /etc/resolv.conf

3. Go Module Proxy Blocked

Symptom: Timeout connecting to proxy.golang.org or storage.googleapis.com

Solution: Use direct downloads:

export GOPROXY=direct
go mod download

4. SSL/TLS Handshake Failures

Symptom: curl: (35) ... sslv3 alert handshake failure

Solution: Use wget --no-check-certificate instead of curl

5. Missing Basic Commands

Symptom: head, tail, grep not found

Solution: Either install coreutils or avoid piping:

# Instead of: command | head -20
# Just run: command
# And manually inspect output

Post-Setup Checklist

After setup, verify you can:

  • go version shows 1.24+
  • make --version works
  • gh --version works
  • ./bin/ailang run examples/runnable/hello.ail outputs "Hello, AILANG!"
  • go test ./internal/lexer/... passes

Environment Variables

Set these in your session for reliable builds:

export PATH=/usr/local/go/bin:$PATH
export GOTOOLCHAIN=local
export GOPROXY=direct

What You Can Do After Setup

With environment configured, you can:

  1. Build AILANG: make build
  2. Run programs: ./bin/ailang run --caps IO file.ail
  3. Run tests: go test ./internal/...
  4. Work on design docs: Full read/write access
  5. Commit and push: Git operations work
  6. UI development: Node/npm available for ui/ work

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.