detect
Detect repository stack for LaunchDarkly SDK onboarding: languages, frameworks, package managers, monorepo targets, entrypoints, existing LD usage. Nested under sdk-install; next is plan.
What this skill does
# Detect repository stack (SDK install) Before installing anything, you must understand the project. Identify what the project is built with and whether LaunchDarkly is already present. This skill is nested under [LaunchDarkly SDK Install (onboarding)](../SKILL.md); the parent **Step 1** is **detect**. **Next:** [Generate integration plan](../plan/SKILL.md) unless the decision tree sends you elsewhere. ### 1. Language and framework Look for the indicator files below (and related root layout), then read the relevant manifests to infer language and framework. Look for these files to identify the stack: | File | Language/Framework | |------|--------------------| | `package.json` | JavaScript/TypeScript (check for React, Next.js, Vue, Angular, Express, React Native, Electron, etc.) | | `requirements.txt`, `pyproject.toml`, `Pipfile`, `setup.py` | Python (check for Django, Flask, FastAPI) | | `go.mod` | Go (check for Gin, Echo, Fiber, Chi) | | `pom.xml`, `build.gradle`, `build.gradle.kts` | Java/Kotlin (check for Spring, Quarkus, Android) | | `Gemfile` | Ruby (check for Rails, Sinatra) | | `*.csproj`, `*.sln`, `*.fsproj` | .NET/C# (check for ASP.NET, MAUI, Xamarin, WPF, UWP) | | `composer.json` | PHP (check for Laravel, Symfony) | | `Cargo.toml` | Rust (check for Actix, Axum, Rocket) | | `pubspec.yaml` | Flutter/Dart | | `Package.swift`, `Podfile`, `*.xcodeproj` | Swift/iOS | | `AndroidManifest.xml` | Android (also check `build.gradle` for `com.android`) | | `rebar.config`, `mix.exs` | Erlang/Elixir | | `CMakeLists.txt`, `Makefile` (with C/C++ patterns) | C/C++ (check for `#include` patterns) | | `*.cabal`, `stack.yaml` | Haskell | | `*.lua`, `rockspec` | Lua | | `manifest`, `*.brs` | Roku (BrightScript) | | `wrangler.toml` | Cloudflare Workers (edge SDK) | | `vercel.json` with edge functions | Vercel Edge (edge SDK) | Read the dependency file to identify the specific framework. For `package.json`, check both `dependencies` and `devDependencies`. If you cannot identify the language or framework: **D5 -- BLOCKING:** Call your structured question tool now. - question: "I couldn't detect the project's language or framework. Which SDK would you like to use?" - options: Present the available SDKs from [SDK recipes](../../references/sdk/recipes.md) as selectable options. - STOP. Do not write the question as text. Do not continue until the user selects an option. ### 2. Package manager Identify how the project installs dependencies: | Indicator | Package Manager | |-----------|----------------| | `package-lock.json` | npm | | `yarn.lock` | yarn | | `pnpm-lock.yaml` | pnpm | | `bun.lockb` | bun | | `Pipfile.lock` | pipenv | | `poetry.lock` | poetry | | `go.sum` | go modules | | `Gemfile.lock` | bundler | Use the detected package manager for all install commands. If multiple lock files exist, prefer the one that was most recently modified. ### 3. Monorepo layout Some repositories host multiple packages or services. Look for these indicators: | File / pattern | Tool or layout | |----------------|----------------| | `pnpm-workspace.yaml` | pnpm workspaces | | `lerna.json` | Lerna | | `nx.json` | Nx | | `turbo.json` | Turborepo | | `rush.json` | Rush | | `packages/` directory with multiple `package.json` files | Generic monorepo | When any of these apply, **do not assume the repo root is the integration target**: **D5 -- BLOCKING:** Call your structured question tool now. - question: "This is a monorepo. Which package, app, or service should I integrate LaunchDarkly into?" - options: List the discovered packages/apps as selectable options. - STOP. Do not write the question as text. Do not continue until the user selects an option. Then run the rest of this detect step -- language, package manager, entrypoint, and SDK search -- **in that target directory** (and its subtree), not only at the root. ### 4. Application entrypoint Find the main file where the application starts. In a monorepo, apply the patterns below within the chosen package after [section 3 Monorepo layout](#3-monorepo-layout). Common patterns: - **Node.js (server)**: Check `package.json` `"main"` field, or look for `index.js`, `server.js`, `app.js`, `src/index.ts` - **NestJS**: Look for `src/main.ts` or `src/main.js` - **Python**: Look for `app.py`, `main.py`, `manage.py`, `wsgi.py`, or the `[tool.poetry.scripts]` section - **Go**: Look for `main.go` or `cmd/*/main.go` - **Java**: Search for `public static void main` or `@SpringBootApplication` - **Ruby**: Look for `config.ru`, `config/application.rb` - **React/Vue/Angular**: Look for `src/index.tsx`, `src/main.tsx`, `src/App.tsx`, `src/main.ts` - **Next.js**: App Router -- `app/layout.tsx` or `app/layout.js` (root layout). Pages Router -- `pages/_app.tsx` or `pages/_app.js` - **React Native**: Look for `App.tsx`, `App.js`, `index.js` (with `AppRegistry.registerComponent`) - **Electron**: Check `package.json` `"main"`; common paths include `main.js` or `src/main.ts` - **JavaScript (browser)**: Look for `index.html`, `src/index.js`, or bundler entry in `webpack.config.js` / `vite.config.ts` - **Flutter**: Look for `lib/main.dart` - **Swift/iOS**: Look for `AppDelegate.swift`, `SceneDelegate.swift`, or `@main` struct - **Android**: Look for `MainActivity.java` or `MainActivity.kt` ### 5a. Classify workspace confidence After sections 1-4, classify the workspace into **one of three states** before continuing. This classification determines how the rest of the flow proceeds. | State | Meaning | Criteria | |-------|---------|----------| | **Clear app** | A runnable application was found | Language/framework detected, a real entrypoint exists, dependency manifest is present with application dependencies | | **Unclear / weak evidence** | Something is present but it does not clearly represent a runnable app | Stray or minimal `package.json` (e.g. only devDependencies, no scripts), isolated config/manifest files, theme or config-only folders, token/fixture JSON, lockfiles without corresponding source, or multiple conflicting indicators with no dominant app structure | | **No app found** | No recognizable application structure was detected | No dependency manifests, no entrypoints, no source files matching known patterns, or the workspace is empty / contains only documentation | **Weak evidence must not be treated as confirmation.** Examples of weak evidence: - A `package.json` with no `scripts` section and no application source files - A lone `requirements.txt` in a directory of data files or notebooks - Config, theme, or fixture directories with manifests that do not represent a runnable service - Monorepo roots where the real apps live in subdirectories but none was selected **Branching by state:** - **Clear app** → continue to [section 6 (Existing LaunchDarkly SDK)](#6-existing-launchdarkly-sdk) and then SDK confirmation. - **Unclear / weak evidence:** **D5-UNCLEAR -- BLOCKING:** Call your structured question tool now. - question: "I found some project files, but I'm not confident I've identified the right application to integrate. Can you point me to the correct app folder?" - context: Briefly describe what you found and why it's ambiguous (e.g., "There's a `package.json` at the root, but it has no start script and no application source files"). - options: - Present any candidate folders you detected as selectable options - "It's somewhere else -- I'll tell you the path" - "There is no app yet -- help me create a demo" - STOP. Do not make code changes, install packages, or generate an integration plan until the user confirms the target. Do not continue until the user selects an option. After the user points to the correct folder, re-run detection (sections 1-4) scoped to that folder. - **No app found:** Tell the user clearly: "I didn't find a runnable application in this workspace." Then offer two paths: **D5-NOAPP -- BLOCKING:** Call your structured question tool now. - question: "I didn't find a runnable applicat
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.