global-config
Global Configuration
Base settings for all Alicoder001 skills.
Interaction Defaults
- Mirror the user's tone and technical depth.
- Ask up to 2 clarifying questions when requirements are ambiguous.
- Confirm constraints that affect output (stack, environment, timeline).
- Default conversation to the user's language.
- Keep reusable skill artifacts (
SKILL.md, scripts, references) in English unless explicitly requested otherwise.
Project Context Detection
NEVER ask these questions:
- "What programming language?"
- "What is your tech stack?"
- "Do you want guided setup?"
- "What framework are you using?"
Instead, auto-detect from these files:
| File | What to Detect |
|---|---|
package.json |
Dependencies, scripts, framework |
tsconfig.json |
TypeScript project |
.agents/CONTEXT.md |
Full project context |
GEMINI.md |
Agent rules |
next.config.* |
Next.js project |
vite.config.* |
Vite project |
nest-cli.json |
NestJS project |
Detection logic:
- Check if context files exist and use them silently.
- Check
package.jsondependencies and infer stack. - If no context found, proceed with reasonable defaults for immediate task execution.
- If context is missing and the task clearly needs project-level setup, trigger
project-initrecovery flow with one short confirmation.
Routing boundary (important):
global-configsets defaults and routing only.- If setup/context recovery intent is detected, delegate to
project-initinstead of handling setup questions here.
Rule: If you cannot detect, proceed with the task. Do not block.
Language Policy
- Do not ask a generic language preference question in normal task flow.
- Exception: setup-style onboarding (for example
project-init) must ask one language confirmation at the start when the first user message is non-English. - For Uzbek first messages in setup/recovery, use:
O'zbekcha davom etamizmi? - After language is confirmed once, do not repeat the language question in the same setup flow.
Global Rules
Code Style
- Prefer TypeScript with strict mode when TypeScript is used.
- Follow naming conventions from
typescript. - Apply mobile-first responsive design for UI work.
Communication
- Be concise and professional.
- Use code examples for non-trivial explanations.
- Format responses in markdown.
Local Skill Capture
- Support both explicit save triggers:
@save-skillandskillga saqla. - Treat these triggers as a request to persist project-specific guidance as a local skill.
- Ask one short confirmation before writing:
Save this as a local skill? (yes/no). - Save using the standard local path:
.agents/skills/local/<skill-name>/SKILL.md. - If a matching local skill already exists, update/merge it instead of creating duplicates.
Error Handling
- Wrap async code in try-catch where failures are expected.
- Provide helpful error messages.
- Log errors appropriately.
Security
- Never expose secrets or API keys.
- Validate all user inputs.
- Use environment variables.
Skill Priority Order
When multiple skills apply, follow this order:
- project-init - First only for setup/context recovery intent
- global-config - Baseline defaults and routing guardrails
- agent/reasoning - Before any complex task
- agent/planning - For task decomposition
- core/ skills - Foundation
- arch/ skills - Architecture decisions
- frontend/ or backend/ - Implementation
- perf/ - Optimization
- agent/ - Other agent behaviors
Session Memory
Remember these across the conversation:
- Project type and stack (Next.js, NestJS, etc.).
- Constraints and priorities (performance, accessibility, SEO).
- Key files and structure discussed.
Quick Reference
| Setting | Default |
|---|---|
| Communication | Mirror user tone and language, concise |
| TypeScript | Strict when applicable |
| Styling | Tailwind CSS (if selected) |
| State | TanStack Query + Zustand (if selected) |
| Forms | React Hook Form + Zod (if selected) |
| API | REST/tRPC (if selected) |
More from alicoder001/agent-skills
react-vite
React + Vite SPA development patterns including project setup, configuration, and optimization. Use for building single-page applications with Vite bundler.
22react-nextjs
Next.js 14+ App Router best practices including Server Components, data fetching, caching, and Vercel optimization patterns. Use for Next.js development with waterfall prevention, bundle optimization, and server actions.
17javascript
JavaScript micro-optimizations and performance patterns. Use when optimizing loops, array operations, caching, or DOM manipulation. Includes Set/Map usage, early returns, and memory-efficient patterns.
14senior
Senior frontend developer practices including code quality, accessibility, responsive design, and UI consistency. Use when reviewing code, implementing UX patterns, or ensuring production-quality output.
12errors
Error handling patterns for robust applications. Use when implementing try-catch blocks, error boundaries, custom errors, or logging. Covers async errors, React error boundaries, and API error responses.
10workflow
AI agent operational rules including token discipline, navigation-first approach, and output contracts. Use when you need efficient and predictable agent behavior during development tasks.
10