Documentation Index
Fetch the complete documentation index at: https://docs.replit.com/llms.txt
Use this file to discover all available pages before exploring further.
Getting started
Replit is a cloud development environment capable of writing and running any framework or stack. To build a custom template, there are two recommended paths:- Import from a Git provider — Import your existing starter stack (or one matching your preferences) from GitHub, GitLab, or Bitbucket.
- Fork the Blank template — Fork the Blank template to start from scratch with a completely empty development environment.
Custom templates are available exclusively on the Enterprise plan. Only org admins can pin and manage templates.
How custom templates work
A custom template is a standard Replit App in your organization that has been pinned to the Agent input box. When a builder selects it:- Agent creates a new app by forking the template (all files are copied)
- Agent skips the planning phase and goes straight to building
- The template’s
custom_instruction/instructions.mdfile is injected into Agent’s context - Custom skills from
.agents/skills/are discovered and made available - The
replit.mdfile provides ongoing project context
Template file structure
Here is the recommended layout for a custom template:Set up a custom template
Create the base app
Create a new Replit App in your organization. Set up the project with all the files, dependencies, and configuration your builders need as a starting point. This includes:- Source code scaffolding (components, utilities, config files)
- Pre-installed dependencies (
package.json,requirements.txt, etc.) - Environment configuration in the
.replitfile
Configure shared secrets
If your template relies on API keys, tokens, or other credentials, add them to the template’s Secrets (under the Tools pane) before pinning. When a builder creates a new app from the template, all secrets are copied into the new app automatically, so builders can start working without configuring credentials themselves. Document every secret incustom_instruction/instructions.md (or in a dedicated skill) so builders know what is available and what each key is used for.
Write custom instructions
Create a file atcustom_instruction/instructions.md in the project root. This is the most important file in your template — it tells Agent how your organization builds software.
Agent injects this file directly into its system prompt with a preamble that frames it as company-provided guidance. Write it in Markdown and include:
- Architecture patterns: How your apps should be structured
- Coding standards: Naming conventions, file organization rules, linting expectations
- Component usage: Which libraries and components to use (and which to avoid)
- API patterns: How to call your backend services, handle authentication, manage errors
- Testing requirements: What tests are expected and how to run them
- Deployment guidelines: Environment-specific configuration and deploy workflows
.agents/skills/ rather than keeping everything in instructions.md. Skills are loaded on demand when relevant, so they do not count against the instruction size limit and keep your main instructions focused on high-level rules.
Add custom skills
Create skills in the.agents/skills/ directory for specialized workflows that Agent should follow. Each skill is a directory containing a SKILL.md file with YAML frontmatter.
SKILL.md needs a name and description in its frontmatter:
| Field | Required | Details |
|---|---|---|
name | Yes | Max 64 characters. Lowercase letters, numbers, and hyphens only. |
description | Yes | Max 1,024 characters. Describes what the skill does and when to use it. |
enabled | No | Defaults to true. Set to false to disable without deleting. |
name and description in its prompt. It reads the full SKILL.md content on demand when the skill is relevant to the current task. This means the description is critical — write it to match the scenarios where Agent should use the skill.
Skills can also include supporting files alongside SKILL.md:
Configure replit.md
Pre-populatereplit.md in the project root with your template’s architecture overview. This file is always loaded into Agent’s context and serves as ongoing project memory.
The file should have these four sections:
replit.md as the project evolves. If the file grows beyond approximately 4,000 tokens, Agent automatically summarizes it to keep it focused and useful.
For more details, see replit.md.
Pin the template to your organization
Once your template is ready:- Navigate to the template app in your organization
- Open the app’s action menu (three-dot menu)
- Select Pin to Agent input box

Only org admins (members of the
system_admins role) can pin and unpin templates.
Control template access
Pinning makes a template visible to every org member. For more targeted distribution, use the Invite button on the template app to share it with specific Groups or individual users. This lets you limit which teams or people can see and fork the template while keeping it unpinned from the org-wide input box.What happens when a builder selects a template

- Fork: A new app is created as a copy of the template, with all files included
- Skip planning: Agent bypasses the initial planning conversation and goes directly into building mode
- Load instructions:
custom_instruction/instructions.mdis read and injected into Agent’s system prompt as company-provided guidance - Discover skills: Skills in
.agents/skills/are identified and listed in Agent’s context for on-demand loading - Load project context:
replit.mdis read and injected into Agent’s context (or auto-generated if missing) - Inherit configuration: The
.replitfile, dependencies, and all template files carry over to the new app
How files work together
Each configuration file serves a distinct role:| File | Purpose | When Agent reads it | Mutable by Agent |
|---|---|---|---|
custom_instruction/instructions.md | Organization standards and rules | Always (injected into system prompt) | No |
.agents/skills/*/SKILL.md | Specialized workflows and patterns | On demand (when relevant) | Yes (Agent can create skills too) |
replit.md | Project overview and preferences | Always (injected into system prompt) | Yes (Agent updates it over time) |
.replit | Runtime configuration | When configuring the app | Yes |
custom_instruction/instructions.md is your static, authoritative source for organizational standards. replit.md is the living document that Agent maintains as the project evolves. Skills are on-demand reference material for specific workflows.
Best practices
Keep instructions focused
Writecustom_instruction/instructions.md for the patterns that matter most. Focus on:
- Decisions that are hard to reverse (architecture, data models)
- Patterns that must be consistent (component usage, API conventions)
- Standards the builder might not know about (internal libraries, team conventions)
Write discoverable skill descriptions
Thedescription field in SKILL.md frontmatter is what Agent uses to decide when to load a skill. Write descriptions that match the tasks where the skill is relevant:
Organize skills by workflow
Group skills around workflows rather than technical categories:| Approach | Example |
|---|---|
| By workflow | build-a-form, connect-to-api, add-auth |
| By technical area | react-utils, api-helpers, auth-config |
Iterate on your template
Templates improve with use. After your team starts building with a template:- Watch for patterns Agent gets wrong and add them to
instructions.md - Create new skills when Agent solves a problem well — capture the solution
- Update base dependencies and configurations as your stack evolves
- Test changes by creating a new app from the template to verify the experience
Template updates and existing apps
Changes to the template app are reflected in new apps created from it. Existing apps that were previously forked from the template are independent copies and do not receive updates.Related resources
- Agent Skills — Learn how skills work and how to create them
- Agent Skills tutorial — Hands-on guide to building and using skills
- replit.md — Customize Agent’s behavior with project-level context
- Design Systems — Set up your organization’s design system for Agent
- App configuration — Configure your
.replitfile - Developer Frameworks — Community templates and how to publish them
- Enterprise overview — Learn about Enterprise features