AGENTS.md · NativeScript/NativeScript
AGENTS.md from NativeScript/NativeScript: 71 lines covering Environment, Repository Layout, Key Documentation, Agent Skills and more.
Template by NativeScript
Chalk Labs
Need help deploying AGENTS.md · NativeScript/NativeScript?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/NativeScript/NativeScript/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 71 lines
- File
AGENTS.md
Sections
- Environment
- Repository Layout
- Key Documentation
- Agent Skills
- Platform-Specific Code
- Testing
- Formatting & Commits
- Pull Requests
First lines (shown under the repo's MIT license)
# AGENTS.md - NativeScript This is the source code for NativeScript — `@nativescript/core` and related packages. This guide outlines standard practices for AI agents working in this repository. ## Environment - Use `npm` for package management. First-time setup: `npm run setup` (cleans and installs). - This is an [Nx](https://nx.dev) workspace. Run targets with `npx nx run <project>:<target>`, e.g. `npx nx run core:test`. - `npm start` opens an interactive menu of every workspace command (type to filter, ENTER to run). Each entry maps to an Nx command you can also run directly. ## Repository Layout - `packages/core` — `@nativescript/core`, the framework itself (UI, styling, application lifecycle, native bridging). - `packages/webpack5` — `@nativescript/webpack` build tooling. - `packages/vite` — `@nativescript/vite` build tooling. - `packages/types-ios`, `packages/types-android`, `packages/types-minimal`, `packages/types` — native platform TypeScript declarations. - `packages/ui-mobile-base` — native (Java/Objective-C) UI base components. - `packages/winter-tc` — WinterTC (web-interoperable runtime) compliance. - `apps/toolbox` — preferred playground for local development and debugging core. Simple; use this most often. - `apps/automated` — automated e2e test suite that runs on a device/simulator. - `apps/ui` — more sophisticated test app for UI scenarios. ## Key Documentation - [Development Workflow](tools/notes/DevelopmentWorkflow.md): definitive guide for setup, running tests, and test apps. - [Coding Conventions](tools/notes/CodingConvention.md): style guide (tabs width 2, single quotes, semicolons, same-line braces). - [Code Comments](tools/notes/CodeComments.md): comment rules for all TypeScript edits (minimal, JSDoc on public API only). - [Core Platform Modules](tools/notes/CorePlatformModules.md): required reading before touching `packages/core` modules (`.ios.ts`/`.android.ts` split, handwritten `.d.ts`). - [Contributing / Commit Guidelines](tools/notes/CONTRIBUTING.md): commit message format used to generate changelogs. - [Writing Unit Tests](tools/notes/WritingUnitTests.md): expectations for test coverage with changes. ## Agent Skills Repository skills live in `.agent/skills/<skill-name>/SKILL.md` — each is a workflow for one kind of task (feat, fix, refactor, ...), with YAML frontmatter (`name`, `description`). Before starting a task a skill's description covers, read that SKILL.md and follow it. (`.claude/skills` is a symlink to `.agent/skills` so Claude Code discovers them automatically.) - [feat](.agent/skills/feat/SKILL.md) — build a feature end-to-end (issue → plan → implement → test → PR). - [fix](.agent/skills/fix/SKILL.md) — debug and fix a bug end-to-end (trace → root cause → fix → test → PR). - [refactor](.agent/skills/refactor/SKILL.md) — restructure code without changing behavior. - [unit-testing](.agent/skills/unit-testing/SKILL.md) — running and writing Vitest specs. - [issue-sweep](.agent/skills/issue-sweep/SKILL.md) — sweep the issue backlog oldest-first: classify with evidence, close only what the maintainer approves. Conventions and how-to knowledge live as docs in `tools/notes/` (see [Key Documentation](#key-documentation)) — the single source of truth. A skill references the docs it depends on through relative symlinks in its `references/` folder, created with: ```bash cd .agent/skills/<skill>/references/ ln -s ../../../../tools/notes/<Doc>.md <Doc>.md ``` To add a skill: create `.agent/skills/<kebab-case-name>/SKILL.md` with `name` and `description` frontmatter (the description states *when* to use it — that is what triggers loading), keep the body a short workflow that links docs via `./references/`, and list it here. When moving or renaming a doc, check for skill symlinks pointing at it: `grep -rl '<Doc>' .agent/skills/*/references/`. ## Platform-Specific Code `packages/core` uses filename suffixes (`foo.ios.ts` / `foo.android.ts`, shared `foo-common.ts`, handwritten `foo.d.ts`) to split implementations per platform; the bundler picks the right file at build time. Read [Core Platform Modules](tools/notes/CorePlatformModules.md) before touching any module there — the short version: keep both platform files in parity, and update the neighboring `.d.ts` whenever a public API changes. ## Testing - Unit tests (Vitest) are colocated `*.spec.ts` files. Run with `npx nx run core:test`. - Watch mode: `npx nx run core:test --watch` - Single suite by describe name: `npx nx run core:test -t 'XmlParser'` - Unit tests run in Node with NativeScript platform globals mocked in `packages/core/vitest.setup.ts` — they cannot exercise real native APIs. Behavior that touches iOS/Android at runtime is covered by the e2e suite: `npx nx run apps-automated:ios` or `npx nx run apps-automated:android` (requires a configured NativeScript environment with simulators/emulators). - Prefer adding a unit test for logic changes; add or extend an `apps/automated` test for native runtime behavior. ## Formatting & Commits - Prettier formats the workspace: `npx nx format:write` (also auto-runs on the pre-commit hook). - Commit messages and PR titles follow the conventional format `type(scope): message` (e.g. `fix(core): ...`, `feat(ios): ...`) per the [commit guidelines](tools/notes/CONTRIBUTING.md#commit-messages). ## Pull Requests - Use the `gh` CLI (GitHub CLI) for creating and managing pull requests. - Follow the [PR template](.github/PULL_REQUEST_TEMPLATE.md): reference the related issue, ensure existing tests pass, and include tests for the change.
Signals
- Stars
- 25,680
- Forks
- 1,745
- Open issues
- 229
- Last commit (this folder)
- Aug 9, 2026 (2 months ago)
- Last release
- Oct 6, 2026 (24 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NativeScript/NativeScript
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · NativeScript/NativeScript running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · NativeScript/NativeScript. Agent Mart. https://agentmart.dev/templates/nativescript-nativescript-agents-md (last updated 2026-10-24)