teamcraft-glgd:init-project
Set up .teamcraft/project.md, CLAUDE.md, .claude/rules/, and .gitlab-ci.yml for a project. Works for any project state — brand new empty repo, existing codebase with no teamcraft files, or existing project mid-sprint. Creates files that don't exist; audits and proposes updates to files that do.
What this skill does
## Goal Produce four artifacts that enable Claude Code and the GitLab project to work effectively together from any starting point: 1. `.teamcraft/project.md` — the minimal project index: GitLab project ID and Drive artifact URLs. Never grows beyond this. 2. `CLAUDE.md` — a living team file committed to the repo. Starts with `@.teamcraft/project.md` to import the manifest into every session automatically. Contains only what Claude Code cannot discover from the environment and what no build skill already loads. 3. `.claude/rules/` — starter rule files for domain-specific conventions that only load when Claude Code touches relevant files. 4. `.gitlab-ci.yml` — a baseline quality-gate pipeline appropriate to the project's tech stack, with three stages: `test` (stack-appropriate test suite), `quality` (lint/format check for the detected stack), and `security` (GitLab CE secret detection template — language-agnostic). After the file is written, attempt to set merge protection via the GraphQL MCP tool — fall back to manual UI instructions if the mutation fails on this GitLab CE version. ## Hard Constraints - No presuppositions about project state. The repo may be empty, mid-sprint, or a 30,000-line legacy codebase with no teamcraft files. Work with what exists. - `.teamcraft/project.md` contains exactly: project name, GitLab namespace, numeric project ID, and Drive URLs for PRD, tech decisions, and conventions. Leave rows blank where documents don't exist. Nothing else — no milestone data, no sprint history, no team notes. - `CLAUDE.md` is a team file committed to the repo. Not gitignored. Not per-developer. `CLAUDE.local.md` is the per-developer file — mention it to the developer as the place for personal additions. - `CLAUDE.md` starts with `@.teamcraft/project.md` so the manifest loads automatically in every session. Its remaining content is only what Claude Code would get wrong that it cannot discover from the environment and that no skill already provides. - `.claude/rules/` files with a `paths` frontmatter field load only when Claude Code reads matching files — use for domain-specific rules that should not load on every session. Rules files without `paths` load at session start alongside CLAUDE.md. - Never overwrite an existing CLAUDE.md without showing exactly what changes and getting explicit confirmation. - If a Drive file operation fails with a path error, read the error message to identify a valid accessible host path and retry with it. - **Brownfield CI/CD detection:** If `.gitlab-ci.yml` already exists, do not replace it. Inspect it for the three quality-gate stages (test, quality, security). Offer to extend it with any missing stages only. Get confirmation before writing. - **Runner prerequisite:** Without at least one registered GitLab Runner, pipelines sit as pending forever. Detect whether a runner is likely configured by checking if any pipelines have run on the project. If there is no evidence of a runner, surface this clearly: explain what the team needs to do (install and register a runner), what will happen without one (pipelines pending indefinitely), and that runner setup is outside TeamCraft's scope. Do not leave the team without direction. - **Merge protection via GraphQL — attempt, then fall back:** Use `mcp__gitlab__execute_graphql` to call the `projectUpdate` mutation and set `onlyAllowMergeIfPipelineSucceeds: true`. This mutation is not available on all GitLab CE versions — if the call fails, do not attempt curl or REST fallbacks. Instead, tell the developer to set it manually in the GitLab UI: Settings → General → Merge requests → enable "Pipelines must succeed". Explain what it does and why it matters. - **CI/CD is Claude Code only.** This capability reads the local filesystem to detect the tech stack and writes `.gitlab-ci.yml` locally. It cannot run in Cowork without filesystem access. - **Stack detection covers common cases.** Node (package.json), Go (go.mod), Rust (Cargo.toml), Python (requirements.txt or pyproject.toml), Java (pom.xml or build.gradle). Monorepos and exotic setups may need manual adjustment — say so and offer guidance. ## Resolve Drive Account Call `mcp__google-drive__list_accounts` before any other Drive operation: - **No accounts** — Drive is not configured for this user. Tell them and skip Drive operations. - **One account** — Use it. Pass `account_email` explicitly on every Drive tool call this session. - **Multiple accounts** — Present the list, ask which account to use for this session. Pass that `account_email` on every Drive tool call. If any Drive call returns a permission error, surface it: the active account may not have access to that file or folder. Offer to try another account if one is available. ## Orient and Interview Before touching anything — before `git init`, before creating files — look around, read what the team has already decided, and then talk to the developer. **Step 1: Observe the local directory silently.** Check what exists: `.git/`, `.teamcraft/project.md`, `CLAUDE.md`, `.claude/rules/`, `.gitlab-ci.yml`, and any project config files (package.json, go.mod, Cargo.toml, requirements.txt, pyproject.toml, etc.). Do not run `git init` yet. Do not create anything. Just observe. **Step 2: Identify the GitLab project.** This is the one thing the developer must answer before anything else — which project is this? - **Empty directory:** Use `mcp__gitlab__list_projects` to surface visible projects. Ask the developer which one this directory belongs to. - **Has `.git`:** Check `git remote -v` to identify the project. Confirm with the developer. If no remote resolves, fall back to `mcp__gitlab__list_projects`. **Step 3: Read what the team has already decided.** With the GitLab project identified, gather context from existing sources before asking the developer anything else: - **Drive artifacts:** Ask the developer if they have Drive artifact URLs (PRD, tech decisions, conventions) to link — if they can point at them, load them directly; if not, ask whether to search Drive. When found, read them. They reveal tech stack decisions, scaffolding approaches, and conventions already established by the team. - **GitLab issues:** For greenfield projects (empty directory), use `mcp__gitlab__list_issues` to read the current milestone's issues — especially the first issue, which typically defines the scaffolding approach. Read the issue descriptions; they often specify which tools to use, what the project structure should look like, and what the tech stack is. This step is critical. The tech lead or PM may have already decided whether a scaffolding tool is required, which one, and how the project should be structured. Those decisions live in Drive artifacts and GitLab issues — not in the developer's head. **Step 4: Present what you found and confirm.** Now — with context from Drive and GitLab — present your understanding to the developer. What you present depends on the directory state: - **Empty directory (greenfield):** Summarize the tech decisions and scaffolding approach you found in Drive artifacts and/or the GitLab issues. Then confirm: > "Based on [source — tech decisions doc / issue #N / both], this project uses [tech stack]. [If scaffolding tool identified:] The plan calls for [tool, e.g., Vite] for scaffolding, which needs an empty directory — so I'll hold off on creating any files until you've run it. [If no scaffolding tool identified:] I didn't find any scaffolding tool specified — are you building the structure by hand, or is there a scaffolding tool I should know about? [If sources were unavailable:] I wasn't able to read Drive artifacts or GitLab issues, so I need your guidance: will you be using a scaffolding tool that needs a clean directory (e.g., cookiecutter, create-react-app, Vite, cargo init)?" The developer confirms or overrides. They may know something has changed since the documents were written — follow their lead. - **Has `.git` but no teamcraf
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".