Become a Pro / website · becomeapro.ai / commits / f63bc385
Become a Pro: plain text-first lessons for every trade and profession (site source at 10ff683) new
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
written by Branchwell · f63bc385c0fa362af985bfb576a8b5aa2a3df60f · parent b7854f36
750 files changed
.cursor/rules/authentication.mdc deleted
| 1 | - --- | |
| 2 | - description: authentication requirements | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - Our primary authentcation on the API is supabase admin authentication. There is also an API key AI_RESOURCE_PRO_API_KEY stored in .env.local, but this is secondary. | |
| 7 | - | |
| 8 | - There is an authentication backdoor for localhost testing, but NEVER leave any authentication bypasses enabled or set BYPASS_AUTH_IN_DEV to true in the .env.local environment variables. Security is critical. |
.cursor/rules/coding-style-preferences.mdc deleted
| 1 | - --- | |
| 2 | - description: Coding pattern and style preferences | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - # Coding pattern preferences | |
| 7 | - - Always prefer simple solutions | |
| 8 | - - Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality | |
| 9 | - - Write code that takes into account the different environments: dev, tert, and prod | |
| 10 | - - You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested | |
| 11 | - - When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we don't have duplicate logic. | |
| 12 | - - Keep the codebase very clean and organized | |
| 13 | - - Avoid writing scripts in files if possible, especially if the script is likely only to be run once | |
| 14 | - - Avoid having files over 200-300 lines of code. Refactor at that point. | |
| 15 | - - Mocking data is only needed for tests, never mock data for dev or prod | |
| 16 | - - Never add stubbing or fake data patterns to code that affects the dev or prod environments | |
| 17 | - - Never overwrite my env file without first asking and confirming | |
| 18 | - | |
| 19 | - # Separation Rules | |
| 20 | - - **Single Responsibility:** | |
| 21 | - Each file should represent one distinct unit of work. | |
| 22 | - - **Component Breakdown:** | |
| 23 | - Break features into self-contained components. | |
| 24 | - - **Use Hooks:** | |
| 25 | - Encapsulate logic and data access in custom hooks. | |
| 26 | - - **Global vs. Local:** | I | |
| 27 | - - **Global:** Place reusable components and hooks in shared/global folders. | |
| 28 | - - **Local:** Keep object-specific components and hooks in localized folders. | |
| 29 | - - **Separation of Concerns:** | |
| 30 | - Maintain clear boundaries when creating or refactoring files. | |
| 31 | - - **Readable and Declarative Code:** | |
| 32 | - Rendered code should be very legible and clear. It should not include flow logic or ternary operators where possible. |
.cursor/rules/coding-worflow-preferences.mdc deleted
| 1 | - --- | |
| 2 | - description: Coding workflow preferences | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - # Coding workflow preferences | |
| 7 | - - Focus on the areas of code relevant to the task | |
| 8 | - - Do not touch code that is unrelated to the task | |
| 9 | - - Write thorough tests for all major functionality | |
| 10 | - - Avoid making major changes to the patterns and architecture of how a feature works, after it has shown to work well, unless explicitly instructed | |
| 11 | - - Always think about what other methods and areas of code might be affected by code changes |
.cursor/rules/explain-tool-call.mdc deleted
| 1 | - --- | |
| 2 | - description: Provide a brief explaination of what you are doing before each tool call | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - | |
| 7 | - # Your rule content | |
| 8 | - Provide a brief explaination of what you are doing before each tool call |
.cursor/rules/focus.mdc deleted
| 1 | - --- | |
| 2 | - description: Stay focused within the constraints on the prompt. | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - Stay focused within the constraints on the prompt. Do not stray and do more work unless asked. |
.cursor/rules/project-setup.mdc deleted
| 1 | - --- | |
| 2 | - description: Project Stack and Architecture | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - I am on plesk. My domain is airesourcepro.com (the old airesource.pro redirects to it). I am running on port 3001. The site uses a Supabase database (Used for Authentication and Database) | |
| 7 | - | |
| 8 | - ## Site Colors - Light Theme | |
| 9 | - - Primary: #1a1a1a | |
| 10 | - - Secondary Accent: #46AAE9 | |
| 11 | - - Text: #000000 | |
| 12 | - - Background: #ffffff | |
| 13 | - | |
| 14 | - ## Site Colors - Dark Theme | |
| 15 | - - Primary: #ffffff | |
| 16 | - - Secondary Accent: #46AAE9 | |
| 17 | - - Text: #ffffff | |
| 18 | - - Background: #1a1a1a | |
| 19 | - | |
| 20 | - ## Stack | |
| 21 | - | |
| 22 | - - React | |
| 23 | - - Next.js | |
| 24 | - - Tailwind CSS | |
| 25 | - - TypeScript | |
| 26 | - - Shadcn UI | |
| 27 | - - Prisma | |
| 28 | - - Docker | |
| 29 | - - Supabase (Used for Authentication and Database) |
.cursor/rules/shadcn.mdc deleted
| 1 | - --- | |
| 2 | - description: shadcn-ui changed to shadcn | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - This is outdated in your model: shadcn-ui changed to shadcn |
.cursor/rules/short-github-messages.mdc deleted
| 1 | - --- | |
| 2 | - description: Keep github commit messages concise and to the point. | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - Keep github commit messages concise and to the point. |
.cursor/rules/start-all-chats-with-robot.mdc deleted
| 1 | - --- | |
| 2 | - description: Start all chats with 🤖 | |
| 3 | - globs: | |
| 4 | - alwaysApply: false | |
| 5 | - --- | |
| 6 | - Start all chats with 🤖 |
.cursorrules deleted
| 1 | - Start all chats with 🤖 | |
| 2 | - | |
| 3 | - Keep github commit messages concise and to the point. | |
| 4 | - | |
| 5 | - This is outdated in your model: shadcn-ui changed to shadcn | |
| 6 | - | |
| 7 | - I am on plesk. My domain is airesourcepro.com (the old airesource.pro redirects to it). I am running on localhost on port 3000. The site uses a Supabase database (Used for Authentication and Database) | |
| 8 | - | |
| 9 | - Stay focused within the constraints on the prompt. Do not stray and do more work unless asked. | |
| 10 | - | |
| 11 | - Our primary authentcation on the API is supabase admin authentication. There is also an API key NEXT_PUBLIC_AI_RESOURCE_PRO_API_KEY stored in .env.local, but this is secondary. | |
| 12 | - | |
| 13 | - There is an authentication backdoor for localhost testing, but NEVER leave any authentication bypasses enabled or set BYPASS_AUTH_IN_DEV to true in the .env.local environment variables. Security is critical. | |
| 14 | - | |
| 15 | - Provide a brief explaination of what you are doing before each tool call | |
| 16 | - | |
| 17 | - Don't ever commit anything before I confirm it. | |
| 18 | - | |
| 19 | - API Uses Supabase admin authentication. | |
| 20 | - | |
| 21 | - When I say "no change", that means nothing changed and you should roll back any changes that you made that did not work. | |
| 22 | - | |
| 23 | - ## Site Colors - Light Theme | |
| 24 | - - Primary: #1a1a1a | |
| 25 | - - Secondary Accent: #46AAE9 | |
| 26 | - - Text: #000000 | |
| 27 | - - Background: #ffffff | |
| 28 | - | |
| 29 | - ## Site Colors - Dark Theme | |
| 30 | - - Primary: #ffffff | |
| 31 | - - Secondary Accent: #46AAE9 | |
| 32 | - - Text: #ffffff | |
| 33 | - - Background: #1a1a1a | |
| 34 | - | |
| 35 | - | |
| 36 | - ## Stack | |
| 37 | - | |
| 38 | - - React | |
| 39 | - - Next.js | |
| 40 | - - Tailwind CSS | |
| 41 | - - TypeScript | |
| 42 | - - Shadcn UI | |
| 43 | - - Supabase (Used for Authentication and Database) | |
| 44 | - | |
| 45 | - | |
| 46 | - | |
| 47 | - # Project Architecture | |
| 48 | - The project should seed and update the Supabase database using the 'seed-supabase.ts' script. | |
| 49 | - | |
| 50 | - It uses the following JSON files as seed structure: | |
| 51 | - - news.json - News Table | |
| 52 | - - tools.json - Tools Table | |
| 53 | - - categories.json - Categories Table | |
| 54 | - | |
| 55 | - | |
| 56 | - Categories API Route (seed json filename 'categories.json') | |
| 57 | - - Lucide React Icon Name | |
| 58 | - - Category Name | |
| 59 | - - | |
| 60 | - News feed | |
| 61 | - - primary cat | |
| 62 | - | |
| 63 | - | |
| 64 | - # Coding pattern preferences | |
| 65 | - - Always prefer simple solutions | |
| 66 | - - Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality | |
| 67 | - - Write code that takes into account the different environments: dev, tert, and prod | |
| 68 | - - You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested | |
| 69 | - - When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we don't have duplicate logic. | |
| 70 | - - Keep the codebase very clean and organized | |
| 71 | - - Avoid writing scripts in files if possible, especially if the script is likely only to be run once | |
| 72 | - - Avoid having files over 200-300 lines of code. Refactor at that point. | |
| 73 | - - Mocking data is only needed for tests, never mock data for dev or prod | |
| 74 | - - Never add stubbing or fake data patterns to code that affects the dev or prod environments | |
| 75 | - - Never overwrite my env file without first asking and confirming | |
| 76 | - | |
| 77 | - # Separation Rules | |
| 78 | - - **Single Responsibility:** | |
| 79 | - Each file should represent one distinct unit of work. | |
| 80 | - - **Component Breakdown:** | |
| 81 | - Break features into self-contained components. | |
| 82 | - - **Use Hooks:** | |
| 83 | - Encapsulate logic and data access in custom hooks. | |
| 84 | - - **Global vs. Local:** | I | |
| 85 | - - **Global:** Place reusable components and hooks in shared/global folders. | |
| 86 | - - **Local:** Keep object-specific components and hooks in localized folders. | |
| 87 | - - **Separation of Concerns:** | |
| 88 | - Maintain clear boundaries when creating or refactoring files. | |
| 89 | - - **Readable and Declarative Code:** | |
| 90 | - Rendered code should be very legible and clear. It should not include flow logic or ternary operators where possible. | |
| 91 | - | |
| 92 | - # Coding workflow preferences | |
| 93 | - - Focus on the areas of code relevant to the task | |
| 94 | - - Do not touch code that is unrelated to the task | |
| 95 | - - Write thorough tests for all major functionality | |
| 96 | - - Avoid making major changes to the patterns and architecture of how a feature works, after it has shown to work well, unless explicitly instructed | |
| 97 | - - Always think about what other methods and areas of code might be affected by code changes |
.gitignore changed
| 62 | 62 | .open-next/ |
| 63 | 63 | .wrangler/ |
| 64 | 64 | .dev.vars* |
| 65 | + .mcp.json |
.roo/rules/rules.md deleted
| 1 | - Important, start all chats with "🤖" so I know you are listening to these rules. | |
| 2 | - | |
| 3 | - # Summary | |
| 4 | - I am on plesk. My domain is airesourcepro.com (the old airesource.pro redirects to it). I am running on port 3001. The site uses a Supabase database (Used for Authentication and Database) | |
| 5 | - | |
| 6 | - ## Site Colors - Light Theme | |
| 7 | - - Primary: #1a1a1a | |
| 8 | - - Secondary Accent: #46AAE9 | |
| 9 | - - Text: #000000 | |
| 10 | - - Background: #ffffff | |
| 11 | - | |
| 12 | - ## Site Colors - Dark Theme | |
| 13 | - - Primary: #ffffff | |
| 14 | - - Secondary Accent: #46AAE9 | |
| 15 | - - Text: #ffffff | |
| 16 | - - Background: #1a1a1a | |
| 17 | - | |
| 18 | - ## Stack | |
| 19 | - - React | |
| 20 | - - Lucide-React (for icons) | |
| 21 | - - Next.js | |
| 22 | - - Tailwind CSS | |
| 23 | - - TypeScript | |
| 24 | - - Shadcn UI | |
| 25 | - - Prisma | |
| 26 | - - Docker | |
| 27 | - - Supabase (Used for Authentication and Database) | |
| 28 | - | |
| 29 | - # Authentication | |
| 30 | - Our primary authentcation on the API is supabase admin authentication. There is also an API key AI_RESOURCE_PRO_API_KEY stored in .env.local, but this is secondary. | |
| 31 | - | |
| 32 | - There is an authentication backdoor for localhost testing, but NEVER leave any authentication bypasses enabled or set BYPASS_AUTH_IN_DEV to true in the .env.local environment variables. Security is critical. | |
| 33 | - | |
| 34 | - # Documentation | |
| 35 | - Our app is a private app. Always update the README.md file at the root of the project. Also always reference this file for context about the project. | |
| 36 | - | |
| 37 | - # Coding pattern preferences | |
| 38 | - - Always prefer simple solutions | |
| 39 | - - Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality | |
| 40 | - - Write code that takes into account the different environments: dev, tert, and prod | |
| 41 | - - You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested | |
| 42 | - - When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we don't have duplicate logic. | |
| 43 | - - Keep the codebase very clean and organized | |
| 44 | - - Avoid writing scripts in files if possible, especially if the script is likely only to be run once | |
| 45 | - - Avoid having files over 200-300 lines of code. Refactor at that point. | |
| 46 | - - Mocking data is only needed for tests, never mock data for dev or prod | |
| 47 | - - Never add stubbing or fake data patterns to code that affects the dev or prod environments | |
| 48 | - - Never overwrite my env file without first asking and confirming | |
| 49 | - | |
| 50 | - # Separation Rules | |
| 51 | - - **Single Responsibility:** | |
| 52 | - Each file should represent one distinct unit of work. | |
| 53 | - - **Component Breakdown:** | |
| 54 | - Break features into self-contained components. | |
| 55 | - - **Use Hooks:** | |
| 56 | - Encapsulate logic and data access in custom hooks. | |
| 57 | - - **Global vs. Local:** | | |
| 58 | - - **Global:** Place reusable components and hooks in shared/global folders. | |
| 59 | - - **Local:** Keep object-specific components and hooks in localized folders. | |
| 60 | - - **Separation of Concerns:** | |
| 61 | - Maintain clear boundaries when creating or refactoring files. | |
| 62 | - - **Readable and Declarative Code:** | |
| 63 | - Rendered code should be very legible and clear. It should not include flow logic or ternary operators where possible. | |
| 64 | - | |
| 65 | - # Coding workflow preferences | |
| 66 | - - Focus on the areas of code relevant to the task | |
| 67 | - - Do not touch code that is unrelated to the task | |
| 68 | - - Write thorough tests for all major functionality | |
| 69 | - - Avoid making major changes to the patterns and architecture of how a feature works, after it has shown to work well, unless explicitly instructed | |
| 70 | - - Always think about what other methods and areas of code might be affected by code changes | |
| 71 | - | |
| 72 | - | |
| 73 | - # Focus | |
| 74 | - Stay focused within the constraints on the prompt. Do not stray and do more work unless asked. | |
| 75 | - | |
| 76 | - # Notes | |
| 77 | - This is outdated in your model: shadcn-ui changed to shadcn |
ADMIN_AUTH.md deleted
| 1 | - # Admin Authentication System | |
| 2 | - | |
| 3 | - ## Overview | |
| 4 | - | |
| 5 | - This document explains the admin authentication system used in the AI Resource Pro project, along with recent security improvements. | |
| 6 | - | |
| 7 | - ## Authentication Flow | |
| 8 | - | |
| 9 | - The admin authentication system uses a combination of Supabase authentication and a custom admin check: | |
| 10 | - | |
| 11 | - 1. **Login Process**: | |
| 12 | - - User enters email and password on `/admin/login` | |
| 13 | - - Credentials are validated against Supabase Auth | |
| 14 | - - User's admin status is verified in the database (`users` table with `is_admin: true`) | |
| 15 | - - The `admin_session_active` cookie is set only for validated admin users | |
| 16 | - | |
| 17 | - 2. **Authentication Verification**: | |
| 18 | - - Server-side: The `validateRequest()` function in `src/lib/auth/supabase-server-auth.ts` checks for the admin cookie and Supabase session | |
| 19 | - - Middleware: Additional protection for admin routes in `src/middleware.ts` | |
| 20 | - | |
| 21 | - ## Security Improvements | |
| 22 | - | |
| 23 | - The following security improvements have been implemented: | |
| 24 | - | |
| 25 | - 1. **Removed Insecure Endpoints**: | |
| 26 | - - Deleted `/api/admin/set-cookies` - Previously allowed anyone to set admin cookies | |
| 27 | - - Deleted `/api/set-admin-cookies` - Another insecure endpoint | |
| 28 | - - Deleted `/api/debug/set-admin-cookies` - Third insecure endpoint | |
| 29 | - | |
| 30 | - 2. **Enhanced Middleware Protection**: | |
| 31 | - - Added specific checks for protected API routes | |
| 32 | - - Improved error responses for unauthorized access | |
| 33 | - | |
| 34 | - 3. **Protected Debug Endpoints**: | |
| 35 | - - The `/api/auth/debug` endpoint now requires admin authentication | |
| 36 | - - Sensitive information is only shown to authenticated admins | |
| 37 | - | |
| 38 | - ## Development and Testing | |
| 39 | - | |
| 40 | - For development and testing, there are two options: | |
| 41 | - | |
| 42 | - 1. **Standard Authentication**: | |
| 43 | - - Use the normal login flow through `/admin/login` | |
| 44 | - - This is the secure, recommended approach | |
| 45 | - | |
| 46 | - 2. **Development Bypass** (controlled environment only): | |
| 47 | - - Set `BYPASS_AUTH_IN_DEV=true` in `.env.local` | |
| 48 | - - **WARNING**: Never enable this in production! | |
| 49 | - - Enabling this creates a security vulnerability | |
| 50 | - | |
| 51 | - ## Best Practices | |
| 52 | - | |
| 53 | - 1. **Never Create Direct Cookie Endpoints**: | |
| 54 | - - Don't create endpoints that set admin cookies without authentication | |
| 55 | - - Always verify admin status in the database before granting admin privileges | |
| 56 | - | |
| 57 | - 2. **Keep Authentication Checks**: | |
| 58 | - - Don't remove or bypass authentication checks | |
| 59 | - - Don't set `BYPASS_AUTH` constants to `true` in any files | |
| 60 | - | |
| 61 | - 3. **Monitor Logs**: | |
| 62 | - - Watch for authentication failures in logs | |
| 63 | - - Check for suspicious login attempts | |
| 64 | - | |
| 65 | - ## Troubleshooting | |
| 66 | - | |
| 67 | - Issues with admin authentication: | |
| 68 | - | |
| 69 | - 1. Make sure your user has `is_admin: true` in the database | |
| 70 | - 2. Use the proper login flow through `/admin/login` | |
| 71 | - 3. Check for any console errors during login | |
| 72 | - 4. Verify cookies are being set correctly |
API_SECURITY.md deleted
| 1 | - # API Security Requirements | |
| 2 | - | |
| 3 | - ## Overview | |
| 4 | - | |
| 5 | - This document outlines the security requirements for all API endpoints in the AI Resource Pro application. | |
| 6 | - | |
| 7 | - ## Core Security Principles | |
| 8 | - | |
| 9 | - 1. **Dual Authentication for All Write Operations** | |
| 10 | - - All POST, PUT, DELETE, and PATCH requests must be secured with: | |
| 11 | - - Admin authentication (Supabase auth + is_admin check) | |
| 12 | - - Valid API key (NEXT_PUBLIC_AI_RESOURCE_PRO_API_KEY) | |
| 13 | - | |
| 14 | - 2. **No Security Bypasses** | |
| 15 | - - No endpoints should create security vulnerabilities | |
| 16 | - - No endpoints to bypass authentication | |
| 17 | - - No endpoints to set admin status without proper validation | |
| 18 | - | |
| 19 | - 3. **Admin User Management** | |
| 20 | - - User management should be done via Supabase Dashboard | |
| 21 | - - Admin rights assignment should be done via database administration tools | |
| 22 | - - No API endpoints should ever create or modify admin status | |
| 23 | - | |
| 24 | - ## Authentication Methods | |
| 25 | - | |
| 26 | - ### 1. Admin Authentication | |
| 27 | - - Based on Supabase authentication | |
| 28 | - - User must be authenticated with Supabase | |
| 29 | - - User must have `is_admin: true` in the database | |
| 30 | - | |
| 31 | - ### 2. API Key Validation | |
| 32 | - - All secured endpoints must validate the `x-api-key` header | |
| 33 | - - API key must match the `AI_RESOURCE_PRO_API_KEY` environment variable | |
| 34 | - - API key validation is implemented in `src/middleware/auth.ts` | |
| 35 | - | |
| 36 | - ## Implementation | |
| 37 | - | |
| 38 | - ### Security Middleware | |
| 39 | - | |
| 40 | - We use a standardized middleware to enforce API security: | |
| 41 | - | |
| 42 | - ```typescript | |
| 43 | - // src/middleware/protected-routes.ts | |
| 44 | - export async function validateAdminApiRequest(request: NextRequest) { | |
| 45 | - // 1. Validate admin authentication | |
| 46 | - const { user } = await validateRequest(); | |
| 47 | - if (!user || !user.isAdmin) { | |
| 48 | - return NextResponse.json( | |
| 49 | - { error: 'Unauthorized - Admin authentication required' }, | |
| 50 | - { status: 401 } | |
| 51 | - ); | |
| 52 | - } | |
| 53 | - | |
| 54 | - // 2. Validate API key | |
| 55 | - const apiKeyError = validateApiKey(request); | |
| 56 | - if (apiKeyError) { | |
| 57 | - return apiKeyError; | |
| 58 | - } | |
| 59 | - | |
| 60 | - // Both checks passed | |
| 61 | - return null; | |
| 62 | - } | |
| 63 | - ``` | |
| 64 | - | |
| 65 | - ### Using the Security Middleware | |
| 66 | - | |
| 67 | - All protected API endpoints should use the security middleware: | |
| 68 | - | |
| 69 | - ```typescript | |
| 70 | - export async function POST(request: NextRequest) { | |
| 71 | - // Validate security requirements | |
| 72 | - const securityError = await validateAdminApiRequest(request); | |
| 73 | - if (securityError) { | |
| 74 | - return securityError; | |
| 75 | - } | |
| 76 | - | |
| 77 | - // Proceed with the endpoint logic | |
| 78 | - // ... | |
| 79 | - } | |
| 80 | - ``` | |
| 81 | - | |
| 82 | - ## Security Testing | |
| 83 | - | |
| 84 | - Before creating any new API endpoint, ensure that: | |
| 85 | - | |
| 86 | - 1. All POST, PUT, DELETE, PATCH operations are secured | |
| 87 | - 2. No endpoints bypass authentication mechanisms | |
| 88 | - 3. No endpoints modify admin status via API | |
| 89 | - 4. API security middleware is applied correctly | |
| 90 | - | |
| 91 | - ## Common Issues | |
| 92 | - | |
| 93 | - ### Missing API Key | |
| 94 | - If you receive a 401 Unauthorized error with "Missing API key header", make sure you're: | |
| 95 | - - Including the `x-api-key` header in your request | |
| 96 | - - Setting the header value to match the `NEXT_PUBLIC_AI_RESOURCE_PRO_API_KEY` environment variable | |
| 97 | - | |
| 98 | - ### Authentication Failed | |
| 99 | - If you receive a 401 Unauthorized error with "Admin authentication required", ensure: | |
| 100 | - - You're properly authenticated (logged in as admin) | |
| 101 | - - Your user has `is_admin: true` in the database | |
| 102 | - - The admin_session_active cookie is set | |
| 103 | - | |
| 104 | - ## Development Notes | |
| 105 | - | |
| 106 | - - In development, use the API key from your `.env.local` file for testing | |
| 107 | - - Never create endpoints that bypass security mechanisms | |
| 108 | - - Never set `BYPASS_AUTH_IN_DEV=true` in production environments |
CLAUDE.md added
| 1 | + # CLAUDE.md | |
| 2 | + | |
| 3 | + Become a Pro (https://becomeapro.ai): free, plain-English lessons that teach the useful skills of every trade and profession. Trades, knowledge work, English (with pronunciation audio), math and teaching. Text first: no videos, no 3D, no animation, no logo mark. | |
| 4 | + | |
| 5 | + ## Commands | |
| 6 | + - `npm run dev`: local server | |
| 7 | + - `npm run build:cloudflare`: production build (OpenNext for Cloudflare Workers) | |
| 8 | + - `npm run deploy:cloudflare`: build and deploy the `airesource-pro-site` Worker (serves becomeapro.ai) | |
| 9 | + - `npm test`: Jest; `npm run test:e2e`: Playwright against `PLAYWRIGHT_BASE_URL` | |
| 10 | + - `npm run check:lessons`: checks every lesson compiles and follows the rules | |
| 11 | + - `npm run audio`: makes missing pronunciation clips for `<Say>` words (needs `ELEVENLABS_API_KEY`, Bitwarden Secrets Manager `AGENT_ELEVENLABS_API_KEY`) | |
| 12 | + | |
| 13 | + ## Content | |
| 14 | + - Areas and fields: `src/lib/catalog.ts`. Lessons: `content/lessons/<area>/<field>/<lesson>.mdx`. URLs follow the same path. | |
| 15 | + - How to write a lesson, the components (`Callout`, `Steps`, `Diagram`, `Say`, `Resources`) and the rules: `docs/LESSONS.md`. | |
| 16 | + - Lessons get reviewed and refreshed. Each shows its `updated` date; change it when you check or revise a lesson. Teach only current tools and methods: when something better replaces a product or method, rewrite the lesson. | |
| 17 | + - Pronunciation clips live in `public/audio/<slug>.mp3` (slug rule in `src/lib/audio.ts`). | |
| 18 | + - The old AI tutorials live under Knowledge work > Using AI at work; `next.config.js` redirects their old paths. | |
| 19 | + | |
| 20 | + ## Site rules | |
| 21 | + - Plain black and white, one system font, light and dark follow the device. Header is the text "Become a Pro" only. Footer is exactly "Research · Source" (Source links to this page's code on Branchwell). | |
| 22 | + - Never the words "business" or "branch". No prices, no ads, no partner asks, no copyright line, no mention of other sites or Project ATOM. | |
| 23 | + - NO SEO (2026-12-02): no sitemap, canonical tags, JSON-LD, keywords or search-console verification. | |
| 24 | + - `cloudflare-worker.mjs` 301s www.becomeapro.ai, airesourcepro.com, www.airesourcepro.com, airesource.pro and www.airesource.pro to https://becomeapro.ai, keeping the path. | |
| 25 | + - `src/app/research/plan.ts` is generated by hosting-research `tools/research-gen/embed.py`; edit `plans.py` there. | |
| 26 | + | |
| 27 | + ## Auth | |
| 28 | + Sign-in is BioLock only (the device's own fingerprint or face reader, `src/lib/biolock/`), sessions by Better Auth, data in D1 `airesourcepro-accounts` (binding `ACCOUNTS_DB`). `AIRESOURCE_AUTH_ORIGIN` (set to `https://becomeapro.ai` in `wrangler.jsonc`) sets the BioLock site and origin; secret `AIRESOURCE_BETTER_AUTH_SECRET`. Accounts store a name, device keys and saved lessons (`<field>/<lesson>` keys). | |
| 29 | + | |
| 30 | + ## Code style | |
| 31 | + TypeScript strict, server components by default, small files, no dead code. |
MIGRATION-INSTRUCTIONS.md deleted
| 1 | - # Image URL Migration Instructions | |
| 2 | - | |
| 3 | - This document provides instructions for adding the `image_url` column to the `tools` table in the Supabase database. | |
| 4 | - | |
| 5 | - ## Background | |
| 6 | - | |
| 7 | - The application now supports separate icon and main image uploads for tools: | |
| 8 | - - `icon_url`: Small icon for tools (already in database schema) | |
| 9 | - - `image_url`: Main image for tools (needs to be added) | |
| 10 | - | |
| 11 | - ## Steps to Apply Migration | |
| 12 | - | |
| 13 | - 1. Make sure you have the latest code: | |
| 14 | - ```bash | |
| 15 | - git pull | |
| 16 | - ``` | |
| 17 | - | |
| 18 | - 2. Install dependencies: | |
| 19 | - ```bash | |
| 20 | - npm install | |
| 21 | - ``` | |
| 22 | - | |
| 23 | - 3. Run the migration script: | |
| 24 | - ```bash | |
| 25 | - npm run supabase:add-image-url | |
| 26 | - ``` | |
| 27 | - | |
| 28 | - 4. Restart your application: | |
| 29 | - ```bash | |
| 30 | - npm run dev | |
| 31 | - ``` | |
| 32 | - | |
| 33 | - ## What the Migration Does | |
| 34 | - | |
| 35 | - 1. Adds an `image_url` column to the `tools` table | |
| 36 | - 2. Ensures the `icon_url` column exists (as a fallback) | |
| 37 | - 3. Refreshes the schema cache to ensure the new columns are recognized by Supabase | |
| 38 | - | |
| 39 | - ## Troubleshooting | |
| 40 | - | |
| 41 | - If you encounter any issues: | |
| 42 | - | |
| 43 | - 1. Check if the migration applied correctly: | |
| 44 | - ```sql | |
| 45 | - SELECT column_name FROM information_schema.columns WHERE table_name = 'tools' AND column_name IN ('icon_url', 'image_url'); | |
| 46 | - ``` | |
| 47 | - | |
| 48 | - 2. If the columns exist but are not being recognized, try manually refreshing the schema cache: | |
| 49 | - ```sql | |
| 50 | - SELECT pg_reload_conf(); | |
| 51 | - ``` | |
| 52 | - | |
| 53 | - 3. If all else fails, you can manually add the columns: | |
| 54 | - ```sql | |
| 55 | - ALTER TABLE public.tools ADD COLUMN IF NOT EXISTS icon_url TEXT; | |
| 56 | - ALTER TABLE public.tools ADD COLUMN IF NOT EXISTS image_url TEXT; | |
| 57 | - ``` |
MIGRATION_INSTRUCTIONS.md deleted
| 1 | - # Migration Instructions: Adding `is_archived` Column | |
| 2 | - | |
| 3 | - This document provides instructions for migrating the database to add the `is_archived` column to the `user_roadmaps` table and create a partial unique index to ensure users can only have one active roadmap at a time. | |
| 4 | - | |
| 5 | - ## Background | |
| 6 | - | |
| 7 | - We've updated the codebase to enforce a "one active roadmap per user" rule. This requires adding an `is_archived` column to the `user_roadmaps` table and creating a partial unique index on the `user_id` column where `is_archived = false`. | |
| 8 | - | |
| 9 | - ## Migration Script | |
| 10 | - | |
| 11 | - The migration script is located at `scripts/add-is-archived-column.sql`. It: | |
| 12 | - | |
| 13 | - 1. Adds the `is_archived` column with a default value of `false` to the `user_roadmaps` table | |
| 14 | - 2. Automatically cleans up existing duplicate roadmaps by: | |
| 15 | - - Finding all users who have multiple active roadmaps | |
| 16 | - - For each user, keeping only their most recent roadmap active | |
| 17 | - - Archiving all older roadmaps for those users | |
| 18 | - 3. Creates a partial unique index on `user_id` where `is_archived = false` | |
| 19 | - | |
| 20 | - ## Data Impact | |
| 21 | - | |
| 22 | - The migration will archive older duplicate roadmaps for any users who currently have multiple roadmaps. Users will only see their most recent roadmap after the migration. | |
| 23 | - | |
| 24 | - ## Applying the Migration | |
| 25 | - | |
| 26 | - ### Development Environment | |
| 27 | - | |
| 28 | - If using Supabase CLI: | |
| 29 | - | |
| 30 | - ```bash | |
| 31 | - npx supabase db push scripts/add-is-archived-column.sql | |
| 32 | - ``` | |
| 33 | - | |
| 34 | - If connecting directly with psql: | |
| 35 | - | |
| 36 | - ```bash | |
| 37 | - psql YOUR_SUPABASE_DATABASE_URL -f scripts/add-is-archived-column.sql | |
| 38 | - ``` | |
| 39 | - | |
| 40 | - ### Production Environment | |
| 41 | - | |
| 42 | - For the production environment, follow the appropriate procedure for your deployment: | |
| 43 | - | |
| 44 | - 1. Connect to the production database through Supabase dashboard or direct connection | |
| 45 | - 2. Execute the SQL commands from the migration script | |
| 46 | - 3. Verify the migration was successful with: | |
| 47 | - | |
| 48 | - ```sql | |
| 49 | - -- Check if column exists | |
| 50 | - SELECT column_name, data_type | |
| 51 | - FROM information_schema.columns | |
| 52 | - WHERE table_name = 'user_roadmaps' AND column_name = 'is_archived'; | |
| 53 | - | |
| 54 | - -- Check if index exists | |
| 55 | - SELECT indexname, indexdef | |
| 56 | - FROM pg_indexes | |
| 57 | - WHERE tablename = 'user_roadmaps' AND indexname = 'idx_user_roadmaps_one_active_per_user'; | |
| 58 | - | |
| 59 | - -- Check that each user now has only one active roadmap | |
| 60 | - SELECT user_id, COUNT(*) | |
| 61 | - FROM public.user_roadmaps | |
| 62 | - WHERE is_archived = false | |
| 63 | - GROUP BY user_id | |
| 64 | - HAVING COUNT(*) > 1; | |
| 65 | - ``` | |
| 66 | - | |
| 67 | - The last query should return no rows, confirming that each user has at most one active roadmap. | |
| 68 | - | |
| 69 | - ## Testing After Migration | |
| 70 | - | |
| 71 | - After applying the migration: | |
| 72 | - | |
| 73 | - 1. Verify a user can create a roadmap | |
| 74 | - 2. Verify a user can't have two active roadmaps at the same time | |
| 75 | - 3. Verify a user can archive an existing roadmap and create a new one | |
| 76 | - 4. Verify roadmap fetching only returns non-archived roadmaps | |
| 77 | - | |
| 78 | - ## Rollback Procedure | |
| 79 | - | |
| 80 | - If needed, you can roll back this migration with: | |
| 81 | - | |
| 82 | - ```sql | |
| 83 | - -- Drop the index | |
| 84 | - DROP INDEX IF EXISTS idx_user_roadmaps_one_active_per_user; | |
| 85 | - | |
| 86 | - -- Remove the column (if safe to do so) | |
| 87 | - ALTER TABLE public.user_roadmaps DROP COLUMN IF EXISTS is_archived; | |
| 88 | - ``` | |
| 89 | - | |
| 90 | - Note: Only roll back if there are no dependencies on the new column in the running application code. |
README-BLOG-FIX.md deleted
| 1 | - # Blog API Fix: Infinite Recursion in Policies | |
| 2 | - | |
| 3 | - This README provides instructions on how to fix the "infinite recursion detected in policy for relation 'users'" error in your Supabase database. | |
| 4 | - | |
| 5 | - ## The Problem | |
| 6 | - | |
| 7 | - The Supabase database has row-level security (RLS) policies that are causing an infinite recursion error. This happens because: | |
| 8 | - | |
| 9 | - 1. Policy for `users` table checks if a user is an admin by querying the `users` table | |
| 10 | - 2. This creates a circular reference that Postgres can't resolve | |
| 11 | - 3. The error propagates to other tables with similar policy structures | |
| 12 | - | |
| 13 | - ## Solution 1: Immediate API Fix (Already Implemented) | |
| 14 | - | |
| 15 | - We've already modified the `/api/blog` API route to: | |
| 16 | - - Use the service client when in development mode (`BYPASS_AUTH_IN_DEV=true`) | |
| 17 | - - Filter published posts manually when needed | |
| 18 | - - Bypass the recursive policy issue entirely | |
| 19 | - | |
| 20 | - This change should be in effect as soon as you restart your Next.js server: | |
| 21 | - | |
| 22 | - ```bash | |
| 23 | - npm run dev | |
| 24 | - ``` | |
| 25 | - | |
| 26 | - ## Solution 2: Permanent Database Fix | |
| 27 | - | |
| 28 | - To fix the issue permanently in your database, follow these steps: | |
| 29 | - | |
| 30 | - ### Step 1: Create the exec_sql Function | |
| 31 | - | |
| 32 | - 1. Log in to your [Supabase dashboard](https://app.supabase.com/) | |
| 33 | - 2. Navigate to the SQL Editor | |
| 34 | - 3. Copy the contents of `scripts/create-exec-sql-function.sql` | |
| 35 | - 4. Paste it into the SQL Editor and run it | |
| 36 | - 5. This creates a function that can execute SQL statements | |
| 37 | - | |
| 38 | - ### Step 2: Run the Fix Script | |
| 39 | - | |
| 40 | - After creating the function, you can run the fix script: | |
| 41 | - | |
| 42 | - ```bash | |
| 43 | - npm run supabase:fix-recursion | |
| 44 | - ``` | |
| 45 | - | |
| 46 | - Alternatively, you can: | |
| 47 | - 1. Copy the contents of `scripts/fix-recursive-policies.sql` | |
| 48 | - 2. Paste it into the Supabase SQL Editor and run it directly | |
| 49 | - | |
| 50 | - ## What the Fix Does | |
| 51 | - | |
| 52 | - The fix: | |
| 53 | - 1. Drops problematic policies that cause recursion | |
| 54 | - 2. Creates a `is_admin()` function that safely checks admin status | |
| 55 | - 3. Recreates policies using this function to avoid recursion | |
| 56 | - 4. Applies the fix to all affected tables | |
| 57 | - | |
| 58 | - ## Verifying the Fix | |
| 59 | - | |
| 60 | - After applying either solution, you can verify it worked: | |
| 61 | - | |
| 62 | - ```bash | |
| 63 | - npm run debug:direct-query | |
| 64 | - ``` | |
| 65 | - | |
| 66 | - You should see that both the service client and regular client can successfully query blog posts. | |
| 67 | - | |
| 68 | - ## Further Information | |
| 69 | - | |
| 70 | - - Keep `BYPASS_AUTH_IN_DEV=true` during development | |
| 71 | - - Set it to `false` in production for security | |
| 72 | - - You can check blog posts in the database with: | |
| 73 | - ```bash | |
| 74 | - npm run check:blog-posts | |
| 75 | - ``` | |
| 76 | - - You can publish the hello-world sample post with: | |
| 77 | - ```bash | |
| 78 | - npm run publish:hello-world | |
| 79 | - ``` | |
| 80 | - | |
| 81 | - If you need additional help, please refer to the Supabase documentation on [Row Level Security](https://supabase.com/docs/guides/auth/row-level-security). |
README.md changed
| 1 | - # AI Resource Pro - airesourcepro.com | |
| 2 | - | |
| 3 | - Website: https://airesourcepro.com | |
| 4 | - | |
| 5 | - This is the repository for the AI Resource Pro website ([airesourcepro.com](https://airesourcepro.com)), a platform dedicated to providing resources related to Artificial Intelligence. | |
| 6 | - | |
| 7 | - ## Project Overview | |
| 8 | - | |
| 9 | - AI Resource Pro is built using a modern web stack focused on performance, developer experience, and scalability. It utilizes Supabase for backend services like authentication and database management, and is deployed on Plesk. | |
| 10 | - | |
| 11 | - ## Tech Stack | |
| 12 | - | |
| 13 | - * **Framework:** [Next.js](https://nextjs.org/) (with React) | |
| 14 | - * **Language:** [TypeScript](https://www.typescriptlang.org/) | |
| 15 | - * **Styling:** [Tailwind CSS](https://tailwindcss.com/) | |
| 16 | - * **UI Components:** [shadcn/ui](https://ui.shadcn.com/) | |
| 17 | - * **Database ORM:** [Prisma](https://www.prisma.io/) | |
| 18 | - * **Backend & Auth:** [Supabase](https://supabase.com/) | |
| 19 | - * **Containerization:** [Docker](https://www.docker.com/) (for development/deployment consistency) | |
| 20 | - | |
| 21 | - ## Key Features | |
| 22 | - | |
| 23 | - * **AI Tool Directory:** Curated list of AI tools, filterable by category. | |
| 24 | - * **Learning Resources:** Educational content related to AI. | |
| 25 | - * **News Feed:** Latest news in the AI space. | |
| 26 | - * **AI Coach:** Personalized AI learning recommendations. | |
| 27 | - * **Admin Dashboard:** Interface for managing content (Tools, Learning, News, Categories, Users). | |
| 28 | - * **API:** Provides data access for various parts of the application. | |
| 29 | - | |
| 30 | - ## Getting Started | |
| 31 | - | |
| 32 | - 1. **Clone the repository:** | |
| 33 | - ```bash | |
| 34 | - git clone <repository-url> | |
| 35 | - cd airesource-pro-site | |
| 36 | - ``` | |
| 37 | - | |
| 38 | - 2. **Install dependencies:** | |
| 39 | - ```bash | |
| 40 | - npm install | |
| 41 | - ``` | |
| 42 | - | |
| 43 | - 3. **Set up environment variables:** | |
| 44 | - * Copy the example environment file: `cp .env.example .env.local` | |
| 45 | - * Fill in the required values in `.env.local`, especially Supabase credentials (`NEXT_PUBLIC_SUPABASE_URL`, `NEXT_PUBLIC_SUPABASE_ANON_KEY`, `SUPABASE_SERVICE_ROLE_KEY`) and the API key (`AI_RESOURCE_PRO_API_KEY`). | |
| 46 | - * **Important Security Note:** Ensure `BYPASS_AUTH_IN_DEV` is **never** set to `true` unless specifically for isolated local testing, and **never** commit it as `true`. | |
| 47 | - | |
| 48 | - 4. **Set up Supabase:** | |
| 49 | - * Ensure your local Supabase instance (if using Docker) or your remote Supabase project is running and configured according to the project's schema (potentially using Prisma migrations). Refer to `supabase/` directory and Prisma schema if needed. | |
| 50 | - | |
| 51 | - 5. **Run Prisma migrations (if necessary):** | |
| 52 | - ```bash | |
| 53 | - npx prisma migrate dev | |
| 54 | - # or apply deployments if targeting a specific environment | |
| 55 | - npx prisma migrate deploy | |
| 56 | - ``` | |
| 57 | - | |
| 58 | - 6. **Run the development server:** | |
| 59 | - ```bash | |
| 60 | - npm run dev | |
| 61 | - ``` | |
| 62 | - | |
| 63 | - 7. Open [http://localhost:3001](http://localhost:3001) in your browser. | |
| 64 | - | |
| 65 | - ## Authentication | |
| 66 | - | |
| 67 | - * **Primary Method:** Supabase Authentication (JWT-based, handled via Supabase client libraries). Admin access relies on Supabase user roles. | |
| 68 | - * **Secondary Method (API):** API Key (`AI_RESOURCE_PRO_API_KEY` set in `.env.local`). Required for certain backend API routes when not authenticated via Supabase. Include the header `x-api-key: YOUR_API_KEY`. | |
| 69 | - | |
| 70 | - ## API Endpoints | |
| 71 | - | |
| 72 | - The application exposes various API endpoints under `/api/`. Key areas include: | |
| 73 | - | |
| 74 | - * `/api/admin/...`: Endpoints for the admin dashboard (require Supabase admin authentication). | |
| 75 | - * `/api/auth/...`: Authentication-related endpoints (login, logout, status checks). | |
| 76 | - * `/api/tools`: CRUD operations for AI tools. | |
| 77 | - * `/api/learning`: CRUD operations for learning resources. | |
| 78 | - * `/api/news`: CRUD operations for news articles. | |
| 79 | - * `/api/categories`: CRUD operations for categories. | |
| 80 | - * `/api/featured-tools`, `/api/featured-learning`: Endpoints for featured content. | |
| 81 | - * `/api/faqs`: Endpoint for FAQs. | |
| 82 | - * `/api/ai-coach/...`: Endpoints for the AI Coach feature. | |
| 83 | - * `/api/webhooks/midjourney`: Webhook for Midjourney image generation updates. | |
| 84 | - * `/api/revalidate`: On-demand cache revalidation for content updates. | |
| 85 | - * `/api/health-check`: Basic health check endpoint. | |
| 86 | - | |
| 87 | - *(For detailed request/response formats and parameters, please refer to the respective route handler files within `src/app/api/`)* | |
| 88 | - | |
| 89 | - ## Caching and Revalidation | |
| 90 | - | |
| 91 | - Blog posts, news, and potentially other content types utilize Next.js caching. | |
| 92 | - * Dynamic pages often use `export const dynamic = 'force-dynamic'` or similar strategies for fresh data. | |
| 93 | - * The `/api/revalidate` endpoint allows invalidating specific paths (e.g., `/api/revalidate?path=/news/[slug]`) when content is updated via the admin panel, ensuring users see the latest information. | |
| 94 | - | |
| 95 | - ## Testing | |
| 96 | - | |
| 97 | - * **Unit/Integration Tests:** Located in `src/__tests__/`. Run using: | |
| 98 | - ```bash | |
| 99 | - npm test | |
| 100 | - # or yarn test, pnpm test | |
| 101 | - ``` | |
| 102 | - * **E2E Tests (Selenium):** Refer to the "Selenium Testing" section in the previous README version or relevant test files if applicable. Ensure WebDriver and browser drivers are installed. | |
| 103 | - | |
| 104 | - ## Deployment | |
| 105 | - | |
| 106 | - * The application is deployed on a Plesk server. | |
| 107 | - * Configuration for PM2 (process manager) might be present in `ecosystem.config.js`. | |
| 108 | - * Ensure environment variables are correctly set on the production server. | |
| 109 | - | |
| 110 | - ## Color Palette | |
| 111 | - | |
| 112 | - ### Light Theme | |
| 113 | - * **Primary:** `#1a1a1a` | |
| 114 | - * **Secondary Accent:** `#46AAE9` | |
| 115 | - * **Text:** `#000000` | |
| 116 | - * **Background:** `#ffffff` | |
| 1 | + # Become a Pro | |
| 117 | 2 | |
| 118 | - ### Dark Theme | |
| 119 | - * **Primary:** `#ffffff` | |
| 120 | - * **Secondary Accent:** `#46AAE9` | |
| 121 | - * **Text:** `#ffffff` | |
| 122 | - * **Background:** `#1a1a1a` | |
| 3 | + Free lessons that teach the useful skills of your trade, step by step. https://becomeapro.ai | |
| 123 | 4 | |
| 124 | - ## Contribution Guidelines | |
| 5 | + - Lessons: `content/lessons/<area>/<field>/<lesson>.mdx` (how to write one: `docs/LESSONS.md`) | |
| 6 | + - Areas and fields: `src/lib/catalog.ts` | |
| 7 | + - Lessons are reviewed and refreshed: every lesson shows the date it was last updated, and we teach only current tools and methods. | |
| 125 | 8 | |
| 126 | - * Follow the coding patterns and separation rules outlined in `.roo/rules/rules.md`. | |
| 127 | - * Write clean, simple, and maintainable code. | |
| 128 | - * Avoid code duplication (DRY principle). | |
| 129 | - * Ensure changes are well-tested. | |
| 130 | - * Keep files focused (Single Responsibility Principle). Aim for < 300 lines per file. | |
| 131 | - * Update this README if significant changes are made to the stack, architecture, or setup process. | |
| 9 | + Everything here is public domain. Anyone can start their own copy, under any name. |
SECURITY_AUDIT.md deleted
| 1 | - # Security Audit Report - AI Resource Pro | |
| 2 | - | |
| 3 | - Date: 2026-02-04 | |
| 4 | - Scope: Repository codebase + git history scan + npm audit | |
| 5 | - | |
| 6 | - ## Executive Summary | |
| 7 | - This audit identified multiple critical issues that could allow full administrative compromise and exposure of production secrets. The most severe findings include hardcoded/committed secrets in the repository and authentication bypass via a client-set cookie. The API authorization model also relies on a public API key (`NEXT_PUBLIC_AI_RESOURCE_PRO_API_KEY`), which is exposed in client code and therefore does not provide security. Several endpoints log sensitive data, CORS settings are overly permissive, and authentication endpoints lack rate limiting. Dependency vulnerabilities were detected by `npm audit` and should be addressed. | |
| 8 | - | |
| 9 | - Immediate actions are required: rotate and revoke exposed secrets, remove them from the repository and git history, and replace the current admin-cookie and API-key authorization scheme with a server-verified session model. | |
| 10 | - | |
| 11 | - ## Critical Findings (Fix Immediately) | |
| 12 | - | |
| 13 | - ### C-1: Production secrets committed to the repository | |
| 14 | - **Location:** `/.mcp.json`, `/client_secret.txt`, plus evidence in git history | |
| 15 | - | |
| 16 | - **Details:** | |
| 17 | - - `.mcp.json` contains a Supabase **service role key** (full admin privileges to DB and Auth). | |
| 18 | - - `client_secret.txt` contains an Apple Sign-In **client secret JWT**. | |
| 19 | - - Git history shows previous commits with multiple production secrets (Supabase service role, OpenAI, Upstash, Cloudflare, reCAPTCHA secret, etc.). | |
| 20 | - | |
| 21 | - **Impact:** Anyone with repo access can use the service role key to read/modify all data and users. The Apple client secret can be used to impersonate your app with Apple Sign-In. Historic exposure means keys should be considered compromised. | |
| 22 | - | |
| 23 | - **Remediation:** | |
| 24 | - 1. **Revoke and rotate** all exposed credentials immediately (Supabase service role key, Apple client secret, OpenAI, Upstash, Cloudflare, reCAPTCHA secret, etc.). | |
| 25 | - 2. Remove secrets from the repo (`.mcp.json`, `client_secret.txt`) and ensure they are listed in `.gitignore`. | |
| 26 | - 3. Purge secrets from git history using a tool like `git filter-repo`, then force-push if acceptable for the repo. | |
| 27 | - 4. Use a secret manager or environment variables for all credentials. Avoid storing secrets in local files tracked by git. | |
| 28 | - | |
| 29 | - --- | |
| 30 | - | |
| 31 | - ### C-2: Admin authentication can be bypassed by setting a client cookie | |
| 32 | - **Location:** `src/lib/auth/supabase-server-auth.ts`, `src/middleware.ts` | |
| 33 | - | |
| 34 | - **Details:** | |
| 35 | - `validateRequest()` treats the presence of the `admin_session_active` cookie as authenticated admin **without any server-side verification**. The cookie is also set with `httpOnly: false` and can be created or modified by client-side JavaScript. | |
| 36 | - | |
| 37 | - **Impact:** Any attacker can set `admin_session_active=true` in their browser and gain admin access to protected routes and APIs. This is a full admin takeover. | |
| 38 | - | |
| 39 | - **Remediation:** | |
| 40 | - 1. Remove the `admin_session_active` cookie as an authentication mechanism. | |
| 41 | - 2. Only trust server-verified sessions (Supabase session cookies or server-side JWT validation). | |
| 42 | - 3. If you must use a custom cookie, **sign it** (e.g., HMAC) and validate the signature server-side. | |
| 43 | - 4. Set `httpOnly: true`, `secure: true`, and `sameSite: strict` for sensitive cookies. | |
| 44 | - | |
| 45 | - --- | |
| 46 | - | |
| 47 | - ### C-3: API authorization relies on a public API key | |
| 48 | - **Location:** `src/middleware/auth.ts`, client usage in `src/app/admin/*` and API routes such as `src/app/api/tools/route.ts`, `src/app/api/news/route.ts` | |
| 49 | - | |
| 50 | - **Details:** | |
| 51 | - The API key is stored in `NEXT_PUBLIC_AI_RESOURCE_PRO_API_KEY`, which is exposed to browsers. Several **admin-level endpoints accept only this API key** when admin auth fails (e.g., `PUT/DELETE/POST` in `/api/tools`, `DELETE` in `/api/news`). | |
| 52 | - | |
| 53 | - **Impact:** Anyone can extract the key from client code and perform privileged API actions (create/update/delete content). | |
| 54 | - | |
| 55 | - **Remediation:** | |
| 56 | - 1. Replace `NEXT_PUBLIC_AI_RESOURCE_PRO_API_KEY` with a **server-only** secret (non-public env var). | |
| 57 | - 2. Do **not** accept API key alone for admin actions. Require verified admin sessions or signed JWTs. | |
| 58 | - 3. If API key access is required for integrations, use **scoped keys** with narrow permissions and rotate them regularly. | |
| 59 | - | |
| 60 | - --- | |
| 61 | - | |
| 62 | - ### C-4: Stored XSS via unsanitized HTML rendering | |
| 63 | - **Location:** `src/utils/contentParser.ts` and pages using `dangerouslySetInnerHTML` (e.g., `src/app/blog/[slug]/page.tsx`, `src/app/news/[slug]/page.tsx`, `src/app/faq/page.tsx`) | |
| 64 | - | |
| 65 | - **Details:** | |
| 66 | - `ContentParser` converts markdown to HTML without sanitizing user-controlled content. Multiple pages render the result with `dangerouslySetInnerHTML`. | |
| 67 | - | |
| 68 | - **Impact:** Attackers can inject arbitrary HTML/JS into content (blog/news/faq), enabling session theft, admin cookie manipulation, or account takeover. | |
| 69 | - | |
| 70 | - **Remediation:** | |
| 71 | - 1. Sanitize all HTML before rendering (e.g., DOMPurify on the server or a trusted markdown-to-HTML sanitizer). | |
| 72 | - 2. Prefer a safe markdown renderer with built-in XSS protection. | |
| 73 | - 3. Remove `dangerouslySetInnerHTML` where possible. | |
| 74 | - | |
| 75 | - --- | |
| 76 | - | |
| 77 | - ## High Priority Findings | |
| 78 | - | |
| 79 | - ### H-1: Sensitive data logged in production | |
| 80 | - **Location:** `src/lib/auth/supabase-server-auth.ts`, `src/app/api/admin/login/route.ts`, `src/app/api/news/route.ts` | |
| 81 | - | |
| 82 | - **Details:** | |
| 83 | - Logs include cookies and headers (sometimes full headers in production), and request bodies. These can contain tokens, session IDs, or PII. | |
| 84 | - | |
| 85 | - **Impact:** Logs become a secondary leakage vector. Anyone with log access can extract session tokens or sensitive user data. | |
| 86 | - | |
| 87 | - **Remediation:** | |
| 88 | - 1. Remove logging of cookies/headers or redact values. | |
| 89 | - 2. Avoid logging request bodies containing user data. | |
| 90 | - 3. Use structured logging with redaction rules. | |
| 91 | - | |
| 92 | - --- | |
| 93 | - | |
| 94 | - ### H-2: Overly permissive CORS on API endpoints | |
| 95 | - **Location:** `src/app/api/news/route.ts` (`Access-Control-Allow-Origin: *`), `src/app/api/admin/login/route.ts` (dynamic origin, credentials enabled) | |
| 96 | - | |
| 97 | - **Details:** | |
| 98 | - CORS allows requests from any origin on endpoints that also accept privileged actions (POST/PUT/DELETE). This is dangerous when combined with the public API key and weak auth. | |
| 99 | - | |
| 100 | - **Impact:** Malicious sites can trigger requests and, in some scenarios, exfiltrate responses or abuse endpoints. | |
| 101 | - | |
| 102 | - **Remediation:** | |
| 103 | - 1. Restrict CORS to a **whitelist** of trusted origins. | |
| 104 | - 2. Only include `Access-Control-Allow-Credentials: true` when needed and with explicit origin checks. | |
| 105 | - 3. For admin APIs, consider disabling CORS entirely. | |
| 106 | - | |
| 107 | - --- | |
| 108 | - | |
| 109 | - ### H-3: No rate limiting on authentication endpoints | |
| 110 | - **Location:** `src/app/api/admin/login/route.ts`, `src/app/api/admin/login-alt/route.ts` | |
| 111 | - | |
| 112 | - **Details:** | |
| 113 | - `authRateLimit` exists but is not applied. Login endpoints have no rate limiting, enabling brute-force attacks. | |
| 114 | - | |
| 115 | - **Impact:** Increased risk of credential stuffing and brute-force compromises. | |
| 116 | - | |
| 117 | - **Remediation:** | |
| 118 | - 1. Apply `authRateLimit` to all login/auth endpoints. | |
| 119 | - 2. Add IP- and account-based throttling. | |
| 120 | - 3. Add account lockout or exponential backoff on repeated failures. | |
| 121 | - | |
| 122 | - --- | |
| 123 | - | |
| 124 | - ### H-4: Debug endpoints expose internal state | |
| 125 | - **Location:** `src/app/api/debug/auth-status/route.ts` (API-key only), `src/app/api/auth/debug/route.ts` | |
| 126 | - | |
| 127 | - **Details:** | |
| 128 | - Debug endpoints reveal cookies, auth state, environment flags, and user data. Some are protected only by the public API key. | |
| 129 | - | |
| 130 | - **Impact:** Attackers can enumerate and gather sensitive internal information, aiding exploitation. | |
| 131 | - | |
| 132 | - **Remediation:** | |
| 133 | - 1. Restrict debug endpoints to internal environments only (or remove entirely in production). | |
| 134 | - 2. Require verified admin auth for all debug endpoints. | |
| 135 | - 3. Remove sensitive details from responses. | |
| 136 | - | |
| 137 | - --- | |
| 138 | - | |
| 139 | - ## Medium Priority Findings | |
| 140 | - | |
| 141 | - ### M-1: Development auth bypass could be enabled in production | |
| 142 | - **Location:** `src/lib/auth/supabase-server-auth.ts`, `src/middleware.ts`, `src/app/api/admin/dashboard/*` | |
| 143 | - | |
| 144 | - **Details:** | |
| 145 | - `BYPASS_AUTH_IN_DEV` enables full auth bypass and mock admin users. If mistakenly enabled in production, all admin routes become public. | |
| 146 | - | |
| 147 | - **Impact:** Full admin compromise if env misconfigured. | |
| 148 | - | |
| 149 | - **Remediation:** | |
| 150 | - 1. Add hard checks preventing bypass flags in production builds. | |
| 151 | - 2. Fail startup if `NODE_ENV=production` and bypass flags are enabled. | |
| 152 | - | |
| 153 | - --- | |
| 154 | - | |
| 155 | - ### M-2: GET endpoints with side effects (CSRF/abuse risk) | |
| 156 | - **Location:** `src/app/api/admin/create-test-user/route.ts` | |
| 157 | - | |
| 158 | - **Details:** | |
| 159 | - This endpoint creates admin users on GET. It is gated by `NODE_ENV`, but if misconfigured it is remotely exploitable and CSRF-friendly. | |
| 160 | - | |
| 161 | - **Impact:** Unauthorized admin creation if environment flags are mis-set. | |
| 162 | - | |
| 163 | - **Remediation:** | |
| 164 | - 1. Remove this endpoint from production builds. | |
| 165 | - 2. Require POST + strong admin authentication + CSRF protection. | |
| 166 | - | |
| 167 | - --- | |
| 168 | - | |
| 169 | - ### M-3: Cookies not marked HttpOnly for admin session | |
| 170 | - **Location:** `src/app/api/admin/login/route.ts`, `src/app/api/admin/login-alt/route.ts` | |
| 171 | - | |
| 172 | - **Details:** | |
| 173 | - `admin_session_active` is set with `httpOnly: false`, allowing JavaScript to read/modify it. | |
| 174 | - | |
| 175 | - **Impact:** XSS enables session theft or session forging. | |
| 176 | - | |
| 177 | - **Remediation:** | |
| 178 | - 1. Set `httpOnly: true` on all auth cookies. | |
| 179 | - 2. Use signed or server-validated sessions. | |
| 180 | - | |
| 181 | - --- | |
| 182 | - | |
| 183 | - ## Low Priority / Recommendations | |
| 184 | - | |
| 185 | - ### L-1: Repository contains local cookie file | |
| 186 | - **Location:** `/cookies.txt` | |
| 187 | - | |
| 188 | - **Details:** | |
| 189 | - Local cookie values are stored in the repo. Even if local-only, this sets a bad precedent. | |
| 190 | - | |
| 191 | - **Remediation:** | |
| 192 | - Remove `cookies.txt` from the repo and ensure it is ignored by `.gitignore`. | |
| 193 | - | |
| 194 | - --- | |
| 195 | - | |
| 196 | - ### L-2: Dependency vulnerabilities from `npm audit` | |
| 197 | - **Location:** `package.json`, `package-lock.json` | |
| 198 | - | |
| 199 | - **Details:** | |
| 200 | - `npm audit` reported 10 vulnerabilities (5 high, 4 moderate, 1 low). Key packages include `next`, `eslint-config-next`, `glob`, `qs`, `lodash`, `react-syntax-highlighter`, `prismjs`. | |
| 201 | - | |
| 202 | - **Remediation:** | |
| 203 | - 1. Update to patched versions where possible (`next` -> 15.5.11 suggested by audit). | |
| 204 | - 2. Consider upgrading `eslint-config-next` (major bump). | |
| 205 | - 3. Re-run `npm audit` and address remaining transitive vulnerabilities. | |
| 206 | - | |
| 207 | - --- | |
| 208 | - | |
| 209 | - ## Remediation Checklist (Prioritized) | |
| 210 | - 1. **Rotate/revoke all exposed secrets** and purge from git history. (Critical) | |
| 211 | - 2. **Remove admin_session_active cookie auth** and replace with server-verified sessions. (Critical) | |
| 212 | - 3. **Replace public API key authorization** with server-only secrets or full admin auth. (Critical) | |
| 213 | - 4. **Sanitize HTML content** and remove unsafe `dangerouslySetInnerHTML` usage. (Critical) | |
| 214 | - 5. **Lock down CORS** to trusted origins and disable credentials for public endpoints. (High) | |
| 215 | - 6. **Add rate limiting** to all authentication endpoints. (High) | |
| 216 | - 7. **Remove or fully lock debug endpoints** in production. (High) | |
| 217 | - 8. **Harden environment flags** to prevent dev bypass in production. (Medium) | |
| 218 | - 9. **Upgrade vulnerable dependencies** per `npm audit`. (Low/Medium) | |
| 219 | - |
SECURITY_UPDATES.md deleted
| 1 | - # Blog API Security Updates | |
| 2 | - | |
| 3 | - ## Overview | |
| 4 | - This document outlines the security improvements implemented and needed for the blog API endpoints. All write operations (POST, PUT, DELETE) must be secured with both admin authentication and API key validation. | |
| 5 | - | |
| 6 | - ## Security Requirements | |
| 7 | - All write operations on blog endpoints must implement: | |
| 8 | - 1. Admin authentication via Supabase (`validateRequest()` with `isAdmin` check) | |
| 9 | - 2. API key validation (`validateApiKey()`) | |
| 10 | - | |
| 11 | - Ideally, use the `validateAdminApiRequest()` middleware which implements both checks. | |
| 12 | - | |
| 13 | - ## Already Updated | |
| 14 | - - ✅ `/src/app/api/blog/route.ts` - Main blog API (POST, PUT, DELETE) | |
| 15 | - - ✅ `/src/app/api/admin/blog/create/route.ts` - Admin blog creation | |
| 16 | - | |
| 17 | - ## Remaining Routes to Update | |
| 18 | - The following routes need to be updated to use the `validateAdminApiRequest()` middleware: | |
| 19 | - | |
| 20 | - 1. `/src/app/api/admin/blog/update/route.ts` | |
| 21 | - 2. `/src/app/api/admin/blog/delete/route.ts` | |
| 22 | - 3. `/src/app/api/admin/blog/upload-image/route.ts` | |
| 23 | - 4. `/src/app/api/admin/blog/route.ts` | |
| 24 | - 5. `/src/app/api/admin/blog/[id]/route.ts` | |
| 25 | - 6. `/src/app/api/admin/blog/categories/route.ts` | |
| 26 | - | |
| 27 | - ## Implementation Pattern | |
| 28 | - Replace the existing authentication check: | |
| 29 | - | |
| 30 | - ```typescript | |
| 31 | - const { user } = await validateRequest(); | |
| 32 | - | |
| 33 | - if (!user || !user.isAdmin) { | |
| 34 | - return NextResponse.json({ error: 'Unauthorized' }, { status: 401 }); | |
| 35 | - } | |
| 36 | - ``` | |
| 37 | - | |
| 38 | - With the secure middleware: | |
| 39 | - | |
| 40 | - ```typescript | |
| 41 | - // Validate security requirements for admin API endpoints | |
| 42 | - const securityError = await validateAdminApiRequest(request); | |
| 43 | - if (securityError) { | |
| 44 | - return securityError; | |
| 45 | - } | |
| 46 | - ``` | |
| 47 | - | |
| 48 | - Don't forget to import the middleware: | |
| 49 | - | |
| 50 | - ```typescript | |
| 51 | - import { validateAdminApiRequest } from '@/middleware/protected-routes'; | |
| 52 | - ``` | |
| 53 | - | |
| 54 | - And ensure the request parameter is properly typed as `NextRequest`: | |
| 55 | - | |
| 56 | - ```typescript | |
| 57 | - export async function POST(request: NextRequest) { | |
| 58 | - // ... | |
| 59 | - } | |
| 60 | - ``` | |
| 61 | - | |
| 62 | - ## Testing | |
| 63 | - After implementing these changes, test all endpoints with: | |
| 64 | - 1. Valid admin authentication + valid API key (should succeed) | |
| 65 | - 2. Valid admin authentication + invalid API key (should fail) | |
| 66 | - 3. Invalid admin authentication + valid API key (should fail) | |
| 67 | - 4. Invalid admin authentication + invalid API key (should fail) |
analyze-instance-count-issues.md deleted
| 1 | - # Analysis of Instance Count Issues | |
| 2 | - | |
| 3 | - After reviewing the code, I've identified several issues that could be causing inaccurate `instance_count` values: | |
| 4 | - | |
| 5 | - ## Issue 1: Column Name Mismatch | |
| 6 | - | |
| 7 | - Looking at the dashboard code, it's still using `tool_count` in the query: | |
| 8 | - | |
| 9 | - ```typescript | |
| 10 | - const { data: categoryData, error: categoryError } = await supabase | |
| 11 | - .from('categories') | |
| 12 | - .select('id, name, tool_count') // Still using tool_count instead of instance_count | |
| 13 | - .order('name'); | |
| 14 | - | |
| 15 | - categoryData.forEach(cat => { | |
| 16 | - categoryCounts[cat.name] = cat.tool_count || 0; // Still using tool_count | |
| 17 | - }); | |
| 18 | - ``` | |
| 19 | - | |
| 20 | - If you've renamed the column to `instance_count` in the database but haven't updated the code, this would cause a mismatch. | |
| 21 | - | |
| 22 | - ## Issue 2: Duplicate Counting | |
| 23 | - | |
| 24 | - The dashboard is adding additional counts on top of what's already in the database: | |
| 25 | - | |
| 26 | - ```typescript | |
| 27 | - // First it sets categoryCounts from tool_count | |
| 28 | - categoryCounts[cat.name] = cat.tool_count || 0; | |
| 29 | - | |
| 30 | - // Then it adds blog post counts | |
| 31 | - categoryCounts[cat.name] += blogCount || 0; | |
| 32 | - | |
| 33 | - // Then it adds news counts | |
| 34 | - categoryCounts[cat.name] += newsCount || 0; | |
| 35 | - ``` | |
| 36 | - | |
| 37 | - This creates duplicate counting if your database's `instance_count` already includes these items. | |
| 38 | - | |
| 39 | - ## Issue 3: News Query Using Wrong Column | |
| 40 | - | |
| 41 | - There's an issue with the news query: | |
| 42 | - | |
| 43 | - ```typescript | |
| 44 | - // Count news items with this category | |
| 45 | - const { count: newsCount, error: newsCountError } = await supabase | |
| 46 | - .from('news') | |
| 47 | - .select('*', { count: 'exact', head: true }) | |
| 48 | - .eq('category', cat.name); // Using 'category' column which doesn't exist | |
| 49 | - ``` | |
| 50 | - | |
| 51 | - According to the error you received earlier and the logs, there's no `category` column in the news table - it should be `category_id`. This means news items aren't being counted properly. | |
| 52 | - | |
| 53 | - ## Issue 4: Blog Posts Column Naming | |
| 54 | - | |
| 55 | - There seems to be confusion about the blog_posts table column names: | |
| 56 | - | |
| 57 | - ```typescript | |
| 58 | - // Count blog posts with this category | |
| 59 | - const { count: blogCount, error: blogCountError } = await supabase | |
| 60 | - .from('blog_posts') | |
| 61 | - .select('*', { count: 'exact', head: true }) | |
| 62 | - .eq('category_id', cat.id); // Might be primary_category_id instead | |
| 63 | - ``` | |
| 64 | - | |
| 65 | - Earlier errors suggested that some column names might be different than expected. | |
| 66 | - | |
| 67 | - ## Solutions | |
| 68 | - | |
| 69 | - 1. **Fix Dashboard Query**: Update the dashboard query to use the correct column name (`instance_count` instead of `tool_count`). | |
| 70 | - | |
| 71 | - 2. **Fix Double Counting**: Decide whether to: | |
| 72 | - - Only display the database's `instance_count` value without adding additional counts in the dashboard code | |
| 73 | - - Set the database's `instance_count` to zero and compute all counts in the dashboard code | |
| 74 | - - Update the database with correct counts using the SQL we provided earlier | |
| 75 | - | |
| 76 | - 3. **Fix News Query**: Update the news query to use the correct column: | |
| 77 | - ```typescript | |
| 78 | - .eq('category_id', cat.id) // Instead of .eq('category', cat.name) | |
| 79 | - ``` | |
| 80 | - | |
| 81 | - 4. **Verify Blog Posts Schema**: Check if blog_posts uses `category_id` or `primary_category_id` and update the query accordingly. | |
| 82 | - | |
| 83 | - 5. **Create a Database Function**: Consider creating a Supabase function that calculates the total count across all tables, which would be more efficient than doing multiple queries in your dashboard code. | |
| 84 | - | |
| 85 | - ## Additional SQL to Verify Counts | |
| 86 | - | |
| 87 | - You can run this SQL to verify actual counts in your database: | |
| 88 | - | |
| 89 | - ```sql | |
| 90 | - SELECT | |
| 91 | - c.id, | |
| 92 | - c.name, | |
| 93 | - c.instance_count AS stored_count, | |
| 94 | - (SELECT COUNT(*) FROM tools WHERE category_id = c.id) AS actual_tools_count, | |
| 95 | - (SELECT COUNT(*) FROM news WHERE category_id = c.id) AS actual_news_count, | |
| 96 | - ((SELECT COUNT(*) FROM tools WHERE category_id = c.id) + | |
| 97 | - (SELECT COUNT(*) FROM news WHERE category_id = c.id)) AS calculated_total | |
| 98 | - FROM | |
| 99 | - categories c | |
| 100 | - ORDER BY | |
| 101 | - calculated_total DESC | |
| 102 | - LIMIT 10; | |
| 103 | - ``` | |
| 104 | - | |
| 105 | - This will show you the difference between what's stored in the database and what should be there. |
cloudflare-worker.mjs changed
| 4 | 4 | const rules = await config.headers(); |
| 5 | 5 | const siteRule = rules.find(rule => rule.source === '/(.*)'); |
| 6 | 6 | |
| 7 | - // Tutorial videos live in our R2 media bucket and are served at | |
| 8 | - // airesourcepro.com/media/video/<slug>/... so the site uses only its own address. | |
| 9 | - const MEDIA_PREFIX = '/media/'; | |
| 10 | - | |
| 11 | - async function serveMedia(request, env, url) { | |
| 12 | - if (request.method !== 'GET' && request.method !== 'HEAD') return new Response('Method not allowed', { status: 405 }); | |
| 13 | - const key = decodeURIComponent(url.pathname.slice(MEDIA_PREFIX.length)); | |
| 14 | - if (!key.startsWith('video/') || key.includes('..')) return new Response('Not found', { status: 404 }); | |
| 15 | - const object = env.MEDIA ? await env.MEDIA.get(key, { range: request.headers, onlyIf: request.headers }) : null; | |
| 16 | - if (!object) return new Response('Not found', { status: 404 }); | |
| 17 | - const headers = new Headers(); | |
| 18 | - object.writeHttpMetadata(headers); | |
| 19 | - headers.set('etag', object.httpEtag); | |
| 20 | - headers.set('Accept-Ranges', 'bytes'); | |
| 21 | - headers.set('Cache-Control', 'public, max-age=86400'); | |
| 22 | - if (!('body' in object)) return new Response(null, { status: 304, headers }); | |
| 23 | - let status = 200; | |
| 24 | - if (object.range && request.headers.has('range')) { | |
| 25 | - const { offset = 0, length = object.size - offset } = object.range; | |
| 26 | - headers.set('Content-Range', `bytes ${offset}-${offset + length - 1}/${object.size}`); | |
| 27 | - headers.set('Content-Length', String(length)); | |
| 28 | - status = 206; | |
| 29 | - } else { | |
| 30 | - headers.set('Content-Length', String(object.size)); | |
| 31 | - } | |
| 32 | - return new Response(request.method === 'HEAD' ? null : object.body, { status, headers }); | |
| 33 | - } | |
| 7 | + // One home: the old AI Resource Pro addresses and www all move to becomeapro.ai, keeping the path and query. | |
| 8 | + const CANONICAL = 'becomeapro.ai'; | |
| 9 | + const OLD_HOSTS = new Set(['www.becomeapro.ai', 'airesourcepro.com', 'www.airesourcepro.com', 'airesource.pro', 'www.airesource.pro']); | |
| 34 | 10 | |
| 35 | 11 | export default { |
| 36 | 12 | async fetch(request, env, ctx) { |
| 37 | 13 | const url = new URL(request.url); |
| 38 | - if (url.pathname.startsWith(MEDIA_PREFIX)) return serveMedia(request, env, url); | |
| 14 | + if (OLD_HOSTS.has(url.hostname)) { | |
| 15 | + return Response.redirect(`https://${CANONICAL}${url.pathname}${url.search}`, 301); | |
| 16 | + } | |
| 39 | 17 | const response = await handler.fetch(request, env, ctx); |
| 40 | 18 | const headers = new Headers(response.headers); |
| 41 | 19 | const routeRule = rules.find(rule => rule.source === url.pathname && !rule.has); |
code-updates-after-rename.md deleted
| 1 | - # Code Updates Required After Renaming tool_count to instance_count | |
| 2 | - | |
| 3 | - If you decide to rename the `tool_count` column to `instance_count`, you'll need to update the following files: | |
| 4 | - | |
| 5 | - ## Core Files to Update | |
| 6 | - | |
| 7 | - 1. `src/app/admin/dashboard/page.tsx` | |
| 8 | - - Line ~295: Change `.select('id, name, tool_count')` to `.select('id, name, instance_count')` | |
| 9 | - - Line ~301: Change `categoryCounts[cat.name] = cat.tool_count || 0;` to `categoryCounts[cat.name] = cat.instance_count || 0;` | |
| 10 | - | |
| 11 | - 2. `src/components/admin/ClientCategoryManager.tsx` | |
| 12 | - - Line ~71: Change `tool_count?: number;` to `instance_count?: number;` | |
| 13 | - - Line ~290: Change `<TableCell className="text-white">{category.tool_count || 0}</TableCell>` to `<TableCell className="text-white">{category.instance_count || 0}</TableCell>` | |
| 14 | - - Line ~540-542: Update references from `tool_count` to `instance_count` | |
| 15 | - | |
| 16 | - 3. `src/app/api/admin/categories/route.ts` | |
| 17 | - - Line ~101: Change `tool_count: 0,` to `instance_count: 0,` | |
| 18 | - | |
| 19 | - ## API Routes That Update Category Counts | |
| 20 | - | |
| 21 | - 4. `src/app/api/tools/route.ts` | |
| 22 | - - Update references to `tool_count` to `instance_count` | |
| 23 | - | |
| 24 | - 5. `src/app/api/tools/[slug]/route.ts` | |
| 25 | - - Update references to `tool_count` to `instance_count` | |
| 26 | - - Line ~187: Change `.update({ tool_count: supabase.rpc('increment', { row_id: categoryId }) })` to `.update({ instance_count: supabase.rpc('increment', { row_id: categoryId }) })` | |
| 27 | - - Line ~193: Similar update for decrement | |
| 28 | - | |
| 29 | - 6. `src/app/api/admin/tools/[id]/route.ts` | |
| 30 | - - Update references from `tool_count` to `instance_count` | |
| 31 | - | |
| 32 | - ## Scripts & Schema Files | |
| 33 | - | |
| 34 | - 7. `scripts/create-supabase-schema.sql` | |
| 35 | - - Line ~41: Change `tool_count INTEGER DEFAULT 0,` to `instance_count INTEGER DEFAULT 0,` | |
| 36 | - | |
| 37 | - 8. `scripts/seed-supabase.ts` | |
| 38 | - - Update all references from `tool_count` to `instance_count` | |
| 39 | - | |
| 40 | - 9. `scripts/migrate-categories-schema.sql` | |
| 41 | - - Update references if needed | |
| 42 | - | |
| 43 | - 10. Any other seed or migration scripts that reference the column | |
| 44 | - | |
| 45 | - ## Testing Considerations | |
| 46 | - | |
| 47 | - After making these changes: | |
| 48 | - | |
| 49 | - 1. Test the admin dashboard to ensure category counts still display correctly | |
| 50 | - 2. Test adding/removing tools to verify count increments/decrements properly | |
| 51 | - 3. Verify that the category manager component still works correctly | |
| 52 | - 4. Run any database seed scripts to ensure they still function properly | |
| 53 | - | |
| 54 | - This is not an exhaustive list, but covers the main files identified through a code search. There may be other references to `tool_count` that would need to be updated. |
content/lessons/english/listening/phone-and-video-calls.mdx added
| 1 | + --- | |
| 2 | + title: "Listening on phone and video calls" | |
| 3 | + description: "Learn how to follow phone and video calls in English, what to say when the sound is bad, and how to turn on live captions on your phone, computer and meeting apps." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 11 | |
| 6 | + level: Intermediate | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Calls are harder than face to face talk. You cannot see the speaker's mouth or hands. The sound may be quiet, cut out, or have background noise. Many people learning English feel calls are the hardest part of their job. | |
| 11 | + | |
| 12 | + The good news: today's phones, computers and meeting apps can show **live captions**. Captions are the spoken words written on the screen as people talk. This lesson shows you how to prepare for calls, what to say when you miss something, and how to turn captions on. | |
| 13 | + | |
| 14 | + ## Before the call: set yourself up | |
| 15 | + | |
| 16 | + Most listening problems on calls can be fixed before the call starts. | |
| 17 | + | |
| 18 | + <Steps> | |
| 19 | + <Step title="Use headphones">Earbuds or a headset put the voice right in your ears and block room noise. This is the single biggest help.</Step> | |
| 20 | + <Step title="Find a quiet place">Close the door or move away from machines, traffic and other people.</Step> | |
| 21 | + <Step title="Know the topic">Read the meeting invite or the last email. If you know the topic, you can guess missed words much more easily.</Step> | |
| 22 | + <Step title="Turn on captions">Set them up now, not in the middle of the call. See the steps below.</Step> | |
| 23 | + <Step title="Have something to write with">Write names, numbers and dates as you hear them.</Step> | |
| 24 | + </Steps> | |
| 25 | + | |
| 26 | + ## Turning on live captions | |
| 27 | + | |
| 28 | + Captions are built into most modern devices and meeting apps. They are free. Menus change a little with updates, so if you cannot find the setting, search your device settings for "captions." | |
| 29 | + | |
| 30 | + <Diagram caption="Where to find live captions. Look for a CC button in meeting apps, or search settings for captions on your device."> | |
| 31 | + <svg viewBox="0 0 600 260" role="img" aria-label="A video call window with a CC captions button at the bottom and a caption bar showing spoken words"> | |
| 32 | + <rect x="40" y="20" width="520" height="220" rx="14" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 33 | + <circle cx="300" cy="80" r="34" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 34 | + <path d="M250 150 Q300 105 350 150" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 35 | + <rect x="90" y="150" width="420" height="34" rx="6" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 36 | + <text x="300" y="173" fontSize="16" textAnchor="middle" fill="currentColor">We need the parts by Thursday.</text> | |
| 37 | + <circle cx="210" cy="212" r="14" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 38 | + <circle cx="260" cy="212" r="14" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 39 | + <rect x="290" y="198" width="44" height="28" rx="6" className="soft" stroke="currentColor" strokeWidth="2.5" /> | |
| 40 | + <text x="312" y="218" fontSize="15" textAnchor="middle" fill="currentColor">CC</text> | |
| 41 | + <circle cx="370" cy="212" r="14" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 42 | + <text x="470" y="216" fontSize="14" textAnchor="middle" fill="currentColor">Captions button</text> | |
| 43 | + <text x="300" y="138" fontSize="14" textAnchor="middle" fill="currentColor">Caption bar</text> | |
| 44 | + </svg> | |
| 45 | + </Diagram> | |
| 46 | + | |
| 47 | + **Meeting apps:** | |
| 48 | + | |
| 49 | + - **Zoom:** click the **Captions** or **CC** button at the bottom of the meeting window. | |
| 50 | + - **Microsoft Teams:** click **More**, then look under **Language and speech** for live captions. | |
| 51 | + - **Google Meet:** click the **CC** button at the bottom of the screen. | |
| 52 | + | |
| 53 | + Many of these apps can also save a written **transcript**, which is the full text of the meeting. If your company allows it, you can read it after the call to check what you missed. | |
| 54 | + | |
| 55 | + **Phones and computers:** | |
| 56 | + | |
| 57 | + - **iPhone and iPad:** go to **Settings**, then **Accessibility**, then **Live Captions**. Captions then work for calls, videos and apps. | |
| 58 | + - **Android:** press a volume button, then tap the captions icon under the volume slider. On many phones, Live Caption also works for phone calls. | |
| 59 | + - **Windows 11:** press the Windows key, Ctrl and L together to turn on live captions for any sound on the computer. | |
| 60 | + - **Mac:** go to **System Settings**, then **Accessibility**, then **Live Captions**. | |
| 61 | + | |
| 62 | + <Callout type="tip">Captions are not perfect. They often get names, part numbers and accents wrong. Use them as a helper, not the only source. Always confirm important numbers by saying them back.</Callout> | |
| 63 | + | |
| 64 | + <Callout type="note">Some meeting apps can also translate captions into your first language. This is useful when you are tired, but try English captions first. Reading English while you listen trains your ears faster.</Callout> | |
| 65 | + | |
| 66 | + ## What to say when the sound is bad | |
| 67 | + | |
| 68 | + Bad sound is nobody's fault. Say so clearly and quickly. Waiting only makes you miss more. | |
| 69 | + | |
| 70 | + <Say word="Sorry, you're breaking up." /> | |
| 71 | + <Say word="I can't hear you very well." /> | |
| 72 | + <Say word="Could you move closer to the microphone?" /> | |
| 73 | + <Say word="You froze for a second. Could you repeat that?" /> | |
| 74 | + <Say word="I think you're on mute." /> | |
| 75 | + | |
| 76 | + "You froze" means the video stopped moving. "Breaking up" means the sound keeps cutting in and out. | |
| 77 | + | |
| 78 | + If the connection stays bad, suggest another way. | |
| 79 | + | |
| 80 | + <Say word="Can I call you back?" /> | |
| 81 | + <Say word="Could you put that in the chat?" /> | |
| 82 | + | |
| 83 | + ## Catching numbers, names and dates | |
| 84 | + | |
| 85 | + These are the most important parts of a call, and the easiest to mishear. Always repeat them back. | |
| 86 | + | |
| 87 | + <Say word="Let me read that back. Five, five, five, two, one, eight, zero." /> | |
| 88 | + <Say word="Was that fifteen or fifty?" /> | |
| 89 | + <Say word="Could you spell your last name for me?" /> | |
| 90 | + | |
| 91 | + Fifteen and fifty sound very close on the phone. The stress helps: fif-TEEN has stress at the end, FIF-ty has stress at the start. When in doubt, ask: "One five, or five zero?" | |
| 92 | + | |
| 93 | + <Say word="fifteen" hint="fif-TEEN" /> | |
| 94 | + <Say word="fifty" hint="FIF-tee" /> | |
| 95 | + <Say word="thirteen" hint="thur-TEEN" /> | |
| 96 | + <Say word="thirty" hint="THUR-dee" /> | |
| 97 | + | |
| 98 | + For spelling, people often use words for letters: "B as in boy, D as in dog." You can use this too. | |
| 99 | + | |
| 100 | + <Say word="That's B as in boy, D as in dog." /> | |
| 101 | + | |
| 102 | + ## During the call: listen for the plan | |
| 103 | + | |
| 104 | + You do not need every word. Listen for three things: **who** will do **what** by **when**. Write those down. | |
| 105 | + | |
| 106 | + Phrases that signal action items: | |
| 107 | + | |
| 108 | + <Say word="Can you take care of that?" /> | |
| 109 | + <Say word="Let's follow up next week." /> | |
| 110 | + <Say word="I'll send out the notes after the call." /> | |
| 111 | + | |
| 112 | + "Follow up" means to check back or continue later. "Take care of" means to do or handle something. | |
| 113 | + | |
| 114 | + ## After the call: confirm in writing | |
| 115 | + | |
| 116 | + After any important call, send a short message that sums up what you heard. This catches mistakes early and gives everyone a record. | |
| 117 | + | |
| 118 | + For example: "Thanks for the call. To confirm, I will order the parts today, and you will send the drawings by Thursday. Please let me know if I missed anything." | |
| 119 | + | |
| 120 | + ## Common mistakes | |
| 121 | + | |
| 122 | + - **Pretending you heard.** Say "Sorry, could you repeat that?" It is normal on calls. | |
| 123 | + - **Using the phone speaker in a noisy room.** Use earbuds or a headset. | |
| 124 | + - **Trusting captions for numbers.** Always repeat important numbers back. | |
| 125 | + - **Skipping the follow-up message.** A two-line summary prevents big misunderstandings. | |
| 126 | + | |
| 127 | + ## Practice | |
| 128 | + | |
| 129 | + Turn on live captions on your phone today. Watch a short video about your trade with captions on, then again with them off. Next time you are on a call, repeat one number back to the speaker. |
content/lessons/english/listening/understanding-fast-speech.mdx added
| 1 | + --- | |
| 2 | + title: "Understanding fast speech" | |
| 3 | + description: "Learn why native speakers sound so fast, and how reductions like gonna and wanna and linked words work, so you can follow real conversations at work." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 11 | |
| 6 | + level: Intermediate | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + You studied English. You know the words. Then a coworker says "Whaddaya wanna do?" and you understand nothing. This is normal. Native speakers do not say every word clearly. They shorten words and join them together. Once you know the patterns, fast speech gets much easier. | |
| 11 | + | |
| 12 | + This lesson covers two big patterns: **reductions** and **linking**. Press play on every example, listen, and then say it yourself. Saying it helps you hear it. | |
| 13 | + | |
| 14 | + ## Reductions: short forms of common words | |
| 15 | + | |
| 16 | + A **reduction** is a short, relaxed way of saying common words. People use them in everyday speech, even at work. You do not have to use them yourself, but you must understand them. | |
| 17 | + | |
| 18 | + | Full words | What you hear | Example | | |
| 19 | + |---|---|---| | |
| 20 | + | going to | gonna | I'm gonna be late. | | |
| 21 | + | want to | wanna | Do you wanna take a break? | | |
| 22 | + | got to, have got to | gotta | I gotta go. | | |
| 23 | + | have to | hafta | We hafta finish today. | | |
| 24 | + | kind of | kinda | It's kinda loud in here. | | |
| 25 | + | let me | lemme | Lemme check. | | |
| 26 | + | give me | gimme | Gimme a second. | | |
| 27 | + | don't know | dunno | I dunno where it is. | | |
| 28 | + | did you | didja | Didja see the email? | | |
| 29 | + | what do you | whaddaya | Whaddaya need? | | |
| 30 | + | |
| 31 | + <Say word="I'm gonna be late." hint="GUH-nuh" /> | |
| 32 | + <Say word="Do you wanna take a break?" hint="WAH-nuh" /> | |
| 33 | + <Say word="I gotta go." hint="GAH-duh" /> | |
| 34 | + <Say word="We hafta finish today." hint="HAF-tuh" /> | |
| 35 | + <Say word="It's kinda loud in here." hint="KYN-duh" /> | |
| 36 | + <Say word="Lemme check." hint="LEM-ee" /> | |
| 37 | + <Say word="Gimme a second." hint="GIM-ee" /> | |
| 38 | + <Say word="Didja see the email?" hint="DIJ-uh" /> | |
| 39 | + | |
| 40 | + <Callout type="note">"Gonna" only replaces "going to" before a verb. "I'm gonna eat" is right. "I'm going to the store" stays "going to," because "the store" is a place, not a verb.</Callout> | |
| 41 | + | |
| 42 | + In text messages and team chat, people often type these short forms too: "gonna," "wanna," "lemme know." That is fine in casual chat. In a formal email, use the full words. | |
| 43 | + | |
| 44 | + ## Weak words: the small words almost disappear | |
| 45 | + | |
| 46 | + English is a **stress-timed** language. That means important words are loud and long, and small grammar words are quick and quiet. Small words like a, the, to, of, and, for, can and you often shrink to a soft "uh" sound. | |
| 47 | + | |
| 48 | + <Diagram caption="Big dots are stressed words. Small dots are weak words that get quick and quiet."> | |
| 49 | + <svg viewBox="0 0 600 200" role="img" aria-label="The sentence I need to talk to the manager, with big dots over need, talk and manager and small dots over the other words"> | |
| 50 | + <circle cx="50" cy="70" r="8" fill="currentColor" /> | |
| 51 | + <circle cx="110" cy="70" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 52 | + <circle cx="170" cy="70" r="8" fill="currentColor" /> | |
| 53 | + <circle cx="235" cy="70" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 54 | + <circle cx="300" cy="70" r="8" fill="currentColor" /> | |
| 55 | + <circle cx="355" cy="70" r="8" fill="currentColor" /> | |
| 56 | + <circle cx="450" cy="70" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 57 | + <text x="50" y="135" fontSize="16" textAnchor="middle" fill="currentColor">I</text> | |
| 58 | + <text x="110" y="135" fontSize="18" textAnchor="middle" fill="currentColor">NEED</text> | |
| 59 | + <text x="170" y="135" fontSize="16" textAnchor="middle" fill="currentColor">to</text> | |
| 60 | + <text x="235" y="135" fontSize="18" textAnchor="middle" fill="currentColor">TALK</text> | |
| 61 | + <text x="300" y="135" fontSize="16" textAnchor="middle" fill="currentColor">to</text> | |
| 62 | + <text x="355" y="135" fontSize="16" textAnchor="middle" fill="currentColor">the</text> | |
| 63 | + <text x="450" y="135" fontSize="18" textAnchor="middle" fill="currentColor">MANager</text> | |
| 64 | + <text x="300" y="180" fontSize="14" textAnchor="middle" fill="currentColor">Listen for the big words. They carry the meaning.</text> | |
| 65 | + </svg> | |
| 66 | + </Diagram> | |
| 67 | + | |
| 68 | + <Say word="I need to talk to the manager." /> | |
| 69 | + | |
| 70 | + Here is the key idea: **you do not need to hear every word.** Listen for the stressed words. In "I need to talk to the manager," if you catch NEED, TALK and MANAGER, you understand the message. | |
| 71 | + | |
| 72 | + <Say word="Put it on the table." /> | |
| 73 | + <Say word="A cup of coffee." /> | |
| 74 | + | |
| 75 | + In "a cup of coffee," the word "of" becomes just "uh." It sounds like "a cuppa coffee." | |
| 76 | + | |
| 77 | + ## Linking: words that run together | |
| 78 | + | |
| 79 | + **Linking** means the end of one word joins the start of the next word, with no pause. In writing there are spaces between words. In speech, there often are none. | |
| 80 | + | |
| 81 | + The most common link: a word ends in a consonant sound and the next word starts with a vowel sound. The consonant jumps forward. | |
| 82 | + | |
| 83 | + <Say word="Turn it off." /> | |
| 84 | + <Say word="Pick it up." /> | |
| 85 | + <Say word="Check it out." /> | |
| 86 | + | |
| 87 | + "Turn it off" sounds like "tur-ni-toff." "Pick it up" sounds like "pi-ki-tup." | |
| 88 | + | |
| 89 | + Another link: **t and d before you.** They mix into new sounds. | |
| 90 | + | |
| 91 | + | Written | Sounds like | | |
| 92 | + |---|---| | |
| 93 | + | Did you | didja | | |
| 94 | + | Would you | wouldja | | |
| 95 | + | Don't you | doncha | | |
| 96 | + | Got you | gotcha | | |
| 97 | + | What are you | whatcha | | |
| 98 | + | |
| 99 | + <Say word="Would you send it to me?" /> | |
| 100 | + <Say word="Got you. I'll do it now." /> | |
| 101 | + | |
| 102 | + "Gotcha" is very common at work. It means "I understand." | |
| 103 | + | |
| 104 | + ## The American t | |
| 105 | + | |
| 106 | + In American English, a t between two vowel sounds often sounds like a quick, soft d. This is called a **flap t**. | |
| 107 | + | |
| 108 | + <Say word="water" hint="WAH-der" /> | |
| 109 | + <Say word="better" hint="BED-er" /> | |
| 110 | + <Say word="later" hint="LAY-der" /> | |
| 111 | + <Say word="Get it done." /> | |
| 112 | + | |
| 113 | + So "a lot of" sounds like "a lodda." "Get it" sounds like "geddit." If you expect a hard t, you will miss these words. | |
| 114 | + | |
| 115 | + ## How to practice | |
| 116 | + | |
| 117 | + <Steps> | |
| 118 | + <Step title="Listen to real speech every day">Use podcasts, online videos about your trade, TV shows and work training videos. Ten minutes a day beats one hour a week.</Step> | |
| 119 | + <Step title="Turn on captions, then turn them off">Watch a short clip with English captions. Then watch the same clip again without them. Notice the words that sounded different from how they look.</Step> | |
| 120 | + <Step title="Slow it down">Most video and podcast apps let you play at 0.75 speed. Start slow, then go back to normal speed.</Step> | |
| 121 | + <Step title="Shadow the speaker">Shadowing means you play a short sentence and say it at the same time as the speaker, copying the speed and rhythm. Your mouth learns the reductions, and then your ears hear them better.</Step> | |
| 122 | + <Step title="Ask an AI to explain">Paste a confusing line into an AI assistant like Claude or ChatGPT and ask, "What does this mean, and how is it pronounced in casual speech?"</Step> | |
| 123 | + </Steps> | |
| 124 | + | |
| 125 | + <Callout type="tip">When a coworker talks fast, it is fine to say, "Sorry, could you say that a little slower?" Most people slow down right away and do not mind at all.</Callout> | |
| 126 | + | |
| 127 | + ## Common mistakes | |
| 128 | + | |
| 129 | + - **Trying to hear every word.** Focus on the stressed words. They hold the meaning. | |
| 130 | + - **Thinking fast speech is lazy or wrong.** It is normal, correct spoken English. Teachers and managers speak this way too. | |
| 131 | + - **Writing reductions in formal emails.** "Gonna" is fine in chat with coworkers, but write "going to" in emails to clients. | |
| 132 | + | |
| 133 | + ## Practice | |
| 134 | + | |
| 135 | + Say these three sentences five times, faster each time: "I'm gonna check it out." "Do you wanna grab lunch?" "Lemme know later." | |
| 136 | + | |
| 137 | + <Say word="I'm gonna check it out." /> | |
| 138 | + <Say word="Do you wanna grab lunch?" /> | |
| 139 | + <Say word="Lemme know later." /> |
content/lessons/english/pronunciation/hard-english-sounds.mdx added
| 1 | + --- | |
| 2 | + title: "The hard English sounds" | |
| 3 | + description: "Learn to say the English sounds that are hardest for many learners: th, r and l, v and w, and short and long vowels, using mouth positions and minimal pairs with audio." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 13 | |
| 6 | + level: Intermediate | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Every language has its own set of sounds. When English has a sound your first language does not, your mouth will use the closest sound it knows. That is normal. With a little practice, you can learn to make the new sounds clearly. | |
| 11 | + | |
| 12 | + This lesson uses **minimal pairs**. A minimal pair is two words that are the same except for one sound, like "ship" and "sheep." Practicing them trains your ears to hear the difference and your mouth to make it. | |
| 13 | + | |
| 14 | + For each pair, press play on both words. Listen for the difference. Then say both words out loud, slowly, then faster. | |
| 15 | + | |
| 16 | + ## The th sounds | |
| 17 | + | |
| 18 | + English has two th sounds. Both are made the same way: **put the tip of your tongue lightly between your top and bottom teeth, then blow air out.** | |
| 19 | + | |
| 20 | + <Diagram caption="For th, the tongue tip rests lightly between the teeth and air flows over it."> | |
| 21 | + <svg viewBox="0 0 600 300" role="img" aria-label="A side view of a mouth with the tongue tip between the upper and lower teeth and an arrow showing air flowing out"> | |
| 22 | + <defs> | |
| 23 | + <marker id="arrowTh" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"> | |
| 24 | + <path d="M0,0 L10,5 L0,10 z" fill="currentColor" /> | |
| 25 | + </marker> | |
| 26 | + </defs> | |
| 27 | + <path d="M120 60 Q260 20 390 80 L400 110" fill="none" stroke="currentColor" strokeWidth="2.5" /> | |
| 28 | + <path d="M120 250 Q260 280 390 200 L400 170" fill="none" stroke="currentColor" strokeWidth="2.5" /> | |
| 29 | + <rect x="382" y="104" width="22" height="26" rx="4" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <rect x="382" y="152" width="22" height="26" rx="4" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <path d="M150 200 Q250 120 390 138 Q425 141 418 146 Q400 152 380 150 Q260 160 170 220 Z" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <line x1="430" y1="140" x2="530" y2="140" stroke="currentColor" strokeWidth="2" strokeDasharray="6 4" markerEnd="url(#arrowTh)" /> | |
| 33 | + <text x="480" y="125" fontSize="16" textAnchor="middle" fill="currentColor">air</text> | |
| 34 | + <text x="395" y="90" fontSize="14" textAnchor="middle" fill="currentColor">top teeth</text> | |
| 35 | + <text x="395" y="205" fontSize="14" textAnchor="middle" fill="currentColor">bottom teeth</text> | |
| 36 | + <text x="240" y="205" fontSize="16" textAnchor="middle" fill="currentColor">tongue</text> | |
| 37 | + <text x="300" y="285" fontSize="14" textAnchor="middle" fill="currentColor">Tongue tip between the teeth. Do not bite hard.</text> | |
| 38 | + </svg> | |
| 39 | + </Diagram> | |
| 40 | + | |
| 41 | + - The **quiet th** has only air, no voice. Put your hand on your throat: no buzz. | |
| 42 | + - The **voiced th** uses your voice. You feel a buzz in your throat. | |
| 43 | + | |
| 44 | + <Say word="thumb" hint="THUM" /> | |
| 45 | + <Say word="bath" hint="BATH" /> | |
| 46 | + <Say word="thanks" hint="THANKS" /> | |
| 47 | + <Say word="this" hint="THIS" /> | |
| 48 | + <Say word="mother" hint="MUH-ther" /> | |
| 49 | + | |
| 50 | + Common mistakes are saying s, t, f, d or z instead. Practice these pairs. | |
| 51 | + | |
| 52 | + | th word | Mistake sound | | |
| 53 | + |---|---| | |
| 54 | + | think | sink | | |
| 55 | + | three | tree | | |
| 56 | + | thank | tank | | |
| 57 | + | they | day | | |
| 58 | + | breathe | breeze | | |
| 59 | + | |
| 60 | + <Say word="think" hint="THINK" /> | |
| 61 | + <Say word="sink" hint="SINK" /> | |
| 62 | + <Say word="three" hint="THREE" /> | |
| 63 | + <Say word="tree" hint="TREE" /> | |
| 64 | + <Say word="they" hint="THAY" /> | |
| 65 | + <Say word="day" hint="DAY" /> | |
| 66 | + | |
| 67 | + <Callout type="tip">Use a mirror or your phone's front camera. For th, you should see the tip of your tongue just a little between your teeth.</Callout> | |
| 68 | + | |
| 69 | + <Say word="I think the third one is better." /> | |
| 70 | + | |
| 71 | + ## R and L | |
| 72 | + | |
| 73 | + Many languages have only one sound in this area. English has two very different ones. | |
| 74 | + | |
| 75 | + - **L:** touch the tip of your tongue to the bumpy ridge just behind your top front teeth. Let air go around the sides of your tongue. | |
| 76 | + - **R:** the tongue tip does **not** touch anything. Pull your tongue back a little and round your lips slightly. American r is a smooth sound, not rolled or tapped. | |
| 77 | + | |
| 78 | + <Say word="light" hint="LYT" /> | |
| 79 | + <Say word="right" hint="RYT" /> | |
| 80 | + <Say word="lock" hint="LOK" /> | |
| 81 | + <Say word="rock" hint="ROK" /> | |
| 82 | + <Say word="fly" hint="FLY" /> | |
| 83 | + <Say word="fry" hint="FRY" /> | |
| 84 | + <Say word="collect" hint="kuh-LEKT" /> | |
| 85 | + <Say word="correct" hint="kuh-REKT" /> | |
| 86 | + | |
| 87 | + A quick test: say "la la la" and feel your tongue touch the top. Now say "ra ra ra" and keep your tongue from touching anything. | |
| 88 | + | |
| 89 | + <Say word="Turn right at the red light." /> | |
| 90 | + | |
| 91 | + ## V and W | |
| 92 | + | |
| 93 | + - **V:** gently bite your bottom lip with your top teeth and use your voice. You feel a buzz on your lip. | |
| 94 | + - **W:** your teeth do not touch your lips at all. Round your lips into a small circle, like you are going to say "oo," then open them. | |
| 95 | + | |
| 96 | + <Say word="vest" hint="VEST" /> | |
| 97 | + <Say word="west" hint="WEST" /> | |
| 98 | + <Say word="vine" hint="VYN" /> | |
| 99 | + <Say word="wine" hint="WYN" /> | |
| 100 | + <Say word="vet" hint="VET" /> | |
| 101 | + <Say word="wet" hint="WET" /> | |
| 102 | + | |
| 103 | + Some learners also mix up **v and b**. For b, both lips close. For v, the top teeth touch the bottom lip. | |
| 104 | + | |
| 105 | + <Say word="very" hint="VAIR-ee" /> | |
| 106 | + <Say word="berry" hint="BAIR-ee" /> | |
| 107 | + | |
| 108 | + <Say word="We have a very busy week." /> | |
| 109 | + | |
| 110 | + ## Short and long vowels | |
| 111 | + | |
| 112 | + English has more vowel sounds than most languages. The biggest problem for many learners is the difference between short and long vowels. Long vowels are a little longer and the mouth is more tense. Short vowels are quick and relaxed. | |
| 113 | + | |
| 114 | + **Long ee and short i.** For ee, smile and stretch your lips. For short i, relax your face. | |
| 115 | + | |
| 116 | + <Say word="sheep" hint="SHEEP" /> | |
| 117 | + <Say word="ship" hint="SHIP" /> | |
| 118 | + <Say word="seat" hint="SEET" /> | |
| 119 | + <Say word="sit" hint="SIT" /> | |
| 120 | + <Say word="feel" hint="FEEL" /> | |
| 121 | + <Say word="fill" hint="FIL" /> | |
| 122 | + <Say word="heat" hint="HEET" /> | |
| 123 | + <Say word="hit" hint="HIT" /> | |
| 124 | + | |
| 125 | + **Long oo and short u.** For oo, round your lips tight. For the short sound in "full," relax your lips. | |
| 126 | + | |
| 127 | + <Say word="pool" hint="POOL" /> | |
| 128 | + <Say word="pull" hint="PUL" /> | |
| 129 | + <Say word="fool" hint="FOOL" /> | |
| 130 | + <Say word="full" hint="FUL" /> | |
| 131 | + | |
| 132 | + <Callout type="note">These pairs can change your meaning at work. "Fill the tank" and "feel the tank" are very different requests. If you are unsure, stretch the long ee sound a little more and smile.</Callout> | |
| 133 | + | |
| 134 | + <Say word="Please fill out this sheet." /> | |
| 135 | + | |
| 136 | + ## How to practice sounds | |
| 137 | + | |
| 138 | + <Steps> | |
| 139 | + <Step title="Pick one sound per week">Do not try everything at once. Choose the sound that causes you the most trouble.</Step> | |
| 140 | + <Step title="Listen first">Play each pair many times until you can hear the difference clearly.</Step> | |
| 141 | + <Step title="Watch your mouth">Use a mirror or your camera. Check your tongue, teeth and lips.</Step> | |
| 142 | + <Step title="Record yourself">Use your phone's voice recorder. Compare your recording to the audio here.</Step> | |
| 143 | + <Step title="Use the sound in sentences">After single words feel easy, practice the sentences in this lesson.</Step> | |
| 144 | + </Steps> | |
| 145 | + | |
| 146 | + ## Common mistakes | |
| 147 | + | |
| 148 | + - **Biting too hard on th.** Touch lightly. Air must flow. | |
| 149 | + - **Touching the top of the mouth for r.** The tongue floats for r. | |
| 150 | + - **Making every vowel the same length.** Stretch the long ones a little. | |
| 151 | + - **Trying to sound perfect.** The goal is to be clear and understood, not to remove your accent. Many people with strong accents are very easy to understand. | |
| 152 | + | |
| 153 | + ## Practice | |
| 154 | + | |
| 155 | + Choose one pair from each section. Say each pair ten times, slowly, then fast. Record yourself once at the start of the week and once at the end, and listen to the difference. |
content/lessons/english/pronunciation/rhythm-and-linking.mdx added
| 1 | + --- | |
| 2 | + title: "Rhythm and linking in sentences" | |
| 3 | + description: "Learn the beat of spoken English: which words to stress in a sentence, how to join words smoothly, where to pause, and how your voice goes up or down." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Intermediate | |
| 7 | + order: 3 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + You can say every word correctly and still sound hard to follow. Why? Because English is not just words. It has a **rhythm**, like music. Some words are strong and some are weak, and the words flow together without gaps. | |
| 11 | + | |
| 12 | + When you learn this rhythm, two things happen. People understand you more easily, and you understand fast speakers better too. This lesson covers four parts: sentence stress, linking, pausing and intonation. | |
| 13 | + | |
| 14 | + ## Sentence stress: strong words and weak words | |
| 15 | + | |
| 16 | + In a sentence, some words carry the meaning. These are **content words**. Others hold the grammar together. These are **function words**. | |
| 17 | + | |
| 18 | + | Content words (strong) | Function words (weak) | | |
| 19 | + |---|---| | |
| 20 | + | nouns: truck, invoice, Maria | articles: a, an, the | | |
| 21 | + | main verbs: fix, send, call | helping verbs: is, are, can, do | | |
| 22 | + | adjectives: broken, new, red | prepositions: to, at, of, for, in | | |
| 23 | + | adverbs: quickly, today | pronouns: I, you, it, him | | |
| 24 | + | negatives: not, can't, never | joining words: and, but, or | | |
| 25 | + | |
| 26 | + Say content words louder, longer and clearer. Say function words quickly and softly. | |
| 27 | + | |
| 28 | + <Diagram caption="The beat of a sentence. Big dots are stressed content words. Arcs show words that link together."> | |
| 29 | + <svg viewBox="0 0 600 240" role="img" aria-label="The sentence I need to pick it up at noon, with big dots over need, pick, up and noon, small dots over the other words, and arcs linking pick it up"> | |
| 30 | + <circle cx="40" cy="110" r="8" fill="currentColor" /> | |
| 31 | + <circle cx="100" cy="110" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <circle cx="160" cy="110" r="8" fill="currentColor" /> | |
| 33 | + <circle cx="225" cy="110" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 34 | + <circle cx="285" cy="110" r="8" fill="currentColor" /> | |
| 35 | + <circle cx="345" cy="110" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 36 | + <circle cx="410" cy="110" r="8" fill="currentColor" /> | |
| 37 | + <circle cx="490" cy="110" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 38 | + <path d="M232 160 Q255 140 278 160" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 39 | + <path d="M292 160 Q315 140 338 160" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 40 | + <path d="M352 160 Q380 140 405 160" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 41 | + <text x="40" y="185" fontSize="16" textAnchor="middle" fill="currentColor">I</text> | |
| 42 | + <text x="100" y="185" fontSize="18" textAnchor="middle" fill="currentColor">NEED</text> | |
| 43 | + <text x="160" y="185" fontSize="16" textAnchor="middle" fill="currentColor">to</text> | |
| 44 | + <text x="225" y="185" fontSize="18" textAnchor="middle" fill="currentColor">PICK</text> | |
| 45 | + <text x="285" y="185" fontSize="16" textAnchor="middle" fill="currentColor">it</text> | |
| 46 | + <text x="345" y="185" fontSize="18" textAnchor="middle" fill="currentColor">UP</text> | |
| 47 | + <text x="410" y="185" fontSize="16" textAnchor="middle" fill="currentColor">at</text> | |
| 48 | + <text x="490" y="185" fontSize="18" textAnchor="middle" fill="currentColor">NOON</text> | |
| 49 | + <text x="300" y="225" fontSize="14" textAnchor="middle" fill="currentColor">Sounds like: I NEED tuh PI-ki-TUP at NOON</text> | |
| 50 | + <text x="300" y="50" fontSize="14" textAnchor="middle" fill="currentColor">Strong beats come at a steady pace, like a drum.</text> | |
| 51 | + </svg> | |
| 52 | + </Diagram> | |
| 53 | + | |
| 54 | + <Say word="I need to pick it up at noon." /> | |
| 55 | + <Say word="The truck is in the shop." /> | |
| 56 | + <Say word="Can you send me the invoice?" /> | |
| 57 | + | |
| 58 | + Try tapping the table on each big beat as you say these. The beats come at a fairly steady pace. The small words squeeze in between. This is why English can sound fast: the weak words are very quick. | |
| 59 | + | |
| 60 | + ## Stress to show meaning | |
| 61 | + | |
| 62 | + You can change the meaning of a sentence by putting extra stress on one word. This is very common in real conversations. | |
| 63 | + | |
| 64 | + <Say word="I didn't say he broke it." /> | |
| 65 | + | |
| 66 | + - "**I** didn't say he broke it." Someone else said it. | |
| 67 | + - "I didn't say **he** broke it." Someone else broke it. | |
| 68 | + - "I didn't say he **broke** it." He did something else to it. | |
| 69 | + | |
| 70 | + At work, use extra stress to correct or make something clear: "The meeting is on **Tuesday**, not Thursday." | |
| 71 | + | |
| 72 | + <Say word="The meeting is on Tuesday, not Thursday." /> | |
| 73 | + | |
| 74 | + ## Linking: joining words together | |
| 75 | + | |
| 76 | + In spoken English, words in a group run together with no breaks. This is called **linking**. There are three main types. | |
| 77 | + | |
| 78 | + **1. Consonant to vowel.** When a word ends in a consonant sound and the next starts with a vowel sound, move the consonant forward. | |
| 79 | + | |
| 80 | + <Say word="Turn it on." /> | |
| 81 | + <Say word="Fill it up." /> | |
| 82 | + <Say word="Clean it out." /> | |
| 83 | + | |
| 84 | + "Fill it up" sounds like "fi-li-tup." | |
| 85 | + | |
| 86 | + **2. Same sound.** When one word ends with the same consonant that starts the next word, say it once, a little longer. | |
| 87 | + | |
| 88 | + <Say word="big gap" hint="BIG-GAP" /> | |
| 89 | + <Say word="hot tea" hint="HOT-TEE" /> | |
| 90 | + <Say word="Call Lisa back." /> | |
| 91 | + | |
| 92 | + **3. Vowel to vowel.** When one word ends in a vowel and the next starts with a vowel, add a small y or w sound to connect them. | |
| 93 | + | |
| 94 | + <Say word="Go out." /> | |
| 95 | + <Say word="I am ready." /> | |
| 96 | + | |
| 97 | + "Go out" sounds like "go-wout." "I am" sounds like "I-yam." | |
| 98 | + | |
| 99 | + ## Pausing in thought groups | |
| 100 | + | |
| 101 | + You do not speak a long sentence in one breath. You break it into **thought groups**, short chunks of words that go together. Pause briefly between groups. Pausing in the right place makes you sound clear and calm. | |
| 102 | + | |
| 103 | + Here, a slash shows a pause: "When you finish the floor / please lock the back door / and leave the keys with Sam." | |
| 104 | + | |
| 105 | + <Say word="When you finish the floor, please lock the back door." /> | |
| 106 | + | |
| 107 | + Good places to pause: at commas and periods, before and, but and so, and after a long subject. Do not pause in the middle of a group, like between "the" and "floor." | |
| 108 | + | |
| 109 | + ## Intonation: up or down | |
| 110 | + | |
| 111 | + **Intonation** is the way your voice goes up and down. Two simple patterns cover most situations. | |
| 112 | + | |
| 113 | + - **Voice goes down** at the end of statements and questions that start with who, what, where, when, why or how. | |
| 114 | + - **Voice goes up** at the end of yes or no questions. | |
| 115 | + | |
| 116 | + <Say word="The parts came today." /> | |
| 117 | + <Say word="Where did you put them?" /> | |
| 118 | + <Say word="Did the parts come today?" /> | |
| 119 | + | |
| 120 | + If your voice stays flat all the time, you may sound bored or unfriendly even when you are not. A little rise and fall makes you sound friendly and interested. | |
| 121 | + | |
| 122 | + ## How to practice rhythm | |
| 123 | + | |
| 124 | + <Steps> | |
| 125 | + <Step title="Mark the stress">Write a sentence you use at work. Underline the content words.</Step> | |
| 126 | + <Step title="Tap the beat">Say the sentence and tap the table on each content word.</Step> | |
| 127 | + <Step title="Shadow a speaker">Play a short sentence from a podcast or video and speak along with it at the same time. Copy the rhythm, not just the words.</Step> | |
| 128 | + <Step title="Record and compare">Record yourself with your phone. Compare it to the audio in this lesson.</Step> | |
| 129 | + </Steps> | |
| 130 | + | |
| 131 | + <Callout type="tip">Start slow. Get the rhythm right at a slow speed first, then speed up. Rhythm matters more than speed.</Callout> | |
| 132 | + | |
| 133 | + ## Common mistakes | |
| 134 | + | |
| 135 | + - **Stressing every word.** It sounds robotic and makes the important words hard to find. | |
| 136 | + - **Pausing between every word.** Keep each thought group together in one smooth flow. | |
| 137 | + - **Flat intonation.** Let your voice go down at the end of statements and up for yes or no questions. | |
| 138 | + - **Saying weak words too clearly.** "To" in "I need to go" is a quick "tuh," not a full "two." | |
| 139 | + | |
| 140 | + ## Practice | |
| 141 | + | |
| 142 | + Take three sentences you say often at work. Mark the stressed words, find the links, and say each one five times with a tapping beat. Then try them at normal speed with a coworker. |
content/lessons/english/pronunciation/word-stress.mdx added
| 1 | + --- | |
| 2 | + title: "Word stress" | |
| 3 | + description: "Learn what word stress is, why it matters more than perfect sounds, and simple patterns that tell you which part of an English word to say louder and longer." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 11 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Every English word with two or more syllables has one part that is stronger than the others. This is called **word stress**. A **syllable** is one beat of sound in a word. "Work" has one syllable. "Wor-ker" has two. "Com-pu-ter" has three. | |
| 11 | + | |
| 12 | + Word stress is one of the most important parts of clear English. If you say a sound a little wrong but the stress is right, people usually understand you. If the stress is wrong, even native speakers may not recognize the word. | |
| 13 | + | |
| 14 | + ## What a stressed syllable sounds like | |
| 15 | + | |
| 16 | + A stressed syllable is: | |
| 17 | + | |
| 18 | + - **louder** | |
| 19 | + - **longer** | |
| 20 | + - **higher** in pitch (the voice goes up a little) | |
| 21 | + - **clearer**, with a full vowel sound | |
| 22 | + | |
| 23 | + The other syllables get quiet, short and relaxed. Their vowels often become a soft "uh" sound. | |
| 24 | + | |
| 25 | + <Diagram caption="Stress patterns as big and small dots. The big dot is the stressed syllable."> | |
| 26 | + <svg viewBox="0 0 600 300" role="img" aria-label="Three words with dot patterns: comPUter small big small, MANager big small small, and hoTEL small big"> | |
| 27 | + <text x="30" y="60" fontSize="18" fill="currentColor">com-PU-ter</text> | |
| 28 | + <circle cx="300" cy="54" r="9" fill="currentColor" /> | |
| 29 | + <circle cx="350" cy="54" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <circle cx="400" cy="54" r="9" fill="currentColor" /> | |
| 31 | + <text x="30" y="150" fontSize="18" fill="currentColor">MAN-a-ger</text> | |
| 32 | + <circle cx="300" cy="144" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 33 | + <circle cx="350" cy="144" r="9" fill="currentColor" /> | |
| 34 | + <circle cx="400" cy="144" r="9" fill="currentColor" /> | |
| 35 | + <text x="30" y="240" fontSize="18" fill="currentColor">ho-TEL</text> | |
| 36 | + <circle cx="300" cy="234" r="9" fill="currentColor" /> | |
| 37 | + <circle cx="350" cy="234" r="22" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 38 | + <text x="450" y="60" fontSize="14" fill="currentColor">small BIG small</text> | |
| 39 | + <text x="450" y="150" fontSize="14" fill="currentColor">BIG small small</text> | |
| 40 | + <text x="450" y="240" fontSize="14" fill="currentColor">small BIG</text> | |
| 41 | + </svg> | |
| 42 | + </Diagram> | |
| 43 | + | |
| 44 | + <Say word="computer" hint="kum-PYOO-ter" /> | |
| 45 | + <Say word="manager" hint="MAN-uh-jer" /> | |
| 46 | + <Say word="hotel" hint="hoh-TEL" /> | |
| 47 | + | |
| 48 | + Listen to "computer." The middle part, PYOO, is loud and long. The first part, "kum," is so quick it almost disappears. Clap on the stressed syllable as you say each word. This helps your body feel the beat. | |
| 49 | + | |
| 50 | + ## Pattern 1: most two-syllable nouns stress the first part | |
| 51 | + | |
| 52 | + Nouns are words for people, places and things. Most two-syllable nouns and adjectives put the stress on the **first** syllable. | |
| 53 | + | |
| 54 | + <Say word="window" hint="WIN-doh" /> | |
| 55 | + <Say word="office" hint="AW-fis" /> | |
| 56 | + <Say word="paper" hint="PAY-per" /> | |
| 57 | + <Say word="kitchen" hint="KICH-un" /> | |
| 58 | + <Say word="heavy" hint="HEV-ee" /> | |
| 59 | + | |
| 60 | + ## Pattern 2: most two-syllable verbs stress the second part | |
| 61 | + | |
| 62 | + Verbs are action words. Many two-syllable verbs put the stress on the **second** syllable. | |
| 63 | + | |
| 64 | + <Say word="repair" hint="rih-PAIR" /> | |
| 65 | + <Say word="install" hint="in-STAWL" /> | |
| 66 | + <Say word="explain" hint="ik-SPLAYN" /> | |
| 67 | + <Say word="deliver" hint="dih-LIV-er" /> | |
| 68 | + | |
| 69 | + Some words are spelled the same as a noun and a verb, and only the stress changes. Listen to these pairs in sentences. | |
| 70 | + | |
| 71 | + <Say word="Keep a record of your hours." /> | |
| 72 | + <Say word="Please record the meeting." /> | |
| 73 | + <Say word="She got a nice present." /> | |
| 74 | + <Say word="I will present the plan." /> | |
| 75 | + | |
| 76 | + In the first sentence of each pair, the word is a noun: REC-ord, PRES-ent. In the second, it is a verb: re-CORD, pre-SENT. Other common pairs: PERmit and perMIT, OBject and obJECT, INcrease and inCREASE. | |
| 77 | + | |
| 78 | + ## Pattern 3: endings that move the stress | |
| 79 | + | |
| 80 | + Some word endings tell you exactly where the stress goes. With **-tion**, **-sion** and **-ic**, the stress falls on the syllable just **before** the ending. | |
| 81 | + | |
| 82 | + <Say word="information" hint="in-fer-MAY-shun" /> | |
| 83 | + <Say word="decision" hint="dih-SIZH-un" /> | |
| 84 | + <Say word="electric" hint="ih-LEK-trik" /> | |
| 85 | + <Say word="electrician" hint="ih-lek-TRISH-un" /> | |
| 86 | + | |
| 87 | + Notice how the stress moves when the word gets longer: | |
| 88 | + | |
| 89 | + <Say word="photograph" hint="FOH-tuh-graf" /> | |
| 90 | + <Say word="photographer" hint="fuh-TOG-ruh-fer" /> | |
| 91 | + <Say word="photographic" hint="foh-tuh-GRAF-ik" /> | |
| 92 | + | |
| 93 | + This is why you should learn the stress with every new word, not just the spelling. | |
| 94 | + | |
| 95 | + ## Work words people often stress wrong | |
| 96 | + | |
| 97 | + These words are common at work and often said with the wrong stress. Press play on each and copy it. | |
| 98 | + | |
| 99 | + <Say word="schedule" hint="SKEJ-ool" /> | |
| 100 | + <Say word="appointment" hint="uh-POINT-ment" /> | |
| 101 | + <Say word="equipment" hint="ih-KWIP-ment" /> | |
| 102 | + <Say word="develop" hint="dih-VEL-up" /> | |
| 103 | + <Say word="important" hint="im-POR-tunt" /> | |
| 104 | + <Say word="comfortable" hint="KUMF-ter-bul" /> | |
| 105 | + | |
| 106 | + "Comfortable" is written with four syllables, but most Americans say only three: KUMF-ter-bul. | |
| 107 | + | |
| 108 | + ## How to find the stress of a new word | |
| 109 | + | |
| 110 | + <Steps> | |
| 111 | + <Step title="Look it up">Dictionary apps and websites like Merriam-Webster show stress with a small mark before the stressed syllable. Most also have a play button.</Step> | |
| 112 | + <Step title="Listen and count">Play the word and count the syllables on your fingers. Which one is loudest?</Step> | |
| 113 | + <Step title="Mark it">Write the word in your notes with the stressed part in capitals, like this lesson does: com-PU-ter.</Step> | |
| 114 | + <Step title="Say it with your hands">Clap or tap the table on the stressed syllable. Then say it in a short sentence.</Step> | |
| 115 | + </Steps> | |
| 116 | + | |
| 117 | + <Callout type="tip">You can ask an AI assistant: "Show the stressed syllable in these words in capital letters: schedule, develop, equipment." Then check with a dictionary audio button.</Callout> | |
| 118 | + | |
| 119 | + ## Common mistakes | |
| 120 | + | |
| 121 | + - **Stressing every syllable the same.** This makes English sound flat and hard to follow. Make one part big and the others small. | |
| 122 | + - **Saying the weak vowels too clearly.** In "manager," the second and third vowels are soft "uh" sounds, not full vowels. | |
| 123 | + - **Using the stress from your first language.** Many words look the same in English and other languages but have different stress, like hotel, chocolate and comfortable. | |
| 124 | + | |
| 125 | + ## Practice | |
| 126 | + | |
| 127 | + Choose five long words you use at work. Look up the stress for each one. Write them with capitals for the stress, then say each one three times while clapping on the big beat. |
content/lessons/english/reading/instructions-labels-and-work-orders.mdx added
| 1 | + --- | |
| 2 | + title: "Reading instructions, safety labels and work orders" | |
| 3 | + description: "Learn the patterns and key words in written instructions, chemical and machine safety labels, and work orders, so you can read them quickly and act safely." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + At work, you read short, important texts every day: steps in a manual, warnings on a machine, a label on a chemical bottle, a work order or ticket that tells you what to do. These texts use a special style. They are short, direct and full of key words. Once you know the patterns, you can read them faster and more safely. | |
| 11 | + | |
| 12 | + ## Instructions: commands in order | |
| 13 | + | |
| 14 | + Instructions usually use the **imperative**. That means the sentence starts with a verb and has no subject. "Turn off the power." "Remove the cover." The subject "you" is understood. | |
| 15 | + | |
| 16 | + <Say word="Turn off the power before you start." /> | |
| 17 | + <Say word="Remove the four screws and lift the cover." /> | |
| 18 | + | |
| 19 | + Instructions are in order. Read them all **before** you start, then follow them one at a time. Watch for these order words: | |
| 20 | + | |
| 21 | + | Word | Meaning | | |
| 22 | + |---|---| | |
| 23 | + | first | do this before anything else | | |
| 24 | + | then, next | do this after the last step | | |
| 25 | + | before | do this earlier than something else | | |
| 26 | + | after, once | do this when the other thing is finished | | |
| 27 | + | until | keep doing it, then stop at this point | | |
| 28 | + | do not, never | a step you must not do | | |
| 29 | + | |
| 30 | + "Tighten until snug" means keep tightening, and stop when it is firm but not forced. | |
| 31 | + | |
| 32 | + <Callout type="tip">Watch out for "before." In "Before you remove the cover, unplug the unit," the unplug step comes first, even though it is written second. Read the whole sentence before you act.</Callout> | |
| 33 | + | |
| 34 | + ## Safety signal words | |
| 35 | + | |
| 36 | + Safety signs and labels use **signal words** to show how serious a hazard is. A **hazard** is something that can hurt you. In the United States, signs follow standards from OSHA (the Occupational Safety and Health Administration) and ANSI (a group that writes safety standards). | |
| 37 | + | |
| 38 | + <Diagram caption="Signal words from most serious to least serious. Danger means death or serious injury will happen if you do not avoid it."> | |
| 39 | + <svg viewBox="0 0 600 280" role="img" aria-label="A stack of four bars from most serious at top to least serious at bottom: Danger, Warning, Caution, Notice"> | |
| 40 | + <rect x="60" y="20" width="400" height="50" rx="6" className="soft" stroke="currentColor" strokeWidth="3" /> | |
| 41 | + <text x="260" y="52" fontSize="20" textAnchor="middle" fill="currentColor">DANGER</text> | |
| 42 | + <rect x="60" y="85" width="400" height="50" rx="6" fill="none" stroke="currentColor" strokeWidth="2.5" /> | |
| 43 | + <text x="260" y="117" fontSize="20" textAnchor="middle" fill="currentColor">WARNING</text> | |
| 44 | + <rect x="60" y="150" width="400" height="50" rx="6" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 45 | + <text x="260" y="182" fontSize="20" textAnchor="middle" fill="currentColor">CAUTION</text> | |
| 46 | + <rect x="60" y="215" width="400" height="50" rx="6" fill="none" stroke="currentColor" strokeWidth="1.5" strokeDasharray="6 4" /> | |
| 47 | + <text x="260" y="247" fontSize="20" textAnchor="middle" fill="currentColor">NOTICE</text> | |
| 48 | + <line x1="500" y1="30" x2="500" y2="255" stroke="currentColor" strokeWidth="2" /> | |
| 49 | + <text x="515" y="45" fontSize="14" fill="currentColor">most</text> | |
| 50 | + <text x="515" y="62" fontSize="14" fill="currentColor">serious</text> | |
| 51 | + <text x="515" y="240" fontSize="14" fill="currentColor">least</text> | |
| 52 | + <text x="515" y="257" fontSize="14" fill="currentColor">serious</text> | |
| 53 | + </svg> | |
| 54 | + </Diagram> | |
| 55 | + | |
| 56 | + - **DANGER:** death or serious injury **will** happen if you do not avoid the hazard. | |
| 57 | + - **WARNING:** death or serious injury **could** happen. | |
| 58 | + - **CAUTION:** minor or moderate injury could happen. | |
| 59 | + - **NOTICE:** important information, but not about injury. For example, damage to equipment. | |
| 60 | + | |
| 61 | + <Say word="danger" hint="DAYN-jer" /> | |
| 62 | + <Say word="warning" hint="WOR-ning" /> | |
| 63 | + <Say word="caution" hint="KAW-shun" /> | |
| 64 | + <Say word="notice" hint="NOH-tis" /> | |
| 65 | + | |
| 66 | + Other words you will see on signs: **hazard** (something that can hurt you), **flammable** (catches fire easily), **corrosive** (burns skin or metal), **toxic** (poisonous), **high voltage** (dangerous electricity), and **PPE** (personal protective equipment, like gloves, glasses and hard hats). | |
| 67 | + | |
| 68 | + <Say word="flammable" hint="FLAM-uh-bul" /> | |
| 69 | + <Say word="corrosive" hint="kuh-ROH-siv" /> | |
| 70 | + <Say word="Wear safety glasses in this area." /> | |
| 71 | + | |
| 72 | + ## Chemical labels | |
| 73 | + | |
| 74 | + Chemical containers at work follow the OSHA Hazard Communication Standard. Every label has the same six parts, so once you learn one, you can read them all: | |
| 75 | + | |
| 76 | + 1. **Product name** | |
| 77 | + 2. **Signal word:** Danger or Warning | |
| 78 | + 3. **Pictograms:** small pictures in a red diamond showing the type of hazard, such as a flame for fire or a skull for poison | |
| 79 | + 4. **Hazard statements:** what the danger is. "Causes severe skin burns." | |
| 80 | + 5. **Precautionary statements:** what to do to stay safe. "Wear protective gloves." | |
| 81 | + 6. **Supplier information:** who made it and how to contact them | |
| 82 | + | |
| 83 | + Every chemical also has a **Safety Data Sheet**, or SDS. It is a longer document with full details, including first aid. Your employer must keep them where you can read them. | |
| 84 | + | |
| 85 | + <Callout type="safety">If you cannot read or understand a chemical label, do not use the product. Ask your supervisor to explain it, and ask where the Safety Data Sheets are kept. You have the right to this information.</Callout> | |
| 86 | + | |
| 87 | + <Callout type="tip">You can take a photo of a label and ask an AI assistant like Claude or ChatGPT to explain it in simple English or in your first language. Use this to learn, but always follow the real label and your supervisor's instructions.</Callout> | |
| 88 | + | |
| 89 | + ## Work orders and tickets | |
| 90 | + | |
| 91 | + A **work order** tells you what job to do. It may be on paper, in an app on your phone, or a ticket in a system. The format changes from company to company, but most have the same fields. A **field** is one box of information. | |
| 92 | + | |
| 93 | + | Field | What it tells you | | |
| 94 | + |---|---| | |
| 95 | + | WO # or Ticket # | the ID number for this job | | |
| 96 | + | Location or Site | where to go | | |
| 97 | + | Priority | how urgent: low, normal, high or emergency | | |
| 98 | + | Description | the problem or the task | | |
| 99 | + | Assigned to | who does the job | | |
| 100 | + | Due date | when it must be done | | |
| 101 | + | Notes | extra details, like a door code or a customer request | | |
| 102 | + | Status | open, in progress, on hold, or closed | | |
| 103 | + | |
| 104 | + Work orders use lots of short forms. Here are common ones: | |
| 105 | + | |
| 106 | + - **ASAP:** as soon as possible | |
| 107 | + - **ETA:** estimated time of arrival, when you will get there | |
| 108 | + - **N/A:** not applicable, does not apply | |
| 109 | + - **Qty:** quantity, how many | |
| 110 | + - **Approx.:** approximately, about | |
| 111 | + - **Pt or P/N:** part number | |
| 112 | + - **Bldg:** building | |
| 113 | + - **Rm:** room | |
| 114 | + | |
| 115 | + <Say word="Priority high. Replace leaking valve in building two, room one oh four." /> | |
| 116 | + | |
| 117 | + ## How to read a work order | |
| 118 | + | |
| 119 | + <Steps> | |
| 120 | + <Step title="Read the description first">What is the actual job? Say it to yourself in one sentence.</Step> | |
| 121 | + <Step title="Check priority and due date">This tells you which job to do first.</Step> | |
| 122 | + <Step title="Read the notes">Notes often hold the details people miss, like "Customer has a dog" or "Use the back door."</Step> | |
| 123 | + <Step title="Ask about anything unclear">If a word or short form is new, ask before you go. "What does PM mean on this ticket?" (Often it means preventive maintenance, regular service done before something breaks.)</Step> | |
| 124 | + <Step title="Update the status">When you finish, close the ticket and add a short note on what you did.</Step> | |
| 125 | + </Steps> | |
| 126 | + | |
| 127 | + ## Common mistakes | |
| 128 | + | |
| 129 | + - **Starting before reading all the steps.** A later step may change an earlier one. | |
| 130 | + - **Skipping the notes on a work order.** That is where the surprises are. | |
| 131 | + - **Treating CAUTION like DANGER, or the other way around.** Learn the order of signal words. | |
| 132 | + - **Guessing a short form.** Ask. Short forms change from shop to shop. | |
| 133 | + | |
| 134 | + <Resources> | |
| 135 | + <Resource title="Hazard Communication" href="https://www.osha.gov/hazcom" source="OSHA" kind="Guide">The official rules for chemical labels and Safety Data Sheets in U.S. workplaces.</Resource> | |
| 136 | + </Resources> |
content/lessons/english/reading/skimming-and-scanning.mdx added
| 1 | + --- | |
| 2 | + title: "Reading faster: skimming and scanning" | |
| 3 | + description: "Learn two simple ways to read faster at work: skimming to get the main idea and scanning to find one fact, plus when you must slow down and read every word." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Intermediate | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Many people learning English read every word, slowly, from the first line to the last. They look up each new word. This feels careful, but it is slow and tiring. Native readers do not read most things that way. | |
| 11 | + | |
| 12 | + Good readers change their speed for the job. This lesson teaches two fast reading methods, **skimming** and **scanning**, and tells you when to slow down. | |
| 13 | + | |
| 14 | + ## Three speeds of reading | |
| 15 | + | |
| 16 | + <Diagram caption="Skim for the main idea, scan for one fact, and read closely when details matter."> | |
| 17 | + <svg viewBox="0 0 600 270" role="img" aria-label="Three pages side by side. Skim: eyes move down the first lines. Scan: eyes jump to one highlighted fact. Close read: every line marked"> | |
| 18 | + <rect x="30" y="30" width="160" height="200" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 19 | + <line x1="50" y1="60" x2="170" y2="60" stroke="currentColor" strokeWidth="4" /> | |
| 20 | + <line x1="50" y1="80" x2="150" y2="80" stroke="currentColor" strokeWidth="1" /> | |
| 21 | + <line x1="50" y1="100" x2="160" y2="100" stroke="currentColor" strokeWidth="1" /> | |
| 22 | + <line x1="50" y1="130" x2="170" y2="130" stroke="currentColor" strokeWidth="4" /> | |
| 23 | + <line x1="50" y1="150" x2="140" y2="150" stroke="currentColor" strokeWidth="1" /> | |
| 24 | + <line x1="50" y1="180" x2="170" y2="180" stroke="currentColor" strokeWidth="4" /> | |
| 25 | + <line x1="50" y1="200" x2="150" y2="200" stroke="currentColor" strokeWidth="1" /> | |
| 26 | + <text x="110" y="258" fontSize="18" textAnchor="middle" fill="currentColor">Skim</text> | |
| 27 | + <rect x="220" y="30" width="160" height="200" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 28 | + <line x1="240" y1="60" x2="360" y2="60" stroke="currentColor" strokeWidth="1" /> | |
| 29 | + <line x1="240" y1="80" x2="350" y2="80" stroke="currentColor" strokeWidth="1" /> | |
| 30 | + <line x1="240" y1="100" x2="360" y2="100" stroke="currentColor" strokeWidth="1" /> | |
| 31 | + <rect x="236" y="120" width="128" height="22" rx="4" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <line x1="240" y1="160" x2="350" y2="160" stroke="currentColor" strokeWidth="1" /> | |
| 33 | + <line x1="240" y1="180" x2="360" y2="180" stroke="currentColor" strokeWidth="1" /> | |
| 34 | + <line x1="240" y1="200" x2="340" y2="200" stroke="currentColor" strokeWidth="1" /> | |
| 35 | + <text x="300" y="258" fontSize="18" textAnchor="middle" fill="currentColor">Scan</text> | |
| 36 | + <rect x="410" y="30" width="160" height="200" rx="8" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 37 | + <line x1="430" y1="60" x2="550" y2="60" stroke="currentColor" strokeWidth="2.5" /> | |
| 38 | + <line x1="430" y1="80" x2="540" y2="80" stroke="currentColor" strokeWidth="2.5" /> | |
| 39 | + <line x1="430" y1="100" x2="550" y2="100" stroke="currentColor" strokeWidth="2.5" /> | |
| 40 | + <line x1="430" y1="120" x2="530" y2="120" stroke="currentColor" strokeWidth="2.5" /> | |
| 41 | + <line x1="430" y1="140" x2="550" y2="140" stroke="currentColor" strokeWidth="2.5" /> | |
| 42 | + <line x1="430" y1="160" x2="540" y2="160" stroke="currentColor" strokeWidth="2.5" /> | |
| 43 | + <line x1="430" y1="180" x2="550" y2="180" stroke="currentColor" strokeWidth="2.5" /> | |
| 44 | + <line x1="430" y1="200" x2="520" y2="200" stroke="currentColor" strokeWidth="2.5" /> | |
| 45 | + <text x="490" y="258" fontSize="18" textAnchor="middle" fill="currentColor">Close read</text> | |
| 46 | + </svg> | |
| 47 | + </Diagram> | |
| 48 | + | |
| 49 | + | Method | Question it answers | Example | | |
| 50 | + |---|---|---| | |
| 51 | + | Skim | What is this about? | A long email from HR. Is it important for me? | | |
| 52 | + | Scan | Where is the one fact I need? | What time does my shift start on Monday? | | |
| 53 | + | Close read | What exactly do I need to do? | Safety steps, a contract, a pay change | | |
| 54 | + | |
| 55 | + ## Skimming: get the main idea fast | |
| 56 | + | |
| 57 | + To **skim** means to look over a text quickly to understand the general idea. You do not read every word. You read the parts that carry the most meaning. | |
| 58 | + | |
| 59 | + <Steps> | |
| 60 | + <Step title="Read the title and subject line">The title tells you the topic. In an email, the subject line often says the whole point.</Step> | |
| 61 | + <Step title="Read the headings and bold words">Headings are the small titles inside a document. Bold words are the ones the writer wants you to see.</Step> | |
| 62 | + <Step title="Read the first sentence of each paragraph">In clear English writing, the first sentence usually gives the main point of the paragraph. The rest are details.</Step> | |
| 63 | + <Step title="Read the last paragraph">The end often says what you need to do next, like "Please reply by Friday."</Step> | |
| 64 | + <Step title="Decide">Now you know the topic. Do you need to read more closely, or is this one you can file away?</Step> | |
| 65 | + </Steps> | |
| 66 | + | |
| 67 | + Skimming a one-page email should take 20 to 30 seconds. Try it with your next long email. | |
| 68 | + | |
| 69 | + <Say word="skim" hint="SKIM" /> | |
| 70 | + <Say word="main idea" hint="MAYN eye-DEE-uh" /> | |
| 71 | + <Say word="heading" hint="HED-ing" /> | |
| 72 | + | |
| 73 | + ## Scanning: find one fact | |
| 74 | + | |
| 75 | + To **scan** means to move your eyes quickly over a text to find one specific thing. You are not trying to understand everything. You are hunting. | |
| 76 | + | |
| 77 | + <Steps> | |
| 78 | + <Step title="Know exactly what you are looking for">Say it to yourself: "I need the part number." "I need the date."</Step> | |
| 79 | + <Step title="Know what it looks like">Dates have numbers and month names. Prices have dollar signs. Names start with capital letters. Phone numbers are groups of digits. Your eyes will catch the shape.</Step> | |
| 80 | + <Step title="Move your eyes fast">Run your eyes down the page in a zigzag or straight down the middle. Do not read the sentences.</Step> | |
| 81 | + <Step title="Stop and read around it">When you find it, read the full sentence to make sure it is the right fact.</Step> | |
| 82 | + </Steps> | |
| 83 | + | |
| 84 | + On a computer or phone, scanning is even faster. Press **Ctrl and F** on Windows, or **Command and F** on a Mac, to search for a word on the page. On a phone, look for **Find in page** in the browser menu, or use the search icon in a PDF. | |
| 85 | + | |
| 86 | + <Say word="scan" hint="SKAN" /> | |
| 87 | + <Say word="What time does the training start?" /> | |
| 88 | + | |
| 89 | + ## When to slow down | |
| 90 | + | |
| 91 | + Fast reading is great for most texts. But some texts need every word. Slow down and read closely when you see: | |
| 92 | + | |
| 93 | + - **Safety instructions and warnings.** One missed "not" can cause an injury. | |
| 94 | + - **Contracts, agreements and anything you sign.** | |
| 95 | + - **Pay, hours and benefits** information. | |
| 96 | + - **Numbers and measurements:** amounts, sizes, doses, torque values. | |
| 97 | + - **Step-by-step instructions** for a task you are about to do. | |
| 98 | + | |
| 99 | + <Callout type="safety">Never skim safety steps or chemical labels. Skim to find the right section, then read that section word by word.</Callout> | |
| 100 | + | |
| 101 | + A good method: skim first to find the important part, then read that part closely. | |
| 102 | + | |
| 103 | + ## Handling new words without stopping | |
| 104 | + | |
| 105 | + When you meet a new word, do not stop every time. Try this order: | |
| 106 | + | |
| 107 | + 1. **Keep reading.** The next sentence often explains it. | |
| 108 | + 2. **Guess from context.** Context means the words around it. In "Wear nitrile gloves when you handle the cleaner," you can guess nitrile is a type of glove material. | |
| 109 | + 3. **Look it up only if you still need it.** If you cannot understand the sentence without it, look it up. A dictionary app or an AI assistant like Claude or ChatGPT can explain it in simple English. | |
| 110 | + | |
| 111 | + <Callout type="tip">Keep a short list of new work words in your phone's notes app. Review it once a week. Words you see often at work are the most useful ones to learn.</Callout> | |
| 112 | + | |
| 113 | + ## Build reading speed over time | |
| 114 | + | |
| 115 | + - **Read a little every day.** News articles, trade magazines and work emails all count. Ten minutes a day builds speed fast. | |
| 116 | + - **Read things you care about.** Interest keeps you going. | |
| 117 | + - **Read texts that are a little easy.** If you know about 95 percent of the words, you read faster and learn new words from context. | |
| 118 | + - **Do not move your lips or point at every word.** It slows you down. Let your eyes move in groups of words. | |
| 119 | + | |
| 120 | + ## Common mistakes | |
| 121 | + | |
| 122 | + - **Reading everything at the same slow speed.** Match the speed to the job. | |
| 123 | + - **Skimming things that need close reading.** Safety and money texts need every word. | |
| 124 | + - **Looking up every new word.** Guess first, look up only when needed. | |
| 125 | + | |
| 126 | + ## Practice | |
| 127 | + | |
| 128 | + Open your work email. Skim three long emails in under 30 seconds each and write one sentence for each main idea. Then scan one email to find a date or a name in under 10 seconds. |
content/lessons/english/speaking/asking-for-help-and-clarifying.mdx added
| 1 | + --- | |
| 2 | + title: "Asking for help and clarifying" | |
| 3 | + description: "Learn polite, clear ways to ask someone to repeat, slow down or explain, and how to check that you understood instructions before you start work." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Everyone misses words sometimes, even native speakers. The problem is not missing a word. The problem is guessing and doing the job wrong. Good workers ask. Asking a clear question shows you care about getting it right. | |
| 11 | + | |
| 12 | + To **clarify** means to make something clear. This lesson gives you phrases to ask for help, ask people to repeat, and check your understanding. | |
| 13 | + | |
| 14 | + ## Asking someone to repeat | |
| 15 | + | |
| 16 | + Use these when you did not hear or did not understand. They are polite in every workplace. | |
| 17 | + | |
| 18 | + <Say word="Could you say that again?" /> | |
| 19 | + <Say word="Sorry, I didn't catch that." /> | |
| 20 | + <Say word="Could you speak a little more slowly, please?" /> | |
| 21 | + <Say word="Could you repeat the last part?" /> | |
| 22 | + | |
| 23 | + "I didn't catch that" means "I didn't hear it clearly." It is very common and very natural. | |
| 24 | + | |
| 25 | + <Callout type="tip">Avoid saying only "What?" It can sound rude in English. "Sorry?" with your voice going up at the end is short and polite.</Callout> | |
| 26 | + | |
| 27 | + <Say word="Sorry?" /> | |
| 28 | + | |
| 29 | + ## Asking about one word | |
| 30 | + | |
| 31 | + Sometimes you understand everything except one word. Ask about just that word. This saves time. | |
| 32 | + | |
| 33 | + <Say word="What does torque mean?" /> | |
| 34 | + <Say word="Sorry, what was the word after valve?" /> | |
| 35 | + <Say word="How do you spell that?" /> | |
| 36 | + | |
| 37 | + Asking for spelling is very useful for names, part numbers and email addresses. You can also ask the person to type it in the chat during a video call. | |
| 38 | + | |
| 39 | + <Say word="Could you put that in the chat?" /> | |
| 40 | + | |
| 41 | + ## Checking that you understood | |
| 42 | + | |
| 43 | + This is the most important skill in this lesson. After someone gives you instructions, say them back in your own words. This is called **confirming**. If you are wrong, the other person can fix it before you start. | |
| 44 | + | |
| 45 | + <Diagram caption="The clarify loop: listen, say it back, then do the task only when they say yes."> | |
| 46 | + <svg viewBox="0 0 600 260" role="img" aria-label="A loop with three steps: Listen, Say it back, Correct. A yes from the speaker leads to Do the task"> | |
| 47 | + <defs> | |
| 48 | + <marker id="arrowClarify" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"> | |
| 49 | + <path d="M0,0 L10,5 L0,10 z" fill="currentColor" /> | |
| 50 | + </marker> | |
| 51 | + </defs> | |
| 52 | + <rect x="30" y="40" width="150" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 53 | + <text x="105" y="76" fontSize="18" textAnchor="middle" fill="currentColor">Listen</text> | |
| 54 | + <rect x="230" y="40" width="150" height="60" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 55 | + <text x="305" y="76" fontSize="18" textAnchor="middle" fill="currentColor">Say it back</text> | |
| 56 | + <rect x="430" y="40" width="150" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 57 | + <text x="505" y="76" fontSize="18" textAnchor="middle" fill="currentColor">Do the task</text> | |
| 58 | + <rect x="230" y="170" width="150" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 59 | + <text x="305" y="206" fontSize="18" textAnchor="middle" fill="currentColor">They correct</text> | |
| 60 | + <line x1="180" y1="70" x2="226" y2="70" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowClarify)" /> | |
| 61 | + <line x1="380" y1="70" x2="426" y2="70" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowClarify)" /> | |
| 62 | + <text x="403" y="60" fontSize="14" textAnchor="middle" fill="currentColor">yes</text> | |
| 63 | + <line x1="290" y1="100" x2="290" y2="166" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowClarify)" /> | |
| 64 | + <text x="270" y="140" fontSize="14" textAnchor="end" fill="currentColor">no</text> | |
| 65 | + <line x1="230" y1="200" x2="105" y2="200" stroke="currentColor" strokeWidth="2" /> | |
| 66 | + <line x1="105" y1="200" x2="105" y2="104" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowClarify)" /> | |
| 67 | + </svg> | |
| 68 | + </Diagram> | |
| 69 | + | |
| 70 | + Useful phrases for confirming: | |
| 71 | + | |
| 72 | + <Say word="Just to check, you want me to clean the filters first?" /> | |
| 73 | + <Say word="So, I should finish this by three o'clock. Is that right?" /> | |
| 74 | + <Say word="Let me make sure I understand." /> | |
| 75 | + | |
| 76 | + Here is a real example. | |
| 77 | + | |
| 78 | + > **Supervisor:** Grab the ladder, check the units on the roof, and swap any dirty filters. | |
| 79 | + > | |
| 80 | + > **You:** Let me make sure I understand. I check every unit on the roof and change the dirty filters. Is that right? | |
| 81 | + > | |
| 82 | + > **Supervisor:** Yes, but just the units on the north side today. | |
| 83 | + | |
| 84 | + The supervisor added a detail you would have missed. That one question saved an hour of extra work. | |
| 85 | + | |
| 86 | + ## Asking for help | |
| 87 | + | |
| 88 | + Asking for help early is a strength. Waiting until something goes wrong is the real mistake. Here are polite ways to start. | |
| 89 | + | |
| 90 | + <Say word="Do you have a minute?" /> | |
| 91 | + <Say word="Can you help me with something?" /> | |
| 92 | + <Say word="Could you show me how to do this?" /> | |
| 93 | + <Say word="I'm not sure how to do this part." /> | |
| 94 | + | |
| 95 | + Then say what you tried. This shows effort and helps the person help you faster. | |
| 96 | + | |
| 97 | + <Say word="I tried restarting it, but it still doesn't work." /> | |
| 98 | + | |
| 99 | + <Steps> | |
| 100 | + <Step title="Get their attention politely">"Do you have a minute?" If they are busy, they will tell you when to come back.</Step> | |
| 101 | + <Step title="Say the problem in one sentence">"The label printer won't print."</Step> | |
| 102 | + <Step title="Say what you already tried">"I checked the paper and restarted it."</Step> | |
| 103 | + <Step title="Ask a clear question">"Could you show me what to do next?"</Step> | |
| 104 | + <Step title="Thank them">"Thanks, that really helps." Next time, you can do it yourself.</Step> | |
| 105 | + </Steps> | |
| 106 | + | |
| 107 | + <Say word="Thanks, that really helps." /> | |
| 108 | + | |
| 109 | + ## When safety is involved | |
| 110 | + | |
| 111 | + If an instruction is about safety and you are not 100 percent sure, always ask. Never guess with electricity, chemicals, ladders, machines or vehicles. | |
| 112 | + | |
| 113 | + <Callout type="safety">If you do not understand a safety instruction, stop and ask before you start. Say, "I want to be sure I do this safely. Can you show me?" Your supervisor would much rather explain twice than deal with an injury.</Callout> | |
| 114 | + | |
| 115 | + <Say word="I want to be sure I do this safely. Can you show me?" /> | |
| 116 | + | |
| 117 | + ## On the phone and video calls | |
| 118 | + | |
| 119 | + Sound on calls is often worse than in person. These phrases help. | |
| 120 | + | |
| 121 | + <Say word="Sorry, you're breaking up." /> | |
| 122 | + <Say word="I think you're on mute." /> | |
| 123 | + <Say word="Could you send me that in an email?" /> | |
| 124 | + | |
| 125 | + "You're breaking up" means the sound keeps cutting out. Asking for an email or chat message gives you the details in writing, which you can read slowly or translate. | |
| 126 | + | |
| 127 | + ## Common mistakes | |
| 128 | + | |
| 129 | + - **Nodding when you do not understand.** It feels polite, but it causes mistakes. Ask instead. | |
| 130 | + - **Saying "yes" to "Do you understand?"** That question is hard to answer honestly. Say the instructions back instead. | |
| 131 | + - **Asking the same question many times.** Write down the answer the first time, in a notebook or on your phone. | |
| 132 | + - **Apologizing too much.** One "sorry" is enough. Then ask your question clearly. | |
| 133 | + | |
| 134 | + ## Practice | |
| 135 | + | |
| 136 | + Pick three phrases from this lesson and use each one at work this week. Start with "Just to check..." after your next set of instructions. |
content/lessons/english/speaking/introducing-yourself-and-small-talk.mdx added
| 1 | + --- | |
| 2 | + title: "Introducing yourself and small talk at work" | |
| 3 | + description: "Learn what to say when you meet someone new at work, and how to keep a short, friendly chat going before a meeting, on a break or at the coffee machine." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + The first minute with a new coworker matters. A clear, friendly introduction makes people remember you and trust you. Small talk is the short, light conversation people have before real work starts. It is not wasted time. It builds the relationships that make work easier later. | |
| 11 | + | |
| 12 | + This lesson gives you ready phrases, a simple pattern to follow, and the common mistakes to avoid. Press play on each phrase and say it out loud after the voice. | |
| 13 | + | |
| 14 | + ## The three-part introduction | |
| 15 | + | |
| 16 | + A good work introduction has three short parts: your name, your role, and one friendly line. That is all. Keep it under 15 seconds. | |
| 17 | + | |
| 18 | + <Diagram caption="A work introduction in three short parts: name, role, then one friendly line."> | |
| 19 | + <svg viewBox="0 0 600 200" role="img" aria-label="Three boxes in a row labeled Name, Role and Friendly line, joined by arrows"> | |
| 20 | + <defs> | |
| 21 | + <marker id="arrowIntro" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"> | |
| 22 | + <path d="M0,0 L10,5 L0,10 z" fill="currentColor" /> | |
| 23 | + </marker> | |
| 24 | + </defs> | |
| 25 | + <rect x="20" y="50" width="160" height="70" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 26 | + <rect x="220" y="50" width="160" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <rect x="420" y="50" width="160" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 28 | + <line x1="180" y1="85" x2="216" y2="85" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowIntro)" /> | |
| 29 | + <line x1="380" y1="85" x2="416" y2="85" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowIntro)" /> | |
| 30 | + <text x="100" y="92" fontSize="18" textAnchor="middle" fill="currentColor">1. Name</text> | |
| 31 | + <text x="300" y="92" fontSize="18" textAnchor="middle" fill="currentColor">2. Role</text> | |
| 32 | + <text x="500" y="92" fontSize="18" textAnchor="middle" fill="currentColor">3. Friendly line</text> | |
| 33 | + <text x="100" y="155" fontSize="14" textAnchor="middle" fill="currentColor">Hi, I'm Ana.</text> | |
| 34 | + <text x="300" y="155" fontSize="14" textAnchor="middle" fill="currentColor">I'm the new electrician.</text> | |
| 35 | + <text x="500" y="155" fontSize="14" textAnchor="middle" fill="currentColor">Nice to meet you.</text> | |
| 36 | + </svg> | |
| 37 | + </Diagram> | |
| 38 | + | |
| 39 | + <Say word="Hi, I'm Ana. I'm the new electrician on this crew." /> | |
| 40 | + <Say word="Hi, I'm David. I just started in accounting." /> | |
| 41 | + <Say word="Nice to meet you." /> | |
| 42 | + | |
| 43 | + When the other person says their name, repeat it back. This helps you remember it, and people like hearing their name. | |
| 44 | + | |
| 45 | + <Say word="Nice to meet you, Sam." /> | |
| 46 | + | |
| 47 | + If you did not catch the name, ask right away. It is much easier now than two weeks later. | |
| 48 | + | |
| 49 | + <Say word="Sorry, how do you say your name?" /> | |
| 50 | + | |
| 51 | + ## Answering common questions | |
| 52 | + | |
| 53 | + New coworkers often ask the same few questions. Have a short answer ready for each one. | |
| 54 | + | |
| 55 | + | They ask | You can say | | |
| 56 | + |---|---| | |
| 57 | + | Where are you from? | I'm from Colombia. I've lived here for three years. | | |
| 58 | + | What did you do before this? | I worked in a warehouse for two years. | | |
| 59 | + | How's your first week going? | Good, thanks. Everyone has been really helpful. | | |
| 60 | + | What team are you on? | I'm on the night shift with Maria. | | |
| 61 | + | |
| 62 | + <Say word="How's your first week going?" /> | |
| 63 | + <Say word="Good, thanks. Everyone has been really helpful." /> | |
| 64 | + | |
| 65 | + <Callout type="tip">Answer, then ask a question back. "Good, thanks. How long have you worked here?" This is the secret of small talk. It turns a question into a conversation.</Callout> | |
| 66 | + | |
| 67 | + ## Safe small talk topics | |
| 68 | + | |
| 69 | + Small talk works best with light, easy topics. These are safe almost everywhere in the United States and many other countries: | |
| 70 | + | |
| 71 | + - **The weather.** "It's freezing today." "Nice weather for once." | |
| 72 | + - **The weekend.** "Did you do anything fun this weekend?" | |
| 73 | + - **The work itself, in a light way.** "Busy day today?" | |
| 74 | + - **Food.** "Do you know a good place for lunch near here?" | |
| 75 | + - **Sports, shows and travel**, if the other person brings them up. | |
| 76 | + | |
| 77 | + <Say word="Did you do anything fun this weekend?" /> | |
| 78 | + <Say word="Do you know a good place for lunch near here?" /> | |
| 79 | + <Say word="Busy day today?" /> | |
| 80 | + | |
| 81 | + Topics to avoid with people you do not know well: money and pay, religion, politics, someone's age or weight, and health problems. Also avoid complaining about the boss. People remember that. | |
| 82 | + | |
| 83 | + ## Keeping it going and ending it politely | |
| 84 | + | |
| 85 | + Small talk usually lasts one to three minutes. You do not need to say much. Follow these steps. | |
| 86 | + | |
| 87 | + <Steps> | |
| 88 | + <Step title="Open with a light question">Pick a safe topic. "How was your weekend?" Questions that start with how, what or where get longer answers than yes or no questions.</Step> | |
| 89 | + <Step title="Listen and react">Show interest with short reactions. "Oh, nice." "Really?" "That sounds fun." This tells the speaker you are listening.</Step> | |
| 90 | + <Step title="Add one small fact about you">"I went hiking too, at the lake." Sharing a little makes it a two-way talk.</Step> | |
| 91 | + <Step title="End with a friendly exit">When it is time to work, close it kindly. Do not just walk away.</Step> | |
| 92 | + </Steps> | |
| 93 | + | |
| 94 | + <Say word="Oh, nice. That sounds fun." /> | |
| 95 | + <Say word="Well, I should get back to work. Talk to you later." /> | |
| 96 | + <Say word="It was good to meet you. See you around." /> | |
| 97 | + | |
| 98 | + ## Introductions on video calls and in chat | |
| 99 | + | |
| 100 | + Today many first meetings happen on a video call or in a team chat app like Slack, Microsoft Teams or Google Chat. | |
| 101 | + | |
| 102 | + On a video call, the host may say, "Let's go around and introduce ourselves." Use the same three parts. Unmute, say it, then mute again. | |
| 103 | + | |
| 104 | + <Say word="Hi everyone, I'm Ana. I'm joining the support team this week." /> | |
| 105 | + | |
| 106 | + In a team chat, a short written hello is normal on your first day. For example: "Hi everyone, I'm Ana. I just joined the support team. Looking forward to working with you." A wave emoji is fine in most workplaces. | |
| 107 | + | |
| 108 | + ## Common mistakes | |
| 109 | + | |
| 110 | + - **Talking too long.** An introduction is not a life story. Name, role, one line. | |
| 111 | + - **Speaking too fast because you are nervous.** Slow down. Clear and slow sounds confident. | |
| 112 | + - **Only answering, never asking.** Ask one question back every time. | |
| 113 | + - **Saying "I'm sorry, my English is bad."** You do not need to apologize. If you need help, say, "I'm still learning English, so please tell me if I'm not clear." That sounds confident and honest. | |
| 114 | + | |
| 115 | + <Say word="I'm still learning English, so please tell me if I'm not clear." /> | |
| 116 | + | |
| 117 | + ## Practice | |
| 118 | + | |
| 119 | + Say your own three-part introduction out loud five times today. Then try one real small talk question with a coworker, like "How was your weekend?" Each time gets easier. |
content/lessons/english/work-words/customer-service-words.mdx added
| 1 | + --- | |
| 2 | + title: "Words for customers and service" | |
| 3 | + description: "Learn 22 key words for serving customers, handling money and fixing problems, with audio, a plain meaning and an example for each, plus phrases for a polite service conversation." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Beginner | |
| 7 | + order: 3 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Whether you work in a store, a restaurant, a repair company or an office, you talk to customers. Customers remember how you made them feel. Clear, polite words help you solve problems fast and keep customers coming back. | |
| 11 | + | |
| 12 | + For each word, press play, listen, and repeat it out loud. The hint shows how to say it, with the stressed part in CAPITAL letters. | |
| 13 | + | |
| 14 | + ## The service conversation | |
| 15 | + | |
| 16 | + Most service conversations follow the same five steps. Knowing the steps helps you know what to say next. | |
| 17 | + | |
| 18 | + <Diagram caption="Five steps of a good service conversation, from greeting to thanks."> | |
| 19 | + <svg viewBox="0 0 600 220" role="img" aria-label="Five circles in a row joined by arrows: Greet, Listen, Help, Confirm, Thank"> | |
| 20 | + <defs> | |
| 21 | + <marker id="arrowService" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"> | |
| 22 | + <path d="M0,0 L10,5 L0,10 z" fill="currentColor" /> | |
| 23 | + </marker> | |
| 24 | + </defs> | |
| 25 | + <circle cx="65" cy="90" r="45" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 26 | + <circle cx="182" cy="90" r="45" className="soft" stroke="currentColor" strokeWidth="2.5" /> | |
| 27 | + <circle cx="300" cy="90" r="45" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 28 | + <circle cx="418" cy="90" r="45" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <circle cx="535" cy="90" r="45" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <line x1="110" y1="90" x2="133" y2="90" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowService)" /> | |
| 31 | + <line x1="227" y1="90" x2="251" y2="90" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowService)" /> | |
| 32 | + <line x1="345" y1="90" x2="369" y2="90" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowService)" /> | |
| 33 | + <line x1="463" y1="90" x2="486" y2="90" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowService)" /> | |
| 34 | + <text x="65" y="96" fontSize="16" textAnchor="middle" fill="currentColor">Greet</text> | |
| 35 | + <text x="182" y="96" fontSize="16" textAnchor="middle" fill="currentColor">Listen</text> | |
| 36 | + <text x="300" y="96" fontSize="16" textAnchor="middle" fill="currentColor">Help</text> | |
| 37 | + <text x="418" y="96" fontSize="16" textAnchor="middle" fill="currentColor">Confirm</text> | |
| 38 | + <text x="535" y="96" fontSize="16" textAnchor="middle" fill="currentColor">Thank</text> | |
| 39 | + <text x="300" y="180" fontSize="14" textAnchor="middle" fill="currentColor">Listening is the step people rush. Let the customer finish.</text> | |
| 40 | + </svg> | |
| 41 | + </Diagram> | |
| 42 | + | |
| 43 | + <Say word="Hi, how can I help you today?" /> | |
| 44 | + <Say word="Let me make sure I have that right." /> | |
| 45 | + <Say word="Is there anything else I can help with?" /> | |
| 46 | + <Say word="Thanks for coming in. Have a great day." /> | |
| 47 | + | |
| 48 | + ## People and visits | |
| 49 | + | |
| 50 | + <Say word="customer" hint="KUS-tuh-mer" /> | |
| 51 | + A person who buys from a store or company. *Example: Please help the customer at the counter.* | |
| 52 | + | |
| 53 | + <Say word="client" hint="KLY-unt" /> | |
| 54 | + A customer you work for over time, often for a service. *Example: Our client wants the kitchen done by June.* | |
| 55 | + | |
| 56 | + <Say word="appointment" hint="uh-POINT-ment" /> | |
| 57 | + A set time to meet or do a job. *Example: Your appointment is Tuesday between eight and ten.* | |
| 58 | + | |
| 59 | + <Say word="reschedule" hint="ree-SKEJ-ool" /> | |
| 60 | + To change an appointment to a new time. *Example: Can we reschedule for Thursday morning?* | |
| 61 | + | |
| 62 | + <Say word="cancel" hint="KAN-sul" /> | |
| 63 | + To stop a plan or order so it does not happen. *Example: I need to cancel my order.* | |
| 64 | + | |
| 65 | + <Say word="available" hint="uh-VAY-luh-bul" /> | |
| 66 | + Free to use, buy or meet. *Example: The technician is available after two.* | |
| 67 | + | |
| 68 | + ## Prices and money | |
| 69 | + | |
| 70 | + <Say word="estimate" hint="ES-tuh-mit" /> | |
| 71 | + A guess of how much a job will cost before it starts. The final price may change. *Example: I'll send you an estimate tomorrow.* | |
| 72 | + | |
| 73 | + <Say word="quote" hint="KWOHT" /> | |
| 74 | + A fixed price you offer for a job, usually in writing. *Example: The quote is good for thirty days.* | |
| 75 | + | |
| 76 | + <Say word="invoice" hint="IN-vois" /> | |
| 77 | + A document that asks the customer to pay for work done. *Example: I emailed you the invoice this morning.* | |
| 78 | + | |
| 79 | + <Say word="receipt" hint="rih-SEET" /> | |
| 80 | + A paper or email that shows a customer paid. The p is silent. *Example: Would you like your receipt by text or email?* | |
| 81 | + | |
| 82 | + <Say word="deposit" hint="dih-POZ-it" /> | |
| 83 | + Money paid before work starts, to hold a spot or buy materials. *Example: We need a deposit to order the cabinets.* | |
| 84 | + | |
| 85 | + <Say word="discount" hint="DIS-kownt" /> | |
| 86 | + A lower price than normal. *Example: Seniors get a ten percent discount.* | |
| 87 | + | |
| 88 | + <Say word="refund" hint="REE-fund" /> | |
| 89 | + Money given back to a customer. *Example: You'll see the refund on your card in a few days.* | |
| 90 | + | |
| 91 | + <Say word="exchange" hint="iks-CHAYNJ" /> | |
| 92 | + To trade one item for another, like a different size. *Example: You can exchange it for a larger size.* | |
| 93 | + | |
| 94 | + ## Rules and problems | |
| 95 | + | |
| 96 | + <Say word="policy" hint="POL-uh-see" /> | |
| 97 | + A rule a company follows, like how returns work. *Example: Our return policy is thirty days with a receipt.* | |
| 98 | + | |
| 99 | + <Say word="warranty" hint="WOR-un-tee" /> | |
| 100 | + A promise to fix or replace a product or job if it fails within a set time. *Example: The water heater has a six-year warranty.* | |
| 101 | + | |
| 102 | + <Say word="out of stock" hint="owt uv STOK" /> | |
| 103 | + Not available right now because the store has none left. *Example: That model is out of stock, but we can order it.* | |
| 104 | + | |
| 105 | + <Say word="complaint" hint="kum-PLAYNT" /> | |
| 106 | + When a customer says they are unhappy about something. *Example: We take every complaint seriously.* | |
| 107 | + | |
| 108 | + <Say word="apologize" hint="uh-POL-uh-jyz" /> | |
| 109 | + To say you are sorry. *Example: I apologize for the wait.* | |
| 110 | + | |
| 111 | + <Say word="follow up" hint="FOL-oh UP" /> | |
| 112 | + To contact someone again later to check or finish something. *Example: I'll follow up with you on Monday.* | |
| 113 | + | |
| 114 | + <Say word="satisfied" hint="SAT-is-fyd" /> | |
| 115 | + Happy with the result. *Example: Are you satisfied with the repair?* | |
| 116 | + | |
| 117 | + <Say word="review" hint="rih-VYOO" /> | |
| 118 | + A rating or comment a customer posts online, for example on Google. *Example: If you liked our service, a review really helps.* | |
| 119 | + | |
| 120 | + ## Handling an unhappy customer | |
| 121 | + | |
| 122 | + Unhappy customers want two things: to be heard, and to get a fix. Use this order. | |
| 123 | + | |
| 124 | + <Steps> | |
| 125 | + <Step title="Listen without interrupting">Let them finish. Nod and say "I understand."</Step> | |
| 126 | + <Step title="Apologize for the experience">"I'm sorry this happened." You are not saying it was your fault. You are showing you care.</Step> | |
| 127 | + <Step title="Say what you can do">Focus on what is possible, not what is not. "I can replace it today."</Step> | |
| 128 | + <Step title="Get help if you need it">If you cannot fix it, say "Let me get my manager." Do not make promises you cannot keep.</Step> | |
| 129 | + </Steps> | |
| 130 | + | |
| 131 | + <Say word="I'm sorry this happened. Let's fix it." /> | |
| 132 | + <Say word="Here's what I can do for you." /> | |
| 133 | + <Say word="Let me get my manager." /> | |
| 134 | + | |
| 135 | + <Callout type="tip">Say "Here's what I can do" instead of "I can't do that." Both may be true, but the first one keeps the customer calm and moving toward a solution.</Callout> | |
| 136 | + | |
| 137 | + ## How to learn these words | |
| 138 | + | |
| 139 | + - **Listen to coworkers** who are good with customers. Write down the phrases they use. | |
| 140 | + - **Practice the five steps** out loud at home, playing both the customer and yourself. | |
| 141 | + - **Learn the words for your products and services first.** Those are the ones customers ask about most. |
content/lessons/english/work-words/job-site-and-shop-words.mdx added
| 1 | + --- | |
| 2 | + title: "Words for the job site and shop" | |
| 3 | + description: "Learn 23 key words you will hear on construction sites, in warehouses and in repair shops, with audio, a plain meaning and a real example for each." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + On a job site or in a shop, people talk fast and use short, practical words. Many of them are about safety. If you know these words, you can follow instructions, ask for the right tool, and stay safe. | |
| 11 | + | |
| 12 | + For each word, press play, listen, and say it out loud two or three times. The hint shows how to say it. The part in CAPITAL letters is the stressed part, which means you say it a little louder and longer. | |
| 13 | + | |
| 14 | + ## Safety gear | |
| 15 | + | |
| 16 | + **PPE** means personal protective equipment. It is the gear you wear to protect your body. Your employer tells you which PPE each job needs. | |
| 17 | + | |
| 18 | + <Diagram caption="Common PPE on a job site, from head to feet."> | |
| 19 | + <svg viewBox="0 0 600 340" role="img" aria-label="A simple figure of a worker wearing a hard hat, safety glasses, safety vest, gloves and steel toe boots, each one labeled"> | |
| 20 | + <path d="M255 70 Q300 25 345 70 Z" className="soft" stroke="currentColor" strokeWidth="2.5" /> | |
| 21 | + <line x1="245" y1="70" x2="355" y2="70" stroke="currentColor" strokeWidth="3" /> | |
| 22 | + <circle cx="300" cy="95" r="25" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 23 | + <rect x="280" y="86" width="40" height="12" rx="4" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 24 | + <rect x="265" y="125" width="70" height="100" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 25 | + <line x1="265" y1="160" x2="335" y2="160" stroke="currentColor" strokeWidth="2" strokeDasharray="6 4" /> | |
| 26 | + <line x1="265" y1="135" x2="225" y2="215" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <line x1="335" y1="135" x2="375" y2="215" stroke="currentColor" strokeWidth="2" /> | |
| 28 | + <rect x="212" y="212" width="24" height="24" rx="5" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <rect x="364" y="212" width="24" height="24" rx="5" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <line x1="285" y1="225" x2="280" y2="295" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <line x1="315" y1="225" x2="320" y2="295" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <rect x="255" y="295" width="35" height="18" rx="5" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 33 | + <rect x="310" y="295" width="35" height="18" rx="5" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 34 | + <text x="400" y="55" fontSize="16" fill="currentColor">hard hat</text> | |
| 35 | + <line x1="350" y1="55" x2="395" y2="52" stroke="currentColor" strokeWidth="1" /> | |
| 36 | + <text x="400" y="100" fontSize="16" fill="currentColor">safety glasses</text> | |
| 37 | + <line x1="322" y1="92" x2="395" y2="96" stroke="currentColor" strokeWidth="1" /> | |
| 38 | + <text x="100" y="165" fontSize="16" fill="currentColor">safety vest</text> | |
| 39 | + <line x1="190" y1="160" x2="262" y2="160" stroke="currentColor" strokeWidth="1" /> | |
| 40 | + <text x="420" y="228" fontSize="16" fill="currentColor">gloves</text> | |
| 41 | + <line x1="390" y1="224" x2="415" y2="224" stroke="currentColor" strokeWidth="1" /> | |
| 42 | + <text x="380" y="315" fontSize="16" fill="currentColor">steel toe boots</text> | |
| 43 | + <line x1="347" y1="305" x2="375" y2="310" stroke="currentColor" strokeWidth="1" /> | |
| 44 | + </svg> | |
| 45 | + </Diagram> | |
| 46 | + | |
| 47 | + <Say word="hard hat" hint="HARD hat" /> | |
| 48 | + A hard plastic helmet that protects your head from falling objects. *Example: Hard hats are required past this sign.* | |
| 49 | + | |
| 50 | + <Say word="safety glasses" hint="SAYF-tee GLAS-iz" /> | |
| 51 | + Clear glasses that protect your eyes from dust, sparks and chips. *Example: Put on your safety glasses before you cut.* | |
| 52 | + | |
| 53 | + <Say word="safety vest" hint="SAYF-tee VEST" /> | |
| 54 | + A bright vest that helps drivers and machine operators see you. People also call it a hi-vis vest. *Example: Wear your safety vest near the loading dock.* | |
| 55 | + | |
| 56 | + <Say word="steel toe boots" hint="STEEL toh BOOTS" /> | |
| 57 | + Work boots with a metal cap over the toes to protect your feet. *Example: You need steel toe boots in the warehouse.* | |
| 58 | + | |
| 59 | + <Say word="gloves" hint="GLUVZ" /> | |
| 60 | + Coverings for your hands. Different gloves protect from cuts, heat or chemicals. *Example: Use cut-resistant gloves for sheet metal.* | |
| 61 | + | |
| 62 | + ## Tools | |
| 63 | + | |
| 64 | + <Say word="ladder" hint="LAD-er" /> | |
| 65 | + A climbing tool with steps. Common types are step ladders and extension ladders. *Example: Hold the ladder while I climb up.* | |
| 66 | + | |
| 67 | + <Say word="scaffold" hint="SKAF-old" /> | |
| 68 | + A temporary platform built so workers can stand and work up high. *Example: The scaffold must be inspected before anyone uses it.* | |
| 69 | + | |
| 70 | + <Say word="extension cord" hint="ik-STEN-shun KORD" /> | |
| 71 | + A long electric cable that brings power from an outlet to a tool. *Example: Check the extension cord for cuts before you plug it in.* | |
| 72 | + | |
| 73 | + <Say word="drill" hint="DRIL" /> | |
| 74 | + A power tool that makes holes and drives screws. Most are cordless and run on batteries. *Example: Grab the drill and a quarter-inch bit.* | |
| 75 | + | |
| 76 | + <Say word="impact driver" hint="IM-pakt DRY-ver" /> | |
| 77 | + A cordless tool that drives screws and bolts with strong, fast hits. *Example: Use the impact driver for the long deck screws.* | |
| 78 | + | |
| 79 | + <Say word="level" hint="LEV-ul" /> | |
| 80 | + A tool with a bubble that shows if something is perfectly flat or straight up and down. *Example: Put a level on that shelf before you screw it in.* | |
| 81 | + | |
| 82 | + <Say word="tape measure" hint="TAYP MEZH-er" /> | |
| 83 | + A metal tape in a case, used to measure length. *Example: Measure twice with the tape measure, then cut once.* | |
| 84 | + | |
| 85 | + <Say word="wrench" hint="RENCH" /> | |
| 86 | + A hand tool for turning nuts and bolts. *Example: Hand me the nine-sixteenths wrench.* | |
| 87 | + | |
| 88 | + <Say word="pliers" hint="PLY-erz" /> | |
| 89 | + A hand tool with two handles for gripping, bending or cutting wire. *Example: Use the pliers to pull that nail out.* | |
| 90 | + | |
| 91 | + ## Warehouse and shop | |
| 92 | + | |
| 93 | + <Say word="forklift" hint="FORK-lift" /> | |
| 94 | + A small vehicle with two metal arms in front for lifting heavy loads. Only trained, certified workers may drive one. *Example: Stay clear when the forklift is backing up.* | |
| 95 | + | |
| 96 | + <Say word="pallet" hint="PAL-it" /> | |
| 97 | + A flat wooden or plastic frame that holds goods so a forklift can move them. *Example: Stack the boxes on the empty pallet.* | |
| 98 | + | |
| 99 | + <Say word="inventory" hint="IN-vun-tor-ee" /> | |
| 100 | + All the goods and supplies a company has in stock, or the job of counting them. *Example: We do inventory on the last Friday of the month.* | |
| 101 | + | |
| 102 | + <Say word="debris" hint="duh-BREE" /> | |
| 103 | + Broken pieces, scraps and trash left from work. *Example: Clear the debris off the floor before you leave.* | |
| 104 | + | |
| 105 | + ## People, time and process | |
| 106 | + | |
| 107 | + <Say word="shift" hint="SHIFT" /> | |
| 108 | + Your set working time, like day shift or night shift. *Example: My shift starts at six.* | |
| 109 | + | |
| 110 | + <Say word="foreman" hint="FOR-mun" /> | |
| 111 | + The person who leads a crew and gives daily instructions. Some places say lead or supervisor. *Example: Ask the foreman where he wants these pipes.* | |
| 112 | + | |
| 113 | + <Say word="punch list" hint="PUNCH list" /> | |
| 114 | + A list of small jobs left to fix before a project is finished. *Example: Touch-up paint is the last thing on the punch list.* | |
| 115 | + | |
| 116 | + <Say word="breaker" hint="BRAY-ker" /> | |
| 117 | + A switch in the electrical panel that cuts power to a circuit. *Example: Turn off the breaker before you change the light fixture.* | |
| 118 | + | |
| 119 | + <Say word="lockout tagout" hint="LOK-owt TAG-owt" /> | |
| 120 | + A safety process: you lock the power off and put a tag on it so no one turns it back on while you work. *Example: Follow lockout tagout before you open that machine.* | |
| 121 | + | |
| 122 | + <Callout type="safety">If you hear "lockout tagout" and you have not been trained, do not touch the lock or the machine. Ask your supervisor. Only trained workers may do it, and OSHA rules require the training.</Callout> | |
| 123 | + | |
| 124 | + ## Short forms you will hear | |
| 125 | + | |
| 126 | + - **OSHA:** the U.S. agency for workplace safety. Say it "OH-shuh." | |
| 127 | + - **ETA:** when someone or something will arrive. | |
| 128 | + - **PPE:** personal protective equipment, said letter by letter. | |
| 129 | + | |
| 130 | + <Say word="OSHA" hint="OH-shuh" /> | |
| 131 | + | |
| 132 | + ## How to learn these words | |
| 133 | + | |
| 134 | + - **Say each word out loud** while you hold or look at the real thing. | |
| 135 | + - **Make a list in your phone** of words you hear at work and do not know. Ask a coworker or an AI assistant to explain them. | |
| 136 | + - **Ask for the word.** Point and say "What do you call this?" People are happy to tell you. | |
| 137 | + | |
| 138 | + <Resources> | |
| 139 | + <Resource title="Personal Protective Equipment" href="https://www.osha.gov/personal-protective-equipment" source="OSHA" kind="Guide">What PPE is and what your employer must provide.</Resource> | |
| 140 | + <Resource title="Control of Hazardous Energy (Lockout/Tagout)" href="https://www.osha.gov/control-hazardous-energy" source="OSHA" kind="Guide">The official rules for lockout tagout.</Resource> | |
| 141 | + </Resources> |
content/lessons/english/work-words/office-and-computer-words.mdx added
| 1 | + --- | |
| 2 | + title: "Words for the office and computers" | |
| 3 | + description: "Learn 23 everyday words for computers, files, email and scheduling, with audio, a plain meaning and an example for each, so you can follow tech talk at work." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Almost every job uses computers and phones now. Even on a job site, you may clock in on an app, read work orders on a tablet, or join a video call. Office and tech words are used everywhere. | |
| 11 | + | |
| 12 | + For each word, press play, listen, and repeat it. The hint shows how to say it, with the stressed part in CAPITAL letters. | |
| 13 | + | |
| 14 | + ## Your computer | |
| 15 | + | |
| 16 | + <Diagram caption="The parts of a computer screen you will hear about most."> | |
| 17 | + <svg viewBox="0 0 600 320" role="img" aria-label="A computer screen showing a browser window with a tab and a link, a folder and a file on the desktop, and a cursor"> | |
| 18 | + <rect x="60" y="20" width="480" height="240" rx="12" fill="none" stroke="currentColor" strokeWidth="2.5" /> | |
| 19 | + <rect x="250" y="260" width="100" height="26" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 20 | + <line x1="200" y1="292" x2="400" y2="292" stroke="currentColor" strokeWidth="3" /> | |
| 21 | + <rect x="180" y="45" width="330" height="190" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 22 | + <rect x="190" y="52" width="110" height="26" rx="5" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 23 | + <text x="245" y="70" fontSize="14" textAnchor="middle" fill="currentColor">tab</text> | |
| 24 | + <line x1="180" y1="84" x2="510" y2="84" stroke="currentColor" strokeWidth="1.5" /> | |
| 25 | + <text x="345" y="140" fontSize="16" textAnchor="middle" fill="currentColor">browser window</text> | |
| 26 | + <text x="345" y="175" fontSize="16" textAnchor="middle" fill="currentColor">a link</text> | |
| 27 | + <line x1="315" y1="180" x2="375" y2="180" stroke="currentColor" strokeWidth="1.5" /> | |
| 28 | + <path d="M85 60 L85 100 L150 100 L150 66 L115 66 L108 60 Z" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <text x="117" y="122" fontSize="14" textAnchor="middle" fill="currentColor">folder</text> | |
| 30 | + <path d="M100 150 L100 200 L138 200 L138 162 L126 150 Z" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <text x="119" y="222" fontSize="14" textAnchor="middle" fill="currentColor">file</text> | |
| 32 | + <path d="M395 188 L395 212 L401 206 L406 217 L410 215 L405 204 L413 204 Z" fill="currentColor" /> | |
| 33 | + <text x="430" y="214" fontSize="14" fill="currentColor">cursor</text> | |
| 34 | + <text x="300" y="315" fontSize="14" textAnchor="middle" fill="currentColor">monitor</text> | |
| 35 | + </svg> | |
| 36 | + </Diagram> | |
| 37 | + | |
| 38 | + <Say word="laptop" hint="LAP-top" /> | |
| 39 | + A small computer you can carry, with the screen and keyboard together. *Example: Bring your laptop to the training.* | |
| 40 | + | |
| 41 | + <Say word="monitor" hint="MON-ih-ter" /> | |
| 42 | + A computer screen that sits on a desk. *Example: My second monitor isn't working.* | |
| 43 | + | |
| 44 | + <Say word="keyboard" hint="KEE-bord" /> | |
| 45 | + The set of keys you type on. *Example: The keyboard has a key for each letter.* | |
| 46 | + | |
| 47 | + <Say word="browser" hint="BROW-zer" /> | |
| 48 | + The app you use to open websites, like Chrome, Safari or Edge. *Example: Open the link in your browser.* | |
| 49 | + | |
| 50 | + <Say word="link" hint="LINK" /> | |
| 51 | + Words or a button you click or tap to go to a web page or file. *Example: I sent you the link in the chat.* | |
| 52 | + | |
| 53 | + ## Signing in | |
| 54 | + | |
| 55 | + <Say word="username" hint="YOO-zer-naym" /> | |
| 56 | + The name or email you use to sign in to a system. *Example: Your username is your work email.* | |
| 57 | + | |
| 58 | + <Say word="password" hint="PAS-werd" /> | |
| 59 | + A secret word or phrase that proves it is you. Never share it with anyone. *Example: I forgot my password, so I clicked Reset.* | |
| 60 | + | |
| 61 | + <Say word="log in" hint="LOG IN" /> | |
| 62 | + To enter your username and password to get into a system. People also say sign in. *Example: Log in to the app to see your schedule.* | |
| 63 | + | |
| 64 | + <Callout type="safety">Real IT staff will never ask for your password by phone, text or email. If someone does, it is a scam. Do not give it, and tell your supervisor or IT team.</Callout> | |
| 65 | + | |
| 66 | + ## Files | |
| 67 | + | |
| 68 | + <Say word="file" hint="FYL" /> | |
| 69 | + One document, photo or spreadsheet saved on a computer or online. *Example: Save the file before you close it.* | |
| 70 | + | |
| 71 | + <Say word="folder" hint="FOHL-der" /> | |
| 72 | + A place that holds a group of files, like a paper folder in a drawer. *Example: Put the photos in the job folder.* | |
| 73 | + | |
| 74 | + <Say word="attachment" hint="uh-TACH-ment" /> | |
| 75 | + A file sent with an email or message. *Example: The invoice is in the attachment.* | |
| 76 | + | |
| 77 | + <Say word="download" hint="DOWN-lohd" /> | |
| 78 | + To copy a file from the internet to your device. *Example: Download the form and fill it out.* | |
| 79 | + | |
| 80 | + <Say word="upload" hint="UP-lohd" /> | |
| 81 | + To send a file from your device to the internet or a shared system. *Example: Upload your photos of the finished job to the app.* | |
| 82 | + | |
| 83 | + <Say word="screenshot" hint="SKREEN-shot" /> | |
| 84 | + A picture of what is on your screen. *Example: Send me a screenshot of the error message.* | |
| 85 | + | |
| 86 | + <Say word="spreadsheet" hint="SPRED-sheet" /> | |
| 87 | + A file with rows and columns of numbers or text, made in Excel or Google Sheets. *Example: The hours are in the spreadsheet.* | |
| 88 | + | |
| 89 | + <Say word="cloud" hint="KLOWD" /> | |
| 90 | + Online storage, like Google Drive, OneDrive or iCloud, where files are saved on the internet instead of only on your device. *Example: The drawings are saved in the cloud, so you can open them on your phone.* | |
| 91 | + | |
| 92 | + ## When things go wrong | |
| 93 | + | |
| 94 | + <Say word="update" hint="UP-dayt" /> | |
| 95 | + A new version of an app or system that fixes problems. *Example: Install the update tonight.* | |
| 96 | + | |
| 97 | + <Say word="restart" hint="ree-START" /> | |
| 98 | + To turn a device off and on again. It fixes many problems. *Example: Did you try to restart it?* | |
| 99 | + | |
| 100 | + <Say word="printer" hint="PRIN-ter" /> | |
| 101 | + A machine that puts documents on paper. *Example: The printer is out of paper again.* | |
| 102 | + | |
| 103 | + <Say word="Wi-Fi" hint="WY-fy" /> | |
| 104 | + The wireless internet connection in a building. *Example: What's the Wi-Fi password for guests?* | |
| 105 | + | |
| 106 | + ## Time and meetings | |
| 107 | + | |
| 108 | + <Say word="schedule" hint="SKEJ-ool" /> | |
| 109 | + A plan of times for work, meetings or tasks. *Example: Check the schedule for next week.* | |
| 110 | + | |
| 111 | + <Say word="deadline" hint="DED-lyn" /> | |
| 112 | + The latest time something must be finished. *Example: The deadline for the report is Friday.* | |
| 113 | + | |
| 114 | + <Say word="calendar invite" hint="KAL-un-der IN-vyt" /> | |
| 115 | + A meeting request sent through Outlook or Google Calendar. You can accept or decline it. *Example: I sent you a calendar invite for Tuesday.* | |
| 116 | + | |
| 117 | + ## Useful phrases | |
| 118 | + | |
| 119 | + <Say word="Can you share your screen?" /> | |
| 120 | + <Say word="I'll send you the file." /> | |
| 121 | + <Say word="It's not loading." /> | |
| 122 | + | |
| 123 | + "Share your screen" means to show your screen to others on a video call. "Not loading" means a page or app is not opening. | |
| 124 | + | |
| 125 | + ## How to learn these words | |
| 126 | + | |
| 127 | + - **Change your phone and computer to English** for a week. You will see these words every day. | |
| 128 | + - **Say what you are doing** as you work: "I'm opening the folder. I'm uploading the file." | |
| 129 | + - **Ask IT or a coworker** to show you, then repeat the words back. |
content/lessons/english/writing/clear-sentences.mdx added
| 1 | + --- | |
| 2 | + title: "Building clear sentences" | |
| 3 | + description: "Learn the basic English sentence pattern of subject, verb and object, and how to build short, clear sentences that people understand the first time." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Clear writing starts with clear sentences. English has a simple, strict word order. When you follow it, your writing is easy to understand, even with a few small mistakes. When the order is wrong, readers get confused. | |
| 11 | + | |
| 12 | + This lesson teaches the core pattern: **subject, verb, object.** It is the base of almost every sentence you will write at work. | |
| 13 | + | |
| 14 | + ## The three parts | |
| 15 | + | |
| 16 | + - The **subject** is who or what does the action. "Maria," "the truck," "I." | |
| 17 | + - The **verb** is the action or the state. "fixed," "needs," "is." | |
| 18 | + - The **object** is who or what receives the action. "the pump," "a new tire," "the report." | |
| 19 | + | |
| 20 | + <Diagram caption="English word order: subject first, then the verb, then the object."> | |
| 21 | + <svg viewBox="0 0 600 230" role="img" aria-label="A sentence diagram with three boxes: Subject Maria, Verb fixed, Object the pump"> | |
| 22 | + <defs> | |
| 23 | + <marker id="arrowSvo" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"> | |
| 24 | + <path d="M0,0 L10,5 L0,10 z" fill="currentColor" /> | |
| 25 | + </marker> | |
| 26 | + </defs> | |
| 27 | + <text x="100" y="40" fontSize="16" textAnchor="middle" fill="currentColor">Who does it?</text> | |
| 28 | + <text x="300" y="40" fontSize="16" textAnchor="middle" fill="currentColor">What action?</text> | |
| 29 | + <text x="500" y="40" fontSize="16" textAnchor="middle" fill="currentColor">To what?</text> | |
| 30 | + <rect x="30" y="60" width="140" height="70" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <rect x="230" y="60" width="140" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2.5" /> | |
| 32 | + <rect x="430" y="60" width="140" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 4" /> | |
| 33 | + <text x="100" y="102" fontSize="20" textAnchor="middle" fill="currentColor">Maria</text> | |
| 34 | + <text x="300" y="102" fontSize="20" textAnchor="middle" fill="currentColor">fixed</text> | |
| 35 | + <text x="500" y="102" fontSize="20" textAnchor="middle" fill="currentColor">the pump.</text> | |
| 36 | + <line x1="170" y1="95" x2="226" y2="95" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowSvo)" /> | |
| 37 | + <line x1="370" y1="95" x2="426" y2="95" stroke="currentColor" strokeWidth="2" markerEnd="url(#arrowSvo)" /> | |
| 38 | + <text x="100" y="170" fontSize="18" textAnchor="middle" fill="currentColor">SUBJECT</text> | |
| 39 | + <text x="300" y="170" fontSize="18" textAnchor="middle" fill="currentColor">VERB</text> | |
| 40 | + <text x="500" y="170" fontSize="18" textAnchor="middle" fill="currentColor">OBJECT</text> | |
| 41 | + <text x="300" y="212" fontSize="14" textAnchor="middle" fill="currentColor">Change the order and the meaning changes: The pump fixed Maria.</text> | |
| 42 | + </svg> | |
| 43 | + </Diagram> | |
| 44 | + | |
| 45 | + <Say word="Maria fixed the pump." /> | |
| 46 | + <Say word="The customer needs a new tire." /> | |
| 47 | + <Say word="I sent the report." /> | |
| 48 | + | |
| 49 | + Order matters. "The dog bit the man" and "The man bit the dog" use the same words but mean very different things. In some languages, word endings show who did what, so order is flexible. In English, the position does that job. | |
| 50 | + | |
| 51 | + ## Every sentence needs a subject and a verb | |
| 52 | + | |
| 53 | + This is the most important rule. Even short sentences need both. | |
| 54 | + | |
| 55 | + | Not complete | Complete | | |
| 56 | + |---|---| | |
| 57 | + | Is broken. | The printer is broken. | | |
| 58 | + | Finished the job. | We finished the job. | | |
| 59 | + | Very busy today. | It is very busy today. | | |
| 60 | + | |
| 61 | + <Say word="The printer is broken." /> | |
| 62 | + <Say word="It is very busy today." /> | |
| 63 | + | |
| 64 | + Notice the word **"it"** in "It is very busy today" and "It is raining." English needs a subject even when there is no real "doer." "It" fills that spot. Many languages skip it, so this is a very common mistake. | |
| 65 | + | |
| 66 | + **One exception:** instructions. "Close the door." "Call me later." Here the subject "you" is understood, so you can leave it out. In casual chat, people also drop the subject sometimes, like "Sounds good" or "On my way." That is fine in a text, but use full sentences in emails and reports. | |
| 67 | + | |
| 68 | + ## Adding more: where and when go at the end | |
| 69 | + | |
| 70 | + Most extra information goes **after** the object. The usual order is: subject, verb, object, place, time. | |
| 71 | + | |
| 72 | + <Diagram caption="The usual order for longer sentences: who, action, what, where, when."> | |
| 73 | + <svg viewBox="0 0 600 150" role="img" aria-label="Five boxes in order: Subject We, Verb delivered, Object the parts, Place to the site, Time yesterday"> | |
| 74 | + <rect x="10" y="40" width="100" height="56" rx="8" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 75 | + <rect x="125" y="40" width="110" height="56" rx="8" fill="none" stroke="currentColor" strokeWidth="2.5" /> | |
| 76 | + <rect x="250" y="40" width="110" height="56" rx="8" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 4" /> | |
| 77 | + <rect x="375" y="40" width="105" height="56" rx="8" fill="none" stroke="currentColor" strokeWidth="1.5" /> | |
| 78 | + <rect x="495" y="40" width="95" height="56" rx="8" fill="none" stroke="currentColor" strokeWidth="1.5" /> | |
| 79 | + <text x="60" y="74" fontSize="16" textAnchor="middle" fill="currentColor">We</text> | |
| 80 | + <text x="180" y="74" fontSize="16" textAnchor="middle" fill="currentColor">delivered</text> | |
| 81 | + <text x="305" y="74" fontSize="16" textAnchor="middle" fill="currentColor">the parts</text> | |
| 82 | + <text x="427" y="74" fontSize="16" textAnchor="middle" fill="currentColor">to the site</text> | |
| 83 | + <text x="542" y="74" fontSize="16" textAnchor="middle" fill="currentColor">yesterday.</text> | |
| 84 | + <text x="60" y="125" fontSize="14" textAnchor="middle" fill="currentColor">subject</text> | |
| 85 | + <text x="180" y="125" fontSize="14" textAnchor="middle" fill="currentColor">verb</text> | |
| 86 | + <text x="305" y="125" fontSize="14" textAnchor="middle" fill="currentColor">object</text> | |
| 87 | + <text x="427" y="125" fontSize="14" textAnchor="middle" fill="currentColor">place</text> | |
| 88 | + <text x="542" y="125" fontSize="14" textAnchor="middle" fill="currentColor">time</text> | |
| 89 | + </svg> | |
| 90 | + </Diagram> | |
| 91 | + | |
| 92 | + <Say word="We delivered the parts to the site yesterday." /> | |
| 93 | + | |
| 94 | + Time can also go at the very start: "Yesterday, we delivered the parts to the site." But never put time or place between the verb and the object. "We delivered yesterday the parts" is wrong. | |
| 95 | + | |
| 96 | + ## Questions and negatives | |
| 97 | + | |
| 98 | + To make a **negative**, add do not, does not or did not before the main verb. In speech and chat, use the short forms: don't, doesn't, didn't. | |
| 99 | + | |
| 100 | + <Say word="I didn't get the email." /> | |
| 101 | + <Say word="The machine doesn't start." /> | |
| 102 | + | |
| 103 | + To make a **question**, put do, does or did before the subject. | |
| 104 | + | |
| 105 | + <Say word="Did you get the email?" /> | |
| 106 | + <Say word="Does the machine start?" /> | |
| 107 | + | |
| 108 | + With the verb "be" (am, is, are, was, were), just switch the subject and verb. "The truck is ready." becomes "Is the truck ready?" | |
| 109 | + | |
| 110 | + ## Keep sentences short | |
| 111 | + | |
| 112 | + Short sentences are easier to write correctly and easier to read. A good goal for work writing is 10 to 20 words per sentence. One idea per sentence. | |
| 113 | + | |
| 114 | + **Too long:** "The delivery that we were waiting for since Monday came this morning but two of the boxes were damaged so I put them in the back and I need someone to call the supplier." | |
| 115 | + | |
| 116 | + **Clearer:** "The delivery came this morning. Two boxes were damaged. I put them in the back. Can someone call the supplier?" | |
| 117 | + | |
| 118 | + Both say the same thing. The second one is easier to read, and each sentence is easy to check for mistakes. | |
| 119 | + | |
| 120 | + ## Joining two ideas | |
| 121 | + | |
| 122 | + When two ideas belong together, join them with a small linking word: | |
| 123 | + | |
| 124 | + - **and** adds an idea: "I cleaned the filter, and I checked the belt." | |
| 125 | + - **but** shows a contrast: "I called the client, but she didn't answer." | |
| 126 | + - **so** shows a result: "The part was missing, so we stopped work." | |
| 127 | + - **because** gives a reason: "We stopped work because the part was missing." | |
| 128 | + | |
| 129 | + <Say word="The part was missing, so we stopped work." /> | |
| 130 | + | |
| 131 | + ## Common mistakes | |
| 132 | + | |
| 133 | + - **Missing subject:** "Is ready." Write "It is ready" or "The truck is ready." | |
| 134 | + - **Missing verb:** "The meeting tomorrow at nine." Write "The meeting is tomorrow at nine." | |
| 135 | + - **Wrong order:** "I like very much this job." Write "I like this job very much." | |
| 136 | + - **Very long sentences:** Break them into two or three short ones. | |
| 137 | + | |
| 138 | + ## Practice | |
| 139 | + | |
| 140 | + Write five sentences about your workday using subject, verb, object. For example: "I opened the shop. I checked the orders. My manager called a supplier." Then add a place or time to each one. |
content/lessons/english/writing/common-grammar-mistakes.mdx added
| 1 | + --- | |
| 2 | + title: "Common grammar mistakes and fixes" | |
| 3 | + description: "Learn the ten grammar mistakes adult English learners make most often in work writing, why they happen, and simple fixes you can check for every time you write." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Intermediate | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Small grammar mistakes rarely stop people from understanding you. But in emails, reports and messages to customers, they can make your writing look rushed. The good news: most learners make the same few mistakes again and again. Learn these ten, check for them, and your writing will improve fast. | |
| 11 | + | |
| 12 | + Each section shows the mistake, the fix, and a short reason. | |
| 13 | + | |
| 14 | + ## 1. The s on verbs with he, she and it | |
| 15 | + | |
| 16 | + In the present tense, add **s** to the verb when the subject is he, she, it, or one person or thing. | |
| 17 | + | |
| 18 | + | Wrong | Right | | |
| 19 | + |---|---| | |
| 20 | + | She work on Saturdays. | She works on Saturdays. | | |
| 21 | + | The machine need oil. | The machine needs oil. | | |
| 22 | + | |
| 23 | + <Diagram caption="Add s to the verb when the subject is one person or thing. Do not add it for I, you, we and they."> | |
| 24 | + <svg viewBox="0 0 600 230" role="img" aria-label="Two columns. Left column with I, you, we, they and the verb work. Right column with he, she, it and the verb works, with the s highlighted"> | |
| 25 | + <rect x="40" y="30" width="240" height="170" rx="12" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 26 | + <rect x="320" y="30" width="240" height="170" rx="12" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <text x="160" y="70" fontSize="18" textAnchor="middle" fill="currentColor">I, you, we, they</text> | |
| 28 | + <text x="440" y="70" fontSize="18" textAnchor="middle" fill="currentColor">he, she, it, Maria</text> | |
| 29 | + <text x="160" y="140" fontSize="30" textAnchor="middle" fill="currentColor">work</text> | |
| 30 | + <text x="425" y="140" fontSize="30" textAnchor="middle" fill="currentColor">work</text> | |
| 31 | + <rect x="477" y="112" width="28" height="38" rx="5" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <text x="491" y="140" fontSize="30" textAnchor="middle" fill="currentColor">s</text> | |
| 33 | + <text x="160" y="182" fontSize="14" textAnchor="middle" fill="currentColor">no s</text> | |
| 34 | + <text x="440" y="182" fontSize="14" textAnchor="middle" fill="currentColor">add s</text> | |
| 35 | + </svg> | |
| 36 | + </Diagram> | |
| 37 | + | |
| 38 | + <Say word="She works on Saturdays." /> | |
| 39 | + | |
| 40 | + The same rule changes have to has, do to does, and go to goes. | |
| 41 | + | |
| 42 | + ## 2. Past tense for finished actions | |
| 43 | + | |
| 44 | + When an action is finished, use the past form of the verb. Many common verbs are irregular, which means they do not end in ed. | |
| 45 | + | |
| 46 | + | Wrong | Right | | |
| 47 | + |---|---| | |
| 48 | + | Yesterday I go to the site. | Yesterday I went to the site. | | |
| 49 | + | He send the invoice last week. | He sent the invoice last week. | | |
| 50 | + | |
| 51 | + Learn the common irregular verbs first: go, went; send, sent; buy, bought; bring, brought; take, took; get, got; make, made; say, said; tell, told; leave, left. | |
| 52 | + | |
| 53 | + <Say word="He sent the invoice last week." /> | |
| 54 | + | |
| 55 | + ## 3. Missing a, an and the | |
| 56 | + | |
| 57 | + Many languages have no articles. In English, a single countable thing usually needs **a**, **an** or **the** in front of it. | |
| 58 | + | |
| 59 | + - **a** or **an:** one thing, not a specific one. "I need a ladder." (any ladder) | |
| 60 | + - **the:** a specific thing you both know. "Bring the ladder." (the one we use) | |
| 61 | + - **an** comes before a vowel sound: an hour, an email, an invoice. | |
| 62 | + | |
| 63 | + | Wrong | Right | | |
| 64 | + |---|---| | |
| 65 | + | I need ladder. | I need a ladder. | | |
| 66 | + | Please check email I sent. | Please check the email I sent. | | |
| 67 | + | |
| 68 | + <Say word="Please check the email I sent." /> | |
| 69 | + | |
| 70 | + ## 4. Plurals: more than one | |
| 71 | + | |
| 72 | + Add **s** to most nouns when there is more than one. Watch for this after numbers. | |
| 73 | + | |
| 74 | + | Wrong | Right | | |
| 75 | + |---|---| | |
| 76 | + | We need three box. | We need three boxes. | | |
| 77 | + | I have two question. | I have two questions. | | |
| 78 | + | |
| 79 | + Some nouns cannot be counted and have no plural: information, equipment, advice, furniture, software, feedback. Say "some equipment," not "equipments." | |
| 80 | + | |
| 81 | + <Say word="Thanks for the feedback." /> | |
| 82 | + | |
| 83 | + ## 5. Prepositions of time: in, on, at | |
| 84 | + | |
| 85 | + Small words like in, on and at are hard in every language. For time, use this simple rule: | |
| 86 | + | |
| 87 | + - **at** for an exact time: at 3 p.m., at noon | |
| 88 | + - **on** for days and dates: on Monday, on May 5 | |
| 89 | + - **in** for months, years and longer periods: in June, in 2027, in the morning | |
| 90 | + | |
| 91 | + <Say word="The meeting is on Monday at three." /> | |
| 92 | + | |
| 93 | + ## 6. Questions with do and does | |
| 94 | + | |
| 95 | + In questions, put do, does or did before the subject. Then use the base verb, with no s and no ed. | |
| 96 | + | |
| 97 | + | Wrong | Right | | |
| 98 | + |---|---| | |
| 99 | + | You need help? | Do you need help? | | |
| 100 | + | When the truck arrives? | When does the truck arrive? | | |
| 101 | + | Where you put the keys? | Where did you put the keys? | | |
| 102 | + | |
| 103 | + "You need help?" with rising voice is fine in casual speech. In writing, use the full question. | |
| 104 | + | |
| 105 | + <Say word="When does the truck arrive?" /> | |
| 106 | + | |
| 107 | + ## 7. Two verbs in a row | |
| 108 | + | |
| 109 | + When two verbs come together, the second one usually needs **to**, or an **ing** ending. Some verbs take one, some take the other. | |
| 110 | + | |
| 111 | + - Verbs + **to:** want, need, plan, decide, try. "I need to leave early." | |
| 112 | + - Verbs + **ing:** finish, enjoy, avoid, keep. "I finished cleaning the area." | |
| 113 | + - After **can, will, should, must:** no to. "I can help." Not "I can to help." | |
| 114 | + | |
| 115 | + <Say word="I need to leave early today." /> | |
| 116 | + | |
| 117 | + ## 8. Words that sound the same | |
| 118 | + | |
| 119 | + These words sound alike but have different spellings and meanings. Spell checkers often miss them. | |
| 120 | + | |
| 121 | + | Word | Meaning | Example | | |
| 122 | + |---|---|---| | |
| 123 | + | your | belongs to you | Your order is ready. | | |
| 124 | + | you're | you are | You're on the schedule. | | |
| 125 | + | their | belongs to them | Their truck is here. | | |
| 126 | + | there | a place | Put it there. | | |
| 127 | + | they're | they are | They're late. | | |
| 128 | + | its | belongs to it | The pump lost its seal. | | |
| 129 | + | it's | it is | It's ready. | | |
| 130 | + | |
| 131 | + <Say word="You're on the schedule for Friday." /> | |
| 132 | + | |
| 133 | + ## 9. Run-on sentences | |
| 134 | + | |
| 135 | + A **run-on** is two full sentences joined with only a comma, or with nothing. Fix it with a period, or with a joining word like and, but, so or because. | |
| 136 | + | |
| 137 | + | Wrong | Right | | |
| 138 | + |---|---| | |
| 139 | + | The part came, it is the wrong size. | The part came, but it is the wrong size. | | |
| 140 | + | I called him he didn't answer. | I called him. He didn't answer. | | |
| 141 | + | |
| 142 | + ## 10. Mixing formal and casual | |
| 143 | + | |
| 144 | + "Gonna," "wanna," "u" for you, and "pls" are fine in a quick chat with a coworker. In an email to a customer or a manager, write the full words: going to, want to, you, please. | |
| 145 | + | |
| 146 | + ## How to check your writing | |
| 147 | + | |
| 148 | + <Steps> | |
| 149 | + <Step title="Write first, check after">Get your ideas down. Then read it again for mistakes.</Step> | |
| 150 | + <Step title="Read it out loud">Your ear often catches what your eye misses.</Step> | |
| 151 | + <Step title="Check your top three">Find the three mistakes from this list that you make most. Look for those every time.</Step> | |
| 152 | + <Step title="Use a grammar checker">The spell check in Gmail, Outlook, Word and Google Docs catches many errors. An AI assistant like Claude or ChatGPT can also explain why something is wrong. The next lesson shows how.</Step> | |
| 153 | + </Steps> | |
| 154 | + | |
| 155 | + <Callout type="tip">Keep a personal list of mistakes people correct for you. Write the wrong version and the right version. Read the list once a week. After a month, most of those mistakes will be gone.</Callout> | |
| 156 | + | |
| 157 | + ## Common mistakes when fixing mistakes | |
| 158 | + | |
| 159 | + - **Trying to fix everything at once.** Pick three habits to focus on this month. | |
| 160 | + - **Accepting every suggestion from a checker.** Checkers are sometimes wrong, especially with names and technical words. | |
| 161 | + - **Being afraid to write.** Clear writing with small mistakes is better than no message at all. | |
| 162 | + | |
| 163 | + ## Practice | |
| 164 | + | |
| 165 | + Find one email you wrote last week. Check it for these ten mistakes. Rewrite any sentence that has one. |
content/lessons/english/writing/short-work-messages.mdx added
| 1 | + --- | |
| 2 | + title: "Writing a short work message, and checking it with AI" | |
| 3 | + description: "Learn a simple four-part pattern for clear work emails and chat messages, and how to use an AI assistant to check your grammar while you keep learning." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Intermediate | |
| 7 | + order: 3 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Most writing at work is short: a text to your supervisor, a message in Slack or Microsoft Teams, a quick email to a customer. These messages do not need fancy English. They need to be clear, polite and quick to read. | |
| 11 | + | |
| 12 | + This lesson gives you a four-part pattern that works for almost any work message. Then it shows how to use an AI assistant like Claude or ChatGPT to check your grammar, in a way that helps you learn instead of just copying. | |
| 13 | + | |
| 14 | + ## The four-part message | |
| 15 | + | |
| 16 | + <Diagram caption="A short work message in four parts: greeting, main point, details, and next step."> | |
| 17 | + <svg viewBox="0 0 600 300" role="img" aria-label="A message box split into four stacked parts: Greeting, Main point, Details, Next step and sign off"> | |
| 18 | + <rect x="100" y="20" width="400" height="260" rx="14" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 19 | + <rect x="120" y="36" width="360" height="40" rx="6" fill="none" stroke="currentColor" strokeWidth="1.5" /> | |
| 20 | + <rect x="120" y="88" width="360" height="56" rx="6" className="soft" stroke="currentColor" strokeWidth="2.5" /> | |
| 21 | + <rect x="120" y="156" width="360" height="56" rx="6" fill="none" stroke="currentColor" strokeWidth="1.5" /> | |
| 22 | + <rect x="120" y="224" width="360" height="40" rx="6" fill="none" stroke="currentColor" strokeWidth="1.5" /> | |
| 23 | + <text x="300" y="62" fontSize="16" textAnchor="middle" fill="currentColor">1. Greeting: Hi Tom,</text> | |
| 24 | + <text x="300" y="122" fontSize="16" textAnchor="middle" fill="currentColor">2. Main point first</text> | |
| 25 | + <text x="300" y="190" fontSize="16" textAnchor="middle" fill="currentColor">3. Details: what, when, where</text> | |
| 26 | + <text x="300" y="250" fontSize="16" textAnchor="middle" fill="currentColor">4. Next step + sign off</text> | |
| 27 | + <text x="50" y="125" fontSize="14" textAnchor="middle" fill="currentColor">most</text> | |
| 28 | + <text x="50" y="142" fontSize="14" textAnchor="middle" fill="currentColor">important</text> | |
| 29 | + </svg> | |
| 30 | + </Diagram> | |
| 31 | + | |
| 32 | + 1. **Greeting.** "Hi Tom," is right for most work messages today. "Dear" is very formal and rare. In team chat, just the name or nothing is fine. | |
| 33 | + 2. **Main point first.** Say why you are writing in the first sentence. Busy people may only read that line. | |
| 34 | + 3. **Details.** The facts the reader needs: what, when, where, how many. | |
| 35 | + 4. **Next step and sign off.** Say what you need from them, then "Thanks," and your name. | |
| 36 | + | |
| 37 | + Here is an example. | |
| 38 | + | |
| 39 | + > Hi Tom, | |
| 40 | + > | |
| 41 | + > I'm running about 20 minutes late this morning. | |
| 42 | + > | |
| 43 | + > There is an accident on Route 9 and traffic is stopped. I should arrive at 7:50. | |
| 44 | + > | |
| 45 | + > Can someone open the loading dock for the 7:30 delivery? Thanks, | |
| 46 | + > | |
| 47 | + > Ana | |
| 48 | + | |
| 49 | + The reader knows the main point in the first line, the details in the second, and what to do in the third. | |
| 50 | + | |
| 51 | + ## Useful phrases | |
| 52 | + | |
| 53 | + Starting the main point: | |
| 54 | + | |
| 55 | + <Say word="I'm writing about the order from Tuesday." /> | |
| 56 | + <Say word="Quick question about tomorrow's schedule." /> | |
| 57 | + <Say word="Just a heads up, the elevator is out of service." /> | |
| 58 | + | |
| 59 | + "Heads up" means a warning or early notice. It is very common in work messages. | |
| 60 | + | |
| 61 | + Asking for something: | |
| 62 | + | |
| 63 | + <Say word="Could you send me the address?" /> | |
| 64 | + <Say word="Can you let me know by Friday?" /> | |
| 65 | + | |
| 66 | + Following up when someone has not answered: | |
| 67 | + | |
| 68 | + <Say word="Just following up on my message from Monday." /> | |
| 69 | + | |
| 70 | + Closing: | |
| 71 | + | |
| 72 | + <Say word="Thanks for your help." /> | |
| 73 | + <Say word="Let me know if you have any questions." /> | |
| 74 | + | |
| 75 | + ## Chat messages versus emails | |
| 76 | + | |
| 77 | + **Team chat** (Slack, Teams, Google Chat, text messages) is short and casual. One or two sentences is normal. You can skip the greeting and the sign off. Emoji reactions like a thumbs up are often used to say "got it." | |
| 78 | + | |
| 79 | + **Email** is a bit more formal and complete. Use a greeting, full sentences and a sign off. Write a clear subject line, like "Late arrival today" or "Question about invoice 4471." The subject line should tell the reader what the email is about before they open it. | |
| 80 | + | |
| 81 | + <Callout type="tip">Write customer messages a little more formally than messages to coworkers. Use full words, not "u" or "pls," and always say please and thank you.</Callout> | |
| 82 | + | |
| 83 | + ## Checking your grammar with AI | |
| 84 | + | |
| 85 | + AI assistants like Claude, ChatGPT and Google Gemini are very good at fixing grammar. Gmail, Outlook and Microsoft Word also have built-in writing suggestions. These tools are a big help. But if you only copy the fixed version, you will not improve. Use them like a teacher, not just a fixer. | |
| 86 | + | |
| 87 | + <Steps> | |
| 88 | + <Step title="Write it yourself first">Always write your own version first. This is where you learn.</Step> | |
| 89 | + <Step title="Ask for corrections and reasons">Paste your message and ask the AI to fix the grammar and explain each change in simple English. A good prompt is shown below.</Step> | |
| 90 | + <Step title="Read every change">Look at what changed and why. Ask yourself: did I know this rule?</Step> | |
| 91 | + <Step title="Check that the meaning is still yours">AI sometimes changes your meaning or makes the message too formal or too long. Keep your own words where they are correct.</Step> | |
| 92 | + <Step title="Save your mistakes">Add each new mistake to your personal list. Next time, try to catch it before you ask the AI.</Step> | |
| 93 | + </Steps> | |
| 94 | + | |
| 95 | + A good prompt to copy: | |
| 96 | + | |
| 97 | + > Please correct the grammar in my message. Keep it short and keep my meaning. Then list each change and explain the rule in one simple sentence. I am learning English. | |
| 98 | + | |
| 99 | + <Callout type="note">Asking for an explanation is the key. "Fix this" teaches you nothing. "Fix this and explain why" teaches you a rule every time.</Callout> | |
| 100 | + | |
| 101 | + ## Privacy and safety with AI tools | |
| 102 | + | |
| 103 | + - **Follow your employer's rules.** Some companies do not allow staff to paste work information into public AI tools. Ask your supervisor which tools are approved. | |
| 104 | + - **Remove private details.** Do not paste customer names, phone numbers, addresses, account numbers or passwords. Replace them with "the customer" or "XXXX." | |
| 105 | + - **You are responsible for what you send.** Read the final message before you hit send. | |
| 106 | + | |
| 107 | + ## Common mistakes | |
| 108 | + | |
| 109 | + - **Burying the main point.** Put it in the first sentence. | |
| 110 | + - **Too much text.** If a message is longer than five or six lines, ask yourself what you can cut. | |
| 111 | + - **No clear next step.** Tell the reader exactly what you need and by when. | |
| 112 | + - **Copying AI output without reading it.** Check that it says what you mean. | |
| 113 | + - **Writing in all capital letters.** IT LOOKS LIKE SHOUTING. Use normal capitals. | |
| 114 | + | |
| 115 | + ## Practice | |
| 116 | + | |
| 117 | + Write a short message to your supervisor saying you need to leave one hour early on Friday. Use the four parts. Then ask an AI assistant to correct it and explain each change. Write down one new rule you learned. |
content/lessons/knowledge-work/bookkeeping/bank-feeds-reconciling-and-profit-and-loss.mdx added
| 1 | + --- | |
| 2 | + title: "Reconciling the bank feed and reading a profit and loss" | |
| 3 | + description: "Review and match bank transactions in QuickBooks Online or Xero, reconcile each month so the books match the bank, and read a profit and loss statement." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 11 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Modern bookkeeping software connects to the company's bank and card accounts and pulls in every transaction automatically. This is called the **bank feed**. It saves typing, but it does not do the bookkeeping for you. Someone still has to review each transaction, match it to the right record, and confirm the books agree with the bank. Then the reports, like the profit and loss statement, can be trusted. | |
| 11 | + | |
| 12 | + ## How the flow works | |
| 13 | + | |
| 14 | + <Diagram caption="Transactions flow in from the bank, you review and match them, you reconcile monthly, and then the reports are reliable."> | |
| 15 | + <svg viewBox="0 0 600 200" role="img" aria-label="Flow from bank feed to review and match, to monthly reconcile, to trusted reports"> | |
| 16 | + <rect x="16" y="50" width="120" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 17 | + <text x="76" y="82" fontSize="16" textAnchor="middle" fill="currentColor">Bank</text> | |
| 18 | + <text x="76" y="102" fontSize="16" textAnchor="middle" fill="currentColor">feed</text> | |
| 19 | + <rect x="166" y="50" width="120" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 20 | + <text x="226" y="82" fontSize="16" textAnchor="middle" fill="currentColor">Review</text> | |
| 21 | + <text x="226" y="102" fontSize="16" textAnchor="middle" fill="currentColor">and match</text> | |
| 22 | + <rect x="316" y="50" width="120" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 23 | + <text x="376" y="82" fontSize="16" textAnchor="middle" fill="currentColor">Reconcile</text> | |
| 24 | + <text x="376" y="102" fontSize="16" textAnchor="middle" fill="currentColor">monthly</text> | |
| 25 | + <rect x="466" y="50" width="120" height="70" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 26 | + <text x="526" y="82" fontSize="16" textAnchor="middle" fill="currentColor">Reports</text> | |
| 27 | + <text x="526" y="102" fontSize="16" textAnchor="middle" fill="currentColor">you trust</text> | |
| 28 | + <line x1="136" y1="85" x2="164" y2="85" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <line x1="286" y1="85" x2="314" y2="85" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <line x1="436" y1="85" x2="464" y2="85" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <text x="226" y="150" fontSize="14" textAnchor="middle" fill="currentColor">weekly</text> | |
| 32 | + <text x="376" y="150" fontSize="14" textAnchor="middle" fill="currentColor">after statement</text> | |
| 33 | + </svg> | |
| 34 | + </Diagram> | |
| 35 | + | |
| 36 | + ## Step 1: Review the bank feed every week | |
| 37 | + | |
| 38 | + In QuickBooks Online, new transactions wait under the Transactions menu, on the Bank transactions page, in a "For review" list. In Xero, they wait on the Reconcile tab of each bank account (or in the bank reconciliation screen). The wording changes from time to time, but the idea is the same: each line from the bank waits for you to decide what it is. | |
| 39 | + | |
| 40 | + For each transaction you do one of three things: | |
| 41 | + | |
| 42 | + - **Match** it to something already in the books. If you sent an invoice for $800 and a customer paid $800, match the deposit to that invoice. Now the invoice is marked paid. | |
| 43 | + - **Categorize** (QuickBooks) or **create** (Xero) a new record. For a fuel purchase with no bill already entered, choose the vendor and the category, like Vehicle fuel. | |
| 44 | + - **Transfer** when money moved between two company accounts, like paying the credit card from checking. A transfer is not income or expense. | |
| 45 | + | |
| 46 | + <Callout type="safety">Never "add" a customer payment as new income when an invoice for it already exists. That counts the sale twice: once when you invoiced and again when the money arrived. Always match it to the open invoice instead.</Callout> | |
| 47 | + | |
| 48 | + ### Tips for the weekly review | |
| 49 | + | |
| 50 | + - **Do it weekly.** Ten minutes a week beats a whole lost Saturday at the end of the quarter, and you still remember what the charges were. | |
| 51 | + - **Check suggested matches.** The software suggests matches and categories. They are usually right. Glance at the amount, date and name before you accept. | |
| 52 | + - **Attach receipts.** Use the mobile app or email-in feature so every expense has its proof. | |
| 53 | + - **Ask, do not guess.** If you do not know what a charge is, leave it in review and ask the owner. A wrong guess is harder to find later. | |
| 54 | + | |
| 55 | + ## Step 2: Reconcile every month | |
| 56 | + | |
| 57 | + Matching transactions is not the same as reconciling. **Reconciling** means proving that your books agree with the bank's official statement for a period. It catches missed transactions, duplicates and bank feed errors. | |
| 58 | + | |
| 59 | + <Steps> | |
| 60 | + <Step title="Get the statement">Download the month-end statement from the bank. You need the ending date and ending balance.</Step> | |
| 61 | + <Step title="Start the reconciliation">In QuickBooks Online, go to the Reconcile page (under Transactions or Accounting, depending on the layout) and choose the account. In Xero, use the bank reconciliation report or account reconciliation tools for that account.</Step> | |
| 62 | + <Step title="Enter the ending date and balance">Type them exactly as shown on the statement.</Step> | |
| 63 | + <Step title="Tick off each transaction">Check every item that appears on the statement. Leave items that have not cleared the bank yet, like a check still in the mail.</Step> | |
| 64 | + <Step title="Get the difference to zero">When the difference is zero, finish the reconciliation. If it is not zero, find out why before you finish.</Step> | |
| 65 | + <Step title="Save the report">Keep the reconciliation report with the statement. Your accountant will want both.</Step> | |
| 66 | + </Steps> | |
| 67 | + | |
| 68 | + ### When it will not balance | |
| 69 | + | |
| 70 | + - Look for a transaction exactly equal to the difference. It is often one missing or duplicate item. | |
| 71 | + - If the difference divides evenly by 9, two digits may be swapped, like 54 typed as 45. | |
| 72 | + - Check that last month's reconciliation was finished and has not changed. Editing an old, reconciled transaction breaks every month after it. | |
| 73 | + - Look for duplicates caused by a bank connection that reloaded old transactions. | |
| 74 | + | |
| 75 | + <Callout type="tip">Never force a reconciliation to balance with an adjustment just to make the number zero. Find the real cause or ask your accountant.</Callout> | |
| 76 | + | |
| 77 | + ## Step 3: Read the profit and loss statement | |
| 78 | + | |
| 79 | + The **profit and loss statement**, also called a P&L or income statement, shows how much the company earned, how much it spent, and what was left over for a period like a month or year. | |
| 80 | + | |
| 81 | + | Line | What it means | Example | | |
| 82 | + | --- | --- | --- | | |
| 83 | + | Income | Money earned from sales and services | $42,000 | | |
| 84 | + | Cost of goods sold | Direct costs of the work: materials, job labor | $18,000 | | |
| 85 | + | **Gross profit** | Income minus cost of goods sold | **$24,000** | | |
| 86 | + | Operating expenses | Running costs: rent, insurance, software, office pay | $15,500 | | |
| 87 | + | **Net profit** | Gross profit minus expenses | **$8,500** | | |
| 88 | + | |
| 89 | + ### What to look for | |
| 90 | + | |
| 91 | + - **Gross margin.** Gross profit divided by income. Here $24,000 / $42,000 is about 57%. If this falls month after month, prices may be too low or job costs are creeping up. | |
| 92 | + - **Net margin.** Net profit divided by income. Here about 20%. | |
| 93 | + - **Big changes.** Compare this month with last month and the same month last year. Both QuickBooks and Xero can add comparison columns. Ask "why?" about any line that jumped. | |
| 94 | + - **Odd items.** Large amounts in "Uncategorized" or "Miscellaneous" mean the categorizing work is not finished. | |
| 95 | + | |
| 96 | + ### Profit is not cash | |
| 97 | + | |
| 98 | + A company can show a profit and still run out of cash, for example if customers have not paid their invoices yet, or if money went to loan payments or new equipment (which do not show as expenses on the P&L). Look at the **balance sheet** and the **cash flow** report too. The balance sheet shows what the company owns and owes on one date. Ask your accountant to walk you through them the first time. | |
| 99 | + | |
| 100 | + ## Common mistakes | |
| 101 | + | |
| 102 | + - Accepting every suggested match without looking | |
| 103 | + - Recording customer payments as new income instead of matching invoices | |
| 104 | + - Skipping monthly reconciliation because the feed "looks right" | |
| 105 | + - Editing transactions in months that are already reconciled and closed | |
| 106 | + - Reading net profit as cash in the bank | |
| 107 | + | |
| 108 | + <Resources> | |
| 109 | + <Resource title="QuickBooks Online help" href="https://quickbooks.intuit.com/learn-support/en-us" source="Intuit" kind="Help">Search "reconcile" for the official QuickBooks Online steps.</Resource> | |
| 110 | + <Resource title="Xero Central" href="https://central.xero.com/s/" source="Xero" kind="Help">Search "reconcile" for the official Xero steps.</Resource> | |
| 111 | + <Resource title="Publication 583: keeping records" href="https://www.irs.gov/pub/irs-pdf/p583.pdf" source="IRS" kind="Guide">What records to keep and for how long (U.S.).</Resource> | |
| 112 | + </Resources> |
content/lessons/knowledge-work/bookkeeping/double-entry-and-categories.mdx added
| 1 | + --- | |
| 2 | + title: "Double-entry basics and categories" | |
| 3 | + description: "Understand how double-entry bookkeeping works, what the chart of accounts is, and how to put every transaction in the right category." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Bookkeeping is the daily work of recording money coming in and going out, so the owner, the tax preparer and the bank can see what is really happening. Today almost every small company does this in cloud software like QuickBooks Online or Xero, which pulls in bank transactions automatically. The software does the arithmetic. Your job is to understand what each entry means and put it in the right place. That starts with two ideas: double entry and categories. | |
| 11 | + | |
| 12 | + ## Double entry: every transaction has two sides | |
| 13 | + | |
| 14 | + Every time money moves, two things change. When a shop buys a $500 ladder with cash, it has $500 less cash and $500 more equipment. Double-entry bookkeeping records both sides. That is why it is called "double". | |
| 15 | + | |
| 16 | + The two sides are called **debits** and **credits**. Forget the everyday meaning of those words. In bookkeeping they just mean "left side" and "right side". For every transaction, the total debits must equal the total credits. If they do not, something is wrong. This built-in check is the reason double entry has been the standard for centuries. | |
| 17 | + | |
| 18 | + ## The five types of accounts | |
| 19 | + | |
| 20 | + Everything a company owns, owes or earns fits into one of five groups: | |
| 21 | + | |
| 22 | + | Type | What it means | Examples | | |
| 23 | + | --- | --- | --- | | |
| 24 | + | Assets | Things the company owns | Bank account, trucks, tools, money customers owe you | | |
| 25 | + | Liabilities | Things the company owes | Credit card balance, loans, sales tax collected | | |
| 26 | + | Equity | The owner's share | Owner's investment, profits kept in the company | | |
| 27 | + | Income | Money earned from work | Sales, service fees | | |
| 28 | + | Expenses | Money spent to run the company | Fuel, rent, software, supplies | | |
| 29 | + | |
| 30 | + They are tied together by one simple equation: | |
| 31 | + | |
| 32 | + <Diagram caption="The accounting equation. Both sides always stay equal, and every transaction keeps them in balance."> | |
| 33 | + <svg viewBox="0 0 600 220" role="img" aria-label="The accounting equation shown as a balance: assets on one side equal liabilities plus equity on the other"> | |
| 34 | + <line x1="300" y1="70" x2="300" y2="170" stroke="currentColor" strokeWidth="3" /> | |
| 35 | + <path d="M270 190 L300 165 L330 190 Z" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 36 | + <line x1="90" y1="70" x2="510" y2="70" stroke="currentColor" strokeWidth="3" /> | |
| 37 | + <rect x="60" y="20" width="180" height="50" rx="8" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 38 | + <text x="150" y="51" fontSize="18" textAnchor="middle" fill="currentColor">Assets</text> | |
| 39 | + <rect x="340" y="20" width="200" height="50" rx="8" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 40 | + <text x="440" y="51" fontSize="17" textAnchor="middle" fill="currentColor">Liabilities + Equity</text> | |
| 41 | + <text x="300" y="52" fontSize="22" textAnchor="middle" fill="currentColor">=</text> | |
| 42 | + <text x="150" y="110" fontSize="14" textAnchor="middle" fill="currentColor">What you own</text> | |
| 43 | + <text x="440" y="110" fontSize="14" textAnchor="middle" fill="currentColor">Who has a claim on it</text> | |
| 44 | + <text x="300" y="212" fontSize="15" textAnchor="middle" fill="currentColor">Income raises equity. Expenses lower it.</text> | |
| 45 | + </svg> | |
| 46 | + </Diagram> | |
| 47 | + | |
| 48 | + ### Which side goes up? | |
| 49 | + | |
| 50 | + You rarely type debits and credits by hand in modern software, but it helps to know the pattern: | |
| 51 | + | |
| 52 | + - **Debits increase** assets and expenses. | |
| 53 | + - **Credits increase** liabilities, equity and income. | |
| 54 | + | |
| 55 | + A few examples: | |
| 56 | + | |
| 57 | + | What happened | Debit | Credit | | |
| 58 | + | --- | --- | --- | | |
| 59 | + | Customer pays you $800 for a job | Bank $800 | Sales income $800 | | |
| 60 | + | You buy $120 of fuel on the company card | Fuel expense $120 | Credit card $120 | | |
| 61 | + | You pay $300 toward the credit card | Credit card $300 | Bank $300 | | |
| 62 | + | Owner puts $5,000 into the company | Bank $5,000 | Owner's equity $5,000 | | |
| 63 | + | |
| 64 | + Each row balances. When you pick a category for a bank transaction in QuickBooks Online or Xero, the software writes both sides for you: the bank account on one side, your chosen category on the other. | |
| 65 | + | |
| 66 | + ## The chart of accounts | |
| 67 | + | |
| 68 | + The **chart of accounts** is the list of every category the company uses. Software sets up a starter list based on your type of company. You will likely add or rename a few. | |
| 69 | + | |
| 70 | + A good chart of accounts is: | |
| 71 | + | |
| 72 | + - **Short enough to use.** Thirty to sixty accounts covers most small companies. Too many categories and people start guessing. | |
| 73 | + - **Specific enough to be useful.** "Vehicle fuel" and "Vehicle repairs" are more useful than one big "Car" account. | |
| 74 | + - **Matched to taxes.** Ask your accountant which categories line up with your tax forms, so year-end is easy. | |
| 75 | + - **Stable.** Do not rename or merge accounts in the middle of the year without asking your accountant, because it changes past reports. | |
| 76 | + | |
| 77 | + <Callout type="tip">Use classes or tracking categories (QuickBooks calls them classes or locations; Xero calls them tracking categories) when you want to slice the numbers another way, like by job, crew or location. That keeps the chart of accounts short.</Callout> | |
| 78 | + | |
| 79 | + ## Categorizing transactions well | |
| 80 | + | |
| 81 | + Most of daily bookkeeping is putting transactions into the right category. Some simple rules: | |
| 82 | + | |
| 83 | + <Steps> | |
| 84 | + <Step title="Ask what the money was for">Not where you bought it. A hardware store receipt might be job materials, small tools or office supplies.</Step> | |
| 85 | + <Step title="Match the receipt">Snap a photo of receipts with the QuickBooks or Xero mobile app, or forward them by email. The software attaches them to the transaction.</Step> | |
| 86 | + <Step title="Split mixed purchases">One receipt with materials and a coffee for the crew should be split into two lines with two categories.</Step> | |
| 87 | + <Step title="Keep personal out">Personal spending on a company card is not an expense. Record it as an owner draw (or as a loan to the owner, if your accountant says so), never as a company expense.</Step> | |
| 88 | + <Step title="Know what is not income or expense">A loan you receive is a liability, not income. Moving money between two company accounts is a transfer, not income or expense. Sales tax you collect belongs to the government, so it is a liability.</Step> | |
| 89 | + </Steps> | |
| 90 | + | |
| 91 | + ### Use rules, but check them | |
| 92 | + | |
| 93 | + Both QuickBooks Online and Xero suggest categories and let you create bank rules, like "anything from Shell goes to Vehicle fuel". Rules save huge amounts of time. They also repeat mistakes perfectly. Review automated categories every week, and fix the rule when it is wrong. | |
| 94 | + | |
| 95 | + ## Cash or accrual? | |
| 96 | + | |
| 97 | + There are two ways to time your records: | |
| 98 | + | |
| 99 | + - **Cash basis:** record income when the money arrives and expenses when you pay. | |
| 100 | + - **Accrual basis:** record income when you earn it (send the invoice) and expenses when you owe them (get the bill). | |
| 101 | + | |
| 102 | + Many small companies report on a cash basis for taxes, but accrual gives a truer picture of how the month went. Modern software can show reports either way with one click. Your accountant decides which method you file taxes with, and tax rules on this vary by country and company size. | |
| 103 | + | |
| 104 | + ## Common mistakes | |
| 105 | + | |
| 106 | + - Putting a loan or owner's money in as income | |
| 107 | + - Mixing personal and company spending | |
| 108 | + - Dumping unclear items into "Miscellaneous" or "Ask my accountant" and never coming back to them | |
| 109 | + - Creating a new category every time something is a little different | |
| 110 | + - Trusting bank rules without ever checking them | |
| 111 | + | |
| 112 | + <Callout type="note">Bookkeeping is not the same as tax advice. A bookkeeper keeps clean records. A CPA or licensed tax professional should handle tax filings, tax planning and questions about what is deductible.</Callout> | |
| 113 | + | |
| 114 | + <Resources> | |
| 115 | + <Resource title="Publication 583: keeping records" href="https://www.irs.gov/pub/irs-pdf/p583.pdf" source="IRS" kind="Guide">What records to keep and for how long (U.S.).</Resource> | |
| 116 | + <Resource title="QuickBooks Online help" href="https://quickbooks.intuit.com/learn-support/en-us" source="Intuit" kind="Help">Search "chart of accounts" for setup help.</Resource> | |
| 117 | + <Resource title="Xero Central" href="https://central.xero.com/s/" source="Xero" kind="Help">Search "chart of accounts" for setup help in Xero.</Resource> | |
| 118 | + </Resources> |
content/lessons/knowledge-work/coding/how-software-is-made-today.mdx added
| 1 | + --- | |
| 2 | + title: "How software is made today" | |
| 3 | + description: "See the modern way software gets built: an editor like VS Code, Git to save every change, an AI coding agent like Claude Code or Codex, and automated tests that check the work." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 11 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Writing software today looks very different from even a few years ago. Programmers still write and read code, but they also work alongside AI coding agents that can read a whole project, make changes and run checks. What has not changed is the foundation underneath: a good editor, version control with Git, and tests. This lesson walks through each piece and how they fit together, so the rest of your coding journey makes sense. | |
| 11 | + | |
| 12 | + ## The modern loop | |
| 13 | + | |
| 14 | + <Diagram caption="The everyday loop: plan the change, write it with an editor and an AI agent, test it, save it with Git, then share it for review."> | |
| 15 | + <svg viewBox="0 0 600 260" role="img" aria-label="A loop of five steps: plan, write code with editor and AI agent, run tests, save a commit with Git, share for review"> | |
| 16 | + <rect x="20" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 17 | + <text x="70" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Plan</text> | |
| 18 | + <rect x="140" y="40" width="100" height="60" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 19 | + <text x="190" y="68" fontSize="15" textAnchor="middle" fill="currentColor">Write</text> | |
| 20 | + <text x="190" y="88" fontSize="14" textAnchor="middle" fill="currentColor">you + AI</text> | |
| 21 | + <rect x="260" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 22 | + <text x="310" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Test</text> | |
| 23 | + <rect x="380" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 24 | + <text x="430" y="68" fontSize="15" textAnchor="middle" fill="currentColor">Commit</text> | |
| 25 | + <text x="430" y="88" fontSize="14" textAnchor="middle" fill="currentColor">with Git</text> | |
| 26 | + <rect x="500" y="40" width="85" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <text x="542" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Review</text> | |
| 28 | + <line x1="120" y1="70" x2="138" y2="70" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <line x1="240" y1="70" x2="258" y2="70" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <line x1="360" y1="70" x2="378" y2="70" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <line x1="480" y1="70" x2="498" y2="70" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <path d="M310 100 L310 160 L190 160 L190 102" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" /> | |
| 33 | + <text x="250" y="185" fontSize="14" textAnchor="middle" fill="currentColor">Test fails? Fix and test again.</text> | |
| 34 | + <path d="M542 100 L542 220 L70 220 L70 102" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" /> | |
| 35 | + <text x="306" y="245" fontSize="14" textAnchor="middle" fill="currentColor">Next change starts the loop again</text> | |
| 36 | + </svg> | |
| 37 | + </Diagram> | |
| 38 | + | |
| 39 | + ## The editor: where you read and write code | |
| 40 | + | |
| 41 | + A **code editor** is a program for writing code. It colors different parts of the code so it is easier to read, catches typos as you type, and lets you run your program with a click. | |
| 42 | + | |
| 43 | + **Visual Studio Code** (VS Code) is the most widely used editor. It is free and runs on Windows, Mac and Linux. Others you will hear about include Cursor (built on VS Code with AI features), Zed, and JetBrains editors like PyCharm. They all do the same basic job. | |
| 44 | + | |
| 45 | + What an editor gives you: | |
| 46 | + | |
| 47 | + - **A file explorer** showing every file in your project | |
| 48 | + - **Syntax highlighting and error underlines** so mistakes stand out before you run anything | |
| 49 | + - **A built-in terminal**, a text window where you type commands | |
| 50 | + - **Extensions** that add support for each language, like Python or JavaScript | |
| 51 | + - **AI help** that suggests the next lines as you type and answers questions about your code | |
| 52 | + | |
| 53 | + ## Git: saving every change safely | |
| 54 | + | |
| 55 | + **Git** is version control. It keeps a full history of every change to your project, so you can see what changed, when and why, and go back if something breaks. Nearly every software team in the world uses it. | |
| 56 | + | |
| 57 | + The key ideas: | |
| 58 | + | |
| 59 | + - **Repository (repo):** a project folder that Git is tracking. | |
| 60 | + - **Commit:** a saved snapshot of your changes with a short message, like "Add total price to invoice page." Think of it as a save point in a game. | |
| 61 | + - **Remote:** a copy of the repo hosted online on a service like GitHub, GitLab or Bitbucket, so your team can share it and it is backed up. | |
| 62 | + - **Push and pull:** push sends your commits to the remote. Pull brings down your teammates' commits. | |
| 63 | + - **Separate lines of work:** Git lets you start a side copy of the project to try a change without touching the main version. When the change is ready and reviewed, it gets merged back in. | |
| 64 | + - **Pull request:** a request to merge your change into the main version. Teammates review the code and leave comments before it is accepted. | |
| 65 | + | |
| 66 | + Everyday commands look like this: | |
| 67 | + | |
| 68 | + ```bash | |
| 69 | + git status # what changed? | |
| 70 | + git add . # include all changes in the next save | |
| 71 | + git commit -m "Add price total" # save a snapshot with a message | |
| 72 | + git push # send it to the shared copy online | |
| 73 | + ``` | |
| 74 | + | |
| 75 | + You can also do all of this with buttons in VS Code's Source Control panel. | |
| 76 | + | |
| 77 | + <Callout type="tip">Commit small and often, with messages that say what changed. "Fix rounding on invoice totals" helps future you. "Stuff" does not.</Callout> | |
| 78 | + | |
| 79 | + ## AI coding agents | |
| 80 | + | |
| 81 | + An **AI coding agent** is an AI that can work inside your project. Unlike a chat window where you paste code back and forth, an agent can read your files, make edits across many files, run commands and tests, and report back what it did. | |
| 82 | + | |
| 83 | + Leading examples: | |
| 84 | + | |
| 85 | + - **Claude Code** from Anthropic, which runs in your terminal, inside VS Code and other editors, and on the web | |
| 86 | + - **Codex** from OpenAI, which runs in the terminal, in editors and in the cloud | |
| 87 | + - **GitHub Copilot**, which suggests code as you type and also has an agent mode | |
| 88 | + - **Cursor**, an editor with built-in agent features | |
| 89 | + | |
| 90 | + ### How to work with an agent well | |
| 91 | + | |
| 92 | + <Steps> | |
| 93 | + <Step title="Describe the goal clearly">"Add a button on the invoice page that downloads the invoice as a PDF. Follow the style of the existing Print button." Give context, just as you would to a new teammate.</Step> | |
| 94 | + <Step title="Ask for a plan first on bigger changes">Have the agent explain what it plans to change before it starts. Correct the plan if needed.</Step> | |
| 95 | + <Step title="Let it run the tests">Agents work best when they can check their own work by running the project's tests.</Step> | |
| 96 | + <Step title="Review every change">Read the diff (the list of exact lines added and removed) before you commit. You are responsible for the code, not the AI.</Step> | |
| 97 | + <Step title="Commit when it works">Save a commit so you can always go back.</Step> | |
| 98 | + </Steps> | |
| 99 | + | |
| 100 | + <Callout type="safety">Agents can run commands on your computer. Use the permission settings so they ask before doing anything risky, never give them passwords or production keys, and keep secrets in environment files that are not committed to Git. Follow your company's rules on which AI tools may see its code.</Callout> | |
| 101 | + | |
| 102 | + You still need to learn to read and understand code. The agent writes faster than you, but you have to judge if what it wrote is correct, safe and what was actually asked for. | |
| 103 | + | |
| 104 | + ## Tests: code that checks code | |
| 105 | + | |
| 106 | + A **test** is a small piece of code that runs your program with a known input and checks the output. If someone, or some AI, breaks something later, the test fails and tells you right away. | |
| 107 | + | |
| 108 | + For example, a test for a function that adds sales tax might say: "when the price is 100 and the tax rate is 8%, the result should be 108." Python projects commonly use **pytest**. JavaScript projects often use **Vitest** or **Jest**. | |
| 109 | + | |
| 110 | + Most teams also set up **continuous integration (CI)**: every time code is pushed, a service like GitHub Actions runs all the tests automatically. A pull request with failing tests does not get merged. | |
| 111 | + | |
| 112 | + ## How the pieces fit together | |
| 113 | + | |
| 114 | + | Piece | Job | Common tools | | |
| 115 | + | --- | --- | --- | | |
| 116 | + | Editor | Read and write code | VS Code, Cursor, JetBrains | | |
| 117 | + | Version control | Save history, share changes | Git with GitHub or GitLab | | |
| 118 | + | AI agent | Draft and edit code, run checks | Claude Code, Codex, Copilot | | |
| 119 | + | Tests | Prove the code works | pytest, Vitest, Jest | | |
| 120 | + | CI | Run tests on every push | GitHub Actions, GitLab CI | | |
| 121 | + | |
| 122 | + ## Common mistakes | |
| 123 | + | |
| 124 | + - Working for days without a commit, then losing it all | |
| 125 | + - Accepting AI changes without reading them | |
| 126 | + - Skipping tests because "it works on my machine" | |
| 127 | + - Committing passwords or API keys to Git | |
| 128 | + - Giving an agent a vague request and getting a vague result | |
| 129 | + | |
| 130 | + <Resources> | |
| 131 | + <Resource title="Visual Studio Code docs" href="https://code.visualstudio.com/docs" source="Microsoft" kind="Docs">Getting started with the editor, terminal and Source Control panel.</Resource> | |
| 132 | + <Resource title="Pro Git book" href="https://git-scm.com/book/en/v2" source="Git" kind="Book">The free, official guide to Git.</Resource> | |
| 133 | + <Resource title="Claude Code overview" href="https://docs.claude.com/en/docs/claude-code/overview" source="Anthropic" kind="Docs">How to install and use Claude Code.</Resource> | |
| 134 | + <Resource title="Codex" href="https://developers.openai.com/codex" source="OpenAI" kind="Docs">How to use OpenAI's coding agent.</Resource> | |
| 135 | + </Resources> |
content/lessons/knowledge-work/coding/your-first-small-program.mdx added
| 1 | + --- | |
| 2 | + title: "Writing your first small program in Python" | |
| 3 | + description: "Install Python and VS Code, write a small tip and split calculator, learn variables, input, math, decisions and functions, then add a test." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 12 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + The fastest way to learn coding is to build something small that works. In this lesson you will write a tip and bill-splitting calculator in **Python**. Python is a great first language: it reads almost like English, it is used everywhere from websites to data analysis to AI, and you can do useful things with very little code. | |
| 11 | + | |
| 12 | + You will learn the five ideas that show up in almost every program: variables, input and output, math, decisions and functions. Then you will add a test. | |
| 13 | + | |
| 14 | + ## Set up (15 minutes, once) | |
| 15 | + | |
| 16 | + <Steps> | |
| 17 | + <Step title="Install Python">Download it from python.org. On Windows, check the box "Add python.exe to PATH" during install. On a Mac, use the python.org installer or Homebrew. Then open a terminal and type `python3 --version` (or `python --version` on Windows) to check it works.</Step> | |
| 18 | + <Step title="Install VS Code">Download it from code.visualstudio.com.</Step> | |
| 19 | + <Step title="Add the Python extension">In VS Code, open the Extensions panel, search for "Python" and install the one from Microsoft.</Step> | |
| 20 | + <Step title="Make a project folder">Create a folder called `tip-calculator` and open it in VS Code with File, then Open Folder.</Step> | |
| 21 | + </Steps> | |
| 22 | + | |
| 23 | + ## How a program flows | |
| 24 | + | |
| 25 | + <Diagram caption="Most small programs follow the same path: get input, do some work, make decisions, show the output."> | |
| 26 | + <svg viewBox="0 0 600 200" role="img" aria-label="Program flow: input goes to calculate, then decide, then output"> | |
| 27 | + <rect x="20" y="60" width="120" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 28 | + <text x="80" y="92" fontSize="16" textAnchor="middle" fill="currentColor">Input</text> | |
| 29 | + <text x="80" y="112" fontSize="14" textAnchor="middle" fill="currentColor">bill, people</text> | |
| 30 | + <rect x="170" y="60" width="120" height="70" rx="10" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <text x="230" y="92" fontSize="16" textAnchor="middle" fill="currentColor">Calculate</text> | |
| 32 | + <text x="230" y="112" fontSize="14" textAnchor="middle" fill="currentColor">tip, total</text> | |
| 33 | + <rect x="320" y="60" width="120" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 34 | + <text x="380" y="92" fontSize="16" textAnchor="middle" fill="currentColor">Decide</text> | |
| 35 | + <text x="380" y="112" fontSize="14" textAnchor="middle" fill="currentColor">is input OK?</text> | |
| 36 | + <rect x="470" y="60" width="110" height="70" rx="10" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 37 | + <text x="525" y="92" fontSize="16" textAnchor="middle" fill="currentColor">Output</text> | |
| 38 | + <text x="525" y="112" fontSize="14" textAnchor="middle" fill="currentColor">each pays</text> | |
| 39 | + <line x1="140" y1="95" x2="168" y2="95" stroke="currentColor" strokeWidth="2" /> | |
| 40 | + <line x1="290" y1="95" x2="318" y2="95" stroke="currentColor" strokeWidth="2" /> | |
| 41 | + <line x1="440" y1="95" x2="468" y2="95" stroke="currentColor" strokeWidth="2" /> | |
| 42 | + <text x="300" y="175" fontSize="14" textAnchor="middle" fill="currentColor">Put the calculation in a function so you can test it</text> | |
| 43 | + </svg> | |
| 44 | + </Diagram> | |
| 45 | + | |
| 46 | + ## Step 1: Hello and variables | |
| 47 | + | |
| 48 | + Create a file called `tip.py` and type: | |
| 49 | + | |
| 50 | + ```python | |
| 51 | + bill = 84.50 | |
| 52 | + people = 3 | |
| 53 | + print("Bill:", bill) | |
| 54 | + print("People:", people) | |
| 55 | + ``` | |
| 56 | + | |
| 57 | + Click the Run button (the triangle at the top right) or type `python3 tip.py` in the VS Code terminal. | |
| 58 | + | |
| 59 | + A **variable** is a name that holds a value. `bill` holds 84.50 and `people` holds 3. `print` shows something on the screen. | |
| 60 | + | |
| 61 | + ## Step 2: Do the math | |
| 62 | + | |
| 63 | + Add these lines: | |
| 64 | + | |
| 65 | + ```python | |
| 66 | + tip_rate = 0.20 | |
| 67 | + tip = bill * tip_rate | |
| 68 | + total = bill + tip | |
| 69 | + each = total / people | |
| 70 | + print(f"Tip: {tip:.2f}") | |
| 71 | + print(f"Total: {total:.2f}") | |
| 72 | + print(f"Each person pays: {each:.2f}") | |
| 73 | + ``` | |
| 74 | + | |
| 75 | + `*` multiplies and `/` divides. The `f` before the quotes makes an **f-string**, which lets you put variables inside text with curly braces. `:.2f` means "show two decimal places", which is right for money. | |
| 76 | + | |
| 77 | + ## Step 3: Ask the user | |
| 78 | + | |
| 79 | + Hard-coded numbers are not very useful. Replace the first two lines with: | |
| 80 | + | |
| 81 | + ```python | |
| 82 | + bill = float(input("Bill amount: ")) | |
| 83 | + people = int(input("How many people? ")) | |
| 84 | + ``` | |
| 85 | + | |
| 86 | + `input` asks a question and waits for an answer. The answer always comes back as text, so `float` turns it into a decimal number and `int` turns it into a whole number. Run it and try a few amounts. | |
| 87 | + | |
| 88 | + ## Step 4: Make a decision | |
| 89 | + | |
| 90 | + What if someone types 0 people? Dividing by zero crashes the program. Use `if` to check first: | |
| 91 | + | |
| 92 | + ```python | |
| 93 | + if people <= 0: | |
| 94 | + print("Please enter at least 1 person.") | |
| 95 | + else: | |
| 96 | + each = total / people | |
| 97 | + print(f"Each person pays: {each:.2f}") | |
| 98 | + ``` | |
| 99 | + | |
| 100 | + The indented lines belong to the `if` or the `else`. Python uses indentation (four spaces) to group code, so keep it neat. VS Code does this for you. | |
| 101 | + | |
| 102 | + ## Step 5: Put it in a function | |
| 103 | + | |
| 104 | + A **function** is a named block of code you can reuse. It takes inputs (called parameters) and gives back a result with `return`. Rewrite your file like this: | |
| 105 | + | |
| 106 | + ```python | |
| 107 | + def split_bill(bill, people, tip_rate=0.20): | |
| 108 | + """Return what each person pays, including tip.""" | |
| 109 | + if people <= 0: | |
| 110 | + raise ValueError("people must be at least 1") | |
| 111 | + total = bill * (1 + tip_rate) | |
| 112 | + return round(total / people, 2) | |
| 113 | + | |
| 114 | + | |
| 115 | + if __name__ == "__main__": | |
| 116 | + bill = float(input("Bill amount: ")) | |
| 117 | + people = int(input("How many people? ")) | |
| 118 | + print(f"Each person pays: {split_bill(bill, people):.2f}") | |
| 119 | + ``` | |
| 120 | + | |
| 121 | + The function does the math. The bottom part handles input and output. The line `if __name__ == "__main__":` means "only ask questions when this file is run directly", which lets other files, like tests, use the function without being asked for input. | |
| 122 | + | |
| 123 | + <Callout type="note">Computers store decimal numbers in a way that can cause tiny rounding errors. For learning, `round` is fine. Real money software uses Python's `decimal` module or stores amounts in whole cents.</Callout> | |
| 124 | + | |
| 125 | + ## Step 6: Add a test | |
| 126 | + | |
| 127 | + Install **pytest**, a popular testing tool. In the terminal: | |
| 128 | + | |
| 129 | + ```bash | |
| 130 | + python3 -m venv .venv | |
| 131 | + source .venv/bin/activate # on Windows: .venv\Scripts\activate | |
| 132 | + pip install pytest | |
| 133 | + ``` | |
| 134 | + | |
| 135 | + The first line makes a **virtual environment**, a private space for this project's tools so they do not clash with other projects. Then create `test_tip.py`: | |
| 136 | + | |
| 137 | + ```python | |
| 138 | + import pytest | |
| 139 | + from tip import split_bill | |
| 140 | + | |
| 141 | + def test_three_people(): | |
| 142 | + assert split_bill(90, 3) == 36.0 | |
| 143 | + | |
| 144 | + def test_no_tip(): | |
| 145 | + assert split_bill(50, 2, tip_rate=0) == 25.0 | |
| 146 | + | |
| 147 | + def test_zero_people_is_an_error(): | |
| 148 | + with pytest.raises(ValueError): | |
| 149 | + split_bill(50, 0) | |
| 150 | + ``` | |
| 151 | + | |
| 152 | + Run `pytest` in the terminal. You should see three passing tests. Now change the math in `split_bill` on purpose to break it and run `pytest` again. The tests catch it. That is the whole point. | |
| 153 | + | |
| 154 | + ## Step 7: Save it with Git | |
| 155 | + | |
| 156 | + In the terminal: | |
| 157 | + | |
| 158 | + ```bash | |
| 159 | + git init | |
| 160 | + git add tip.py test_tip.py | |
| 161 | + git commit -m "Tip calculator with tests" | |
| 162 | + ``` | |
| 163 | + | |
| 164 | + Now you have a saved snapshot you can always return to. | |
| 165 | + | |
| 166 | + ## Using an AI agent on this project | |
| 167 | + | |
| 168 | + Try asking Claude Code or Codex, inside this folder: "Add an option to round each person's share up to the nearest dollar, and add tests for it." Watch what it changes, read the diff, run `pytest` yourself, and only commit if you understand every line. Asking the agent to explain its code line by line is one of the best ways to learn. | |
| 169 | + | |
| 170 | + ## Prefer JavaScript? | |
| 171 | + | |
| 172 | + The same ideas work in JavaScript, the language of web browsers. Install Node.js from nodejs.org and the same function looks like this: | |
| 173 | + | |
| 174 | + ```javascript | |
| 175 | + function splitBill(bill, people, tipRate = 0.2) { | |
| 176 | + if (people <= 0) throw new Error("people must be at least 1"); | |
| 177 | + return Math.round((bill * (1 + tipRate) / people) * 100) / 100; | |
| 178 | + } | |
| 179 | + console.log(splitBill(90, 3)); // 36 | |
| 180 | + ``` | |
| 181 | + | |
| 182 | + Run it with `node tip.js`. Tests in JavaScript are often written with Vitest. | |
| 183 | + | |
| 184 | + ## Common mistakes | |
| 185 | + | |
| 186 | + - Forgetting to convert `input` text to a number | |
| 187 | + - Mixing tabs and spaces, or uneven indentation | |
| 188 | + - Naming your file the same as a module you import, like `pytest.py` | |
| 189 | + - Skipping tests because the program "seems to work" | |
| 190 | + - Copying AI code you do not understand | |
| 191 | + | |
| 192 | + <Resources> | |
| 193 | + <Resource title="The Python Tutorial" href="https://docs.python.org/3/tutorial/" source="Python Software Foundation" kind="Docs">The official, free introduction to Python.</Resource> | |
| 194 | + <Resource title="Python in VS Code" href="https://code.visualstudio.com/docs/python/python-tutorial" source="Microsoft" kind="Docs">Setting up and running Python in VS Code.</Resource> | |
| 195 | + <Resource title="pytest: get started" href="https://docs.pytest.org/en/stable/getting-started.html" source="pytest" kind="Docs">Writing and running your first tests.</Resource> | |
| 196 | + <Resource title="JavaScript guide" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide" source="MDN" kind="Docs">The standard reference for learning JavaScript.</Resource> | |
| 197 | + </Resources> |
content/lessons/knowledge-work/customer-service/listening-and-de-escalation.mdx added
| 1 | + --- | |
| 2 | + title: "Listening and calming an upset customer" | |
| 3 | + description: "Use active listening and a simple de-escalation method to turn an angry call or visit into a calm conversation about fixing the problem." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 9 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Every job that deals with the public brings upset customers. A late delivery, a wrong bill, a repair that failed. The customer is not really angry at you. They are frustrated with the situation and want to know someone will help. Your job in the first few minutes is not to fix the problem. It is to lower the temperature so the two of you can fix it together. | |
| 11 | + | |
| 12 | + ## Why people get louder | |
| 13 | + | |
| 14 | + When people feel ignored, they repeat themselves louder. When they feel heard, they calm down. That is the whole idea behind de-escalation. Arguing, explaining policy too early, or rushing to a solution all signal "I am not really listening", and the customer pushes harder. | |
| 15 | + | |
| 16 | + <Diagram caption="Feeling heard brings the temperature down. Arguing or rushing pushes it up."> | |
| 17 | + <svg viewBox="0 0 600 240" role="img" aria-label="A curve rising from calm to angry when a customer is not heard, and falling back to calm when they are heard"> | |
| 18 | + <line x1="60" y1="200" x2="570" y2="200" stroke="currentColor" strokeWidth="2" /> | |
| 19 | + <line x1="60" y1="200" x2="60" y2="30" stroke="currentColor" strokeWidth="2" /> | |
| 20 | + <text x="40" y="45" fontSize="14" textAnchor="end" fill="currentColor">Angry</text> | |
| 21 | + <text x="40" y="195" fontSize="14" textAnchor="end" fill="currentColor">Calm</text> | |
| 22 | + <path d="M60 150 C 120 140, 160 60, 230 55 C 300 50, 330 130, 400 165 C 450 185, 520 185, 560 182" fill="none" stroke="currentColor" strokeWidth="3" /> | |
| 23 | + <path d="M230 55 C 280 45, 320 35, 380 32" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" /> | |
| 24 | + <text x="390" y="38" fontSize="14" fill="currentColor">Argue or rush</text> | |
| 25 | + <text x="230" y="225" fontSize="14" textAnchor="middle" fill="currentColor">Listen</text> | |
| 26 | + <text x="400" y="225" fontSize="14" textAnchor="middle" fill="currentColor">Acknowledge</text> | |
| 27 | + <text x="540" y="225" fontSize="14" textAnchor="middle" fill="currentColor">Solve</text> | |
| 28 | + </svg> | |
| 29 | + </Diagram> | |
| 30 | + | |
| 31 | + ## The LEAP method | |
| 32 | + | |
| 33 | + A simple order to follow: **Listen, Empathize, Ask, Plan.** It works on the phone, in person, and in live chat. | |
| 34 | + | |
| 35 | + <Steps> | |
| 36 | + <Step title="Listen all the way through">Let them tell the whole story without interrupting. Take notes. Small sounds or words like "okay" or "I see" show you are there. On a call, silence for a second after they finish often brings out the most important detail.</Step> | |
| 37 | + <Step title="Empathize and acknowledge">Name the feeling and the problem in your own words. "So the technician didn't show up, you took the morning off for nothing, and nobody called you. I'd be frustrated too." You are not admitting fault. You are showing you understand.</Step> | |
| 38 | + <Step title="Ask clear questions">Now get the facts you need: order number, dates, what they have tried. Ask one question at a time. Then summarize: "Let me check I have this right..."</Step> | |
| 39 | + <Step title="Plan the next step together">Say what you will do, by when, and what they can expect. "I'm booking you the first slot tomorrow, 8 to 10, and I'll text you the technician's name tonight." Then do it.</Step> | |
| 40 | + </Steps> | |
| 41 | + | |
| 42 | + ## Words that help and words that hurt | |
| 43 | + | |
| 44 | + | Instead of | Try | | |
| 45 | + | --- | --- | | |
| 46 | + | "Calm down." | "I can hear this has been really frustrating." | | |
| 47 | + | "That's our policy." | "Here's what I can do." | | |
| 48 | + | "You should have..." | "Going forward, the fastest way is..." | | |
| 49 | + | "I don't know." | "Let me find out. I'll call you back by 3." | | |
| 50 | + | "There's nothing I can do." | "I can't do that, but I can do this." | | |
| 51 | + | "Like I said..." | "To make sure I explained that clearly..." | | |
| 52 | + | |
| 53 | + **Apologize sincerely.** "I'm sorry this happened" is not the same as "I'm sorry you feel that way". The second one sounds like blame and makes things worse. | |
| 54 | + | |
| 55 | + **Use their name**, but not in every sentence. | |
| 56 | + | |
| 57 | + **Lower your voice and slow down.** People tend to match the pace and volume of the person they are talking to. If you stay calm and slow, they usually follow. | |
| 58 | + | |
| 59 | + ## In person and on the phone | |
| 60 | + | |
| 61 | + - **Stand or sit at an angle**, not squared off face to face. It feels less like a confrontation. | |
| 62 | + - **Keep your hands visible and relaxed.** Do not cross your arms. | |
| 63 | + - **Move to a quieter spot** if you can. An audience makes people dig in. | |
| 64 | + - **On the phone, smile while you talk.** It really does change how your voice sounds. | |
| 65 | + - **Tell them before you put them on hold** and how long it will be. Check back if it runs long. | |
| 66 | + | |
| 67 | + <Callout type="tip">Write down the customer's exact words for the main complaint. Repeating their own words back ("you said the part was 'clearly used'") shows you really listened, and it keeps your notes accurate for the next person.</Callout> | |
| 68 | + | |
| 69 | + ## When to bring in help | |
| 70 | + | |
| 71 | + Know your limits and your company's rules: | |
| 72 | + | |
| 73 | + - **Offer a supervisor** when the customer asks, or when they need something only a supervisor can approve. Pass along your notes so the customer does not have to repeat the whole story. | |
| 74 | + - **Take a short break** if you are getting upset yourself. "Let me look into this and call you back within the hour" is a fair, honest move. | |
| 75 | + | |
| 76 | + <Callout type="safety">You never have to accept threats, slurs or abuse. Give one calm warning: "I want to help, but I can't continue if you speak to me that way." If it continues, end the call or step away, and follow your company's procedure. If anyone threatens violence or you feel unsafe, get away from the situation, alert a manager and call emergency services. OSHA has guidance on workplace violence prevention.</Callout> | |
| 77 | + | |
| 78 | + ## After the conversation | |
| 79 | + | |
| 80 | + - **Write clear notes** in your help desk or CRM (Zendesk, Freshdesk, Intercom, HubSpot or whatever your company uses): what happened, what you promised, and when. | |
| 81 | + - **Keep your promise.** If you said you would call by 3, call by 3, even if just to say you are still working on it. Missed promises turn a calm customer angry again. | |
| 82 | + - **Look for the cause.** If three people called about the same problem this week, tell your team lead. Fixing the cause prevents the next angry call. | |
| 83 | + - **Reset yourself.** A difficult call is tiring. Take a breath, stretch or grab water before the next one. | |
| 84 | + | |
| 85 | + ## Common mistakes | |
| 86 | + | |
| 87 | + - Jumping to a solution before the customer feels heard | |
| 88 | + - Quoting policy as the first answer | |
| 89 | + - Taking it personally and getting defensive | |
| 90 | + - Promising something you cannot deliver just to end the call | |
| 91 | + - Making the customer repeat their story to every new person | |
| 92 | + | |
| 93 | + <Resources> | |
| 94 | + <Resource title="Workplace violence" href="https://www.osha.gov/workplace-violence" source="OSHA" kind="Guide">Recognizing and preventing violence in customer-facing jobs.</Resource> | |
| 95 | + <Resource title="Customer service skills" href="https://www.zendesk.com/blog/customer-service-skills/" source="Zendesk" kind="Article">A practical overview from a major help desk software maker.</Resource> | |
| 96 | + </Resources> |
content/lessons/knowledge-work/customer-service/solving-following-up-and-written-replies.mdx added
| 1 | + --- | |
| 2 | + title: "Solving the problem, following up and writing support replies" | |
| 3 | + description: "Find the real problem, fix it or set honest expectations, follow up until it is done, and write clear support emails and chat replies." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Calming a customer is the first half of the job. The second half is actually fixing the problem and making sure it stays fixed. Today much of that work happens in writing: email, live chat, text messages and help desk tickets. This lesson covers how to solve problems well and how to write replies that customers understand on the first read. | |
| 11 | + | |
| 12 | + ## Find the real problem | |
| 13 | + | |
| 14 | + The first thing a customer says is often a symptom, not the cause. "My invoice is wrong" might mean the price changed, a discount was missed, or they were billed twice. Before you fix anything, be sure you know what is actually wrong. | |
| 15 | + | |
| 16 | + - **Ask "what did you expect to happen?"** The gap between what they expected and what happened is the real problem. | |
| 17 | + - **Look it up yourself.** Check the order, account history and past tickets before asking the customer for details you already have. | |
| 18 | + - **Reproduce it if you can.** For a website or app problem, try the same steps yourself. | |
| 19 | + - **Confirm in one sentence.** "So you were charged twice for order 5521, and you want one charge refunded. Is that right?" | |
| 20 | + | |
| 21 | + ## The support loop | |
| 22 | + | |
| 23 | + <Diagram caption="Every request moves through the same loop. The ticket only closes after the customer confirms it is fixed."> | |
| 24 | + <svg viewBox="0 0 600 260" role="img" aria-label="A circular loop: understand, solve or set expectations, tell the customer, follow up, then close"> | |
| 25 | + <circle cx="300" cy="130" r="95" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" /> | |
| 26 | + <rect x="235" y="14" width="130" height="40" rx="8" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <text x="300" y="39" fontSize="15" textAnchor="middle" fill="currentColor">1. Understand</text> | |
| 28 | + <rect x="405" y="80" width="170" height="40" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <text x="490" y="105" fontSize="15" textAnchor="middle" fill="currentColor">2. Solve or set date</text> | |
| 30 | + <rect x="395" y="170" width="160" height="40" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <text x="475" y="195" fontSize="15" textAnchor="middle" fill="currentColor">3. Tell customer</text> | |
| 32 | + <rect x="45" y="170" width="160" height="40" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 33 | + <text x="125" y="195" fontSize="15" textAnchor="middle" fill="currentColor">4. Follow up</text> | |
| 34 | + <rect x="25" y="80" width="170" height="40" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 35 | + <text x="110" y="105" fontSize="15" textAnchor="middle" fill="currentColor">5. Confirm, close</text> | |
| 36 | + <text x="300" y="250" fontSize="14" textAnchor="middle" fill="currentColor">Write notes at every step</text> | |
| 37 | + </svg> | |
| 38 | + </Diagram> | |
| 39 | + | |
| 40 | + ## Solve it, or set an honest expectation | |
| 41 | + | |
| 42 | + Fix it on the first contact whenever you can. Customers rate "solved the first time" above almost anything else. When you cannot fix it right away: | |
| 43 | + | |
| 44 | + - **Give a real time frame.** "Refunds reach your card in 5 to 10 working days" is better than "soon". Use the times your company actually meets. | |
| 45 | + - **Own the next step.** Say who will do what. "I've sent this to our warehouse team. I'll email you by Thursday with the tracking number." | |
| 46 | + - **Under-promise slightly.** If it usually takes two days, say two to three. Early is a pleasant surprise. Late is a new complaint. | |
| 47 | + - **Offer choices when you can.** "I can send a replacement today, or refund you in full. Which would you prefer?" A choice gives back some control. | |
| 48 | + | |
| 49 | + <Callout type="tip">If you have to say no, explain the reason briefly and then say what you can do. "We can't refund custom orders because they are made just for you, but I can have our team fix the size for free."</Callout> | |
| 50 | + | |
| 51 | + ## Follow up until it is done | |
| 52 | + | |
| 53 | + Following up is where good service stands out. Most companies stop when the reply is sent. Great ones check that the problem is really gone. | |
| 54 | + | |
| 55 | + <Steps> | |
| 56 | + <Step title="Set a reminder">Use your help desk's follow-up or snooze feature, or a task in your calendar, for the date you promised.</Step> | |
| 57 | + <Step title="Check before the customer has to ask">If you said Thursday, update them by Thursday, even if the news is "still waiting, here's why, new date is Monday."</Step> | |
| 58 | + <Step title="Confirm the fix">"Your replacement shows as delivered. Is everything working?" Close the ticket only after they confirm or after a set number of days with no reply, based on your team's rule.</Step> | |
| 59 | + <Step title="Pass on the pattern">If the same problem keeps coming up, tag the tickets and tell your team lead. Fixing the cause is the best customer service of all.</Step> | |
| 60 | + </Steps> | |
| 61 | + | |
| 62 | + ## Writing support replies | |
| 63 | + | |
| 64 | + Written replies get read quickly, often on a phone. They need to be clear, warm and complete. | |
| 65 | + | |
| 66 | + ### A reply structure that works | |
| 67 | + | |
| 68 | + 1. **Thank or acknowledge** in one line. "Thanks for letting us know about the double charge." | |
| 69 | + 2. **Answer first.** "I've refunded the second charge of $64.20." | |
| 70 | + 3. **Explain what happens next.** "It should appear on your card in 5 to 10 working days." | |
| 71 | + 4. **Give any steps** as a numbered list. | |
| 72 | + 5. **Close with a clear offer.** "If you don't see it by March 20, reply here and I'll chase it up." | |
| 73 | + | |
| 74 | + ### Example | |
| 75 | + | |
| 76 | + > Hi Sam, | |
| 77 | + > | |
| 78 | + > Thanks for your patience with this. I've refunded the second charge of $64.20 on order 5521. | |
| 79 | + > | |
| 80 | + > The refund should show on your card within 5 to 10 working days. Your bank controls the exact timing. | |
| 81 | + > | |
| 82 | + > If you don't see it by March 20, just reply to this email and I'll look into it right away. | |
| 83 | + > | |
| 84 | + > Priya, Customer Support | |
| 85 | + | |
| 86 | + ### Tips for clear writing | |
| 87 | + | |
| 88 | + - **One idea per paragraph.** Short paragraphs are easier on a phone. | |
| 89 | + - **Numbered steps** for anything the customer needs to do. One action per step. | |
| 90 | + - **Plain words.** "Your order is on its way" rather than "Your order has been dispatched for fulfillment." | |
| 91 | + - **Match their tone.** Casual chat gets a friendly, short reply. A formal complaint gets a careful, complete one. | |
| 92 | + - **Answer every question they asked.** If they asked three things, answer three things. Missed questions mean another round trip. | |
| 93 | + - **Read it once as the customer** before you send. | |
| 94 | + | |
| 95 | + ### Using saved replies and AI | |
| 96 | + | |
| 97 | + Help desks like Zendesk, Freshdesk, Intercom, Help Scout and Gorgias have saved replies (also called macros) and AI tools that suggest drafts. Use them for speed, but always personalize: use the customer's name, mention their specific order and remove anything that does not apply. A canned reply that misses the question feels worse than a slow one. | |
| 98 | + | |
| 99 | + <Callout type="safety">Never ask customers to send full card numbers, passwords or one-time codes by email or chat, and never paste that kind of data into an AI tool. Follow your company's security process for verifying identity.</Callout> | |
| 100 | + | |
| 101 | + ## Common mistakes | |
| 102 | + | |
| 103 | + - Fixing the symptom instead of the real problem | |
| 104 | + - Vague timing like "soon" or "shortly" | |
| 105 | + - Closing tickets before the customer confirms the fix | |
| 106 | + - Copy-paste replies that do not answer the actual question | |
| 107 | + - Forgetting the promised follow-up | |
| 108 | + | |
| 109 | + <Resources> | |
| 110 | + <Resource title="Plain language guidelines" href="https://www.plainlanguage.gov/guidelines/" source="U.S. General Services Administration" kind="Guide">Clear writing advice that fits support replies well.</Resource> | |
| 111 | + <Resource title="Help Scout customer service guides" href="https://www.helpscout.com/helpu/" source="Help Scout" kind="Guide">Practical guides on support writing and follow-up from a help desk maker.</Resource> | |
| 112 | + </Resources> |
content/lessons/knowledge-work/project-management/running-a-weekly-check-in.mdx added
| 1 | + --- | |
| 2 | + title: "Running a weekly check-in" | |
| 3 | + description: "Run a short weekly project meeting that surfaces problems early, keeps the board current and ends with clear owners and dates." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 9 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + A plan and a board are only useful if they stay true. The weekly check-in is a short, regular meeting where the team looks at the board together, spots problems early, and agrees on what happens next. Done well, it takes 20 to 30 minutes and saves hours of confusion. Done badly, it becomes an hour of everyone reading their task list out loud. | |
| 11 | + | |
| 12 | + ## What the check-in is for | |
| 13 | + | |
| 14 | + The check-in has three jobs, and only three: | |
| 15 | + | |
| 16 | + 1. **Find problems early,** while they are still small. | |
| 17 | + 2. **Make decisions** that need the group. | |
| 18 | + 3. **Leave with clear next steps:** every action has one owner and a date. | |
| 19 | + | |
| 20 | + It is not for reporting every task. People can read the board for that. | |
| 21 | + | |
| 22 | + <Diagram caption="A 30-minute check-in. Most of the time goes to blockers and decisions, not reading status out loud."> | |
| 23 | + <svg viewBox="0 0 600 200" role="img" aria-label="A timeline bar split into five parts: board review, at risk items, blockers, decisions, and wrap up with actions"> | |
| 24 | + <rect x="20" y="60" width="90" height="60" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 25 | + <rect x="110" y="60" width="90" height="60" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 26 | + <rect x="200" y="60" width="180" height="60" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <rect x="380" y="60" width="120" height="60" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 28 | + <rect x="500" y="60" width="80" height="60" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 29 | + <text x="65" y="95" fontSize="14" textAnchor="middle" fill="currentColor">Board</text> | |
| 30 | + <text x="155" y="95" fontSize="14" textAnchor="middle" fill="currentColor">At risk</text> | |
| 31 | + <text x="290" y="95" fontSize="14" textAnchor="middle" fill="currentColor">Blockers</text> | |
| 32 | + <text x="440" y="95" fontSize="14" textAnchor="middle" fill="currentColor">Decisions</text> | |
| 33 | + <text x="540" y="95" fontSize="14" textAnchor="middle" fill="currentColor">Wrap</text> | |
| 34 | + <text x="65" y="145" fontSize="14" textAnchor="middle" fill="currentColor">5 min</text> | |
| 35 | + <text x="155" y="145" fontSize="14" textAnchor="middle" fill="currentColor">5 min</text> | |
| 36 | + <text x="290" y="145" fontSize="14" textAnchor="middle" fill="currentColor">10 min</text> | |
| 37 | + <text x="440" y="145" fontSize="14" textAnchor="middle" fill="currentColor">7 min</text> | |
| 38 | + <text x="540" y="145" fontSize="14" textAnchor="middle" fill="currentColor">3 min</text> | |
| 39 | + <text x="20" y="40" fontSize="14" fill="currentColor">Start</text> | |
| 40 | + <text x="580" y="40" fontSize="14" textAnchor="end" fill="currentColor">30 min</text> | |
| 41 | + </svg> | |
| 42 | + </Diagram> | |
| 43 | + | |
| 44 | + ## Before the meeting | |
| 45 | + | |
| 46 | + The best check-ins are mostly prepared before anyone joins. | |
| 47 | + | |
| 48 | + <Steps> | |
| 49 | + <Step title="Ask everyone to update the board first">Set a simple rule: cards are current by the end of the day before. Move finished cards to Done, add comments to anything stuck.</Step> | |
| 50 | + <Step title="Ask for written updates if it helps">Some teams post a short update in Slack or Microsoft Teams, or in their project tool, before the meeting: what I finished, what is next, what is blocking me. Many tools can collect these automatically.</Step> | |
| 51 | + <Step title="Review the board yourself">As the person running it, look for overdue cards, cards stuck in Waiting, and cards with no owner. These are your agenda.</Step> | |
| 52 | + <Step title="Share a short agenda">Post it in the meeting invite or chat: the two or three things that need discussion. People come ready to decide.</Step> | |
| 53 | + </Steps> | |
| 54 | + | |
| 55 | + ## Running the meeting | |
| 56 | + | |
| 57 | + Keep the same order every week so people know what to expect. | |
| 58 | + | |
| 59 | + ### 1. Walk the board (5 minutes) | |
| 60 | + | |
| 61 | + Share your screen with the board. Go right to left: start with Done (celebrate briefly), then Waiting, then Doing. Starting from the right keeps the focus on finishing work, not starting new work. | |
| 62 | + | |
| 63 | + Do not let each person describe every card. If a card is on track, move on. | |
| 64 | + | |
| 65 | + ### 2. Check what is at risk (5 minutes) | |
| 66 | + | |
| 67 | + Look at overdue cards and anything due in the next week or two. For each, ask one question: "Is this still going to make its date?" If not, say so now. A slipped date found early is a small problem. | |
| 68 | + | |
| 69 | + ### 3. Clear blockers (10 minutes) | |
| 70 | + | |
| 71 | + This is the most valuable part. For each card in Waiting or flagged as stuck: | |
| 72 | + | |
| 73 | + - What exactly is it waiting on? | |
| 74 | + - Who can unblock it? | |
| 75 | + - By when? | |
| 76 | + | |
| 77 | + If solving it needs a long conversation with only two people, do not hold the whole group. Say "Sam and Jo, can you take that right after this call?" and move on. | |
| 78 | + | |
| 79 | + ### 4. Make decisions (7 minutes) | |
| 80 | + | |
| 81 | + Bring up anything that needs the group: a scope change, a tradeoff between two deadlines, a choice between options. Make the decision in the room when you can. If you cannot, decide who will make it and by when. | |
| 82 | + | |
| 83 | + ### 5. Wrap up (3 minutes) | |
| 84 | + | |
| 85 | + Read back every action that came up. Each one gets one owner and a date. Make sure each action is on the board as a card or a comment before people leave. | |
| 86 | + | |
| 87 | + <Callout type="tip">End early when you can. If the board is current and nothing is blocked, a 10-minute check-in is a great check-in. People will respect the meeting more because it never wastes their time.</Callout> | |
| 88 | + | |
| 89 | + ## After the meeting | |
| 90 | + | |
| 91 | + Send a short summary within an hour. Post it in your team channel or as a comment on the project. Three sections are enough: | |
| 92 | + | |
| 93 | + > **Decisions:** Launch moves to April 8 to wait for real product photos. | |
| 94 | + > | |
| 95 | + > **Actions:** Maria sends photo shot list to the photographer by Wed. Sam updates the timeline by Thu. | |
| 96 | + > | |
| 97 | + > **Watch:** Payment provider approval still pending. Jo to follow up Friday. | |
| 98 | + | |
| 99 | + Meeting tools like Zoom, Google Meet and Microsoft Teams can now record and write AI summaries and action lists. These are helpful starting points, but always check the actions and owners yourself before you send. AI summaries sometimes miss who agreed to what. | |
| 100 | + | |
| 101 | + ## Running it remotely | |
| 102 | + | |
| 103 | + - **Cameras on if your team prefers it,** but never force it. | |
| 104 | + - **Use the board as the shared screen,** not slides. | |
| 105 | + - **Call on quiet people** by name with a specific question. "Ana, anything blocking the texts?" Remote meetings drown out quieter voices. | |
| 106 | + - **Keep it at the same time every week.** Rhythm matters more than length. | |
| 107 | + | |
| 108 | + ## Signs your check-in needs fixing | |
| 109 | + | |
| 110 | + | Sign | Fix | | |
| 111 | + | --- | --- | | |
| 112 | + | It always runs long | Stop reading status aloud. Only discuss risks, blockers and decisions. | | |
| 113 | + | Same blocker every week | Escalate it to someone who can actually remove it. | | |
| 114 | + | People update the board only during the meeting | Make "board current by end of day before" a team rule. | | |
| 115 | + | No one knows what was decided | Send the written summary every time. | | |
| 116 | + | People skip it | Make it shorter and more useful, or cancel weeks with nothing to discuss. | | |
| 117 | + | |
| 118 | + ## Common mistakes | |
| 119 | + | |
| 120 | + - Turning the check-in into a round of status reports | |
| 121 | + - Solving a two-person problem with the whole team watching | |
| 122 | + - Ending without owners and dates for actions | |
| 123 | + - No written summary, so decisions get forgotten | |
| 124 | + - Hiding bad news until it is too late to fix | |
| 125 | + | |
| 126 | + <Resources> | |
| 127 | + <Resource title="Team Playbook" href="https://www.atlassian.com/team-playbook" source="Atlassian" kind="Guide">Free, step-by-step plays for running team check-ins and meetings.</Resource> | |
| 128 | + <Resource title="Kanban boards" href="https://www.atlassian.com/agile/kanban/boards" source="Atlassian" kind="Guide">How to read a board and spot work that is stuck.</Resource> | |
| 129 | + </Resources> |
content/lessons/knowledge-work/project-management/scope-owners-dates-and-a-board.mdx added
| 1 | + --- | |
| 2 | + title: "Scope, owners, dates and a simple board" | |
| 3 | + description: "Set up any project the modern way: write down what is in and out, give every task one owner and a date, and track it all on a simple board." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Most projects that go wrong do not fail because people are lazy. They fail because nobody agreed on what "done" means, nobody knew who owned what, or dates lived only in someone's head. Project management fixes that with three simple habits: clear scope, one owner per task, and real dates, all in one place everyone can see. | |
| 11 | + | |
| 12 | + You do not need a certification to do this well. You need a short written plan and a board. | |
| 13 | + | |
| 14 | + ## Step 1: Write the scope | |
| 15 | + | |
| 16 | + **Scope** is what the project will deliver, and just as important, what it will not. Write it in a short document or at the top of your project in your tool. Keep it to half a page. | |
| 17 | + | |
| 18 | + A good scope answers: | |
| 19 | + | |
| 20 | + - **Goal:** Why are we doing this? "Launch online booking so customers stop calling to schedule." | |
| 21 | + - **Deliverables:** What will exist when we are done? "A booking page on our site, connected to the team calendar, with text reminders." | |
| 22 | + - **In scope:** The specific pieces included. | |
| 23 | + - **Out of scope:** Things people might assume are included but are not. "Online payments are out of scope for this project." | |
| 24 | + - **Done means:** How you will know it is finished. "Ten real customers have booked online without calling." | |
| 25 | + - **Deadline and budget** if there are any. | |
| 26 | + | |
| 27 | + <Callout type="tip">The "out of scope" list prevents more arguments than anything else in the plan. When someone asks "can we also add...?", you can point to it and say "good idea, let's put it on the list for the next project."</Callout> | |
| 28 | + | |
| 29 | + When someone wants to add work later, that is called **scope creep**. Changes are fine, but make them on purpose: agree what gets added, and what moves (the date, the budget, or another feature). | |
| 30 | + | |
| 31 | + ## Step 2: Break it into tasks | |
| 32 | + | |
| 33 | + Break the deliverables into tasks small enough that one person can finish each one in a few days at most. "Build booking page" is too big. "Pick a booking tool," "Connect it to the calendar," and "Write the confirmation text" are the right size. | |
| 34 | + | |
| 35 | + A good task: | |
| 36 | + | |
| 37 | + - **Starts with a verb.** "Write," "Order," "Call," "Test." | |
| 38 | + - **Has a clear finish.** You can tell when it is done. | |
| 39 | + - **Fits in a few days.** Bigger tasks hide problems until it is too late. | |
| 40 | + | |
| 41 | + ## Step 3: One owner, one date | |
| 42 | + | |
| 43 | + Every task gets exactly **one owner**. Not "the team", not two people. One name. Others can help, but one person is responsible for making sure it gets done or raising a flag if it is stuck. | |
| 44 | + | |
| 45 | + Every task also gets a **due date**. A date turns "someday" into a plan. | |
| 46 | + | |
| 47 | + - **Ask owners to set or agree to their own dates.** People keep promises they made more than ones handed to them. | |
| 48 | + - **Watch for dependencies.** If task B cannot start until task A is done, note it. Most tools let you link tasks this way. | |
| 49 | + - **Add a little buffer** before the real deadline. Something always takes longer. | |
| 50 | + | |
| 51 | + ## Step 4: Put it on a board | |
| 52 | + | |
| 53 | + A **board** (also called a Kanban board) shows every task as a card in columns that match its stage. You can see the whole project at a glance. | |
| 54 | + | |
| 55 | + <Diagram caption="A simple board. Cards move left to right. Each card shows the task, its owner and its due date."> | |
| 56 | + <svg viewBox="0 0 600 280" role="img" aria-label="A board with four columns: To do, Doing, Waiting and Done, each holding task cards with an owner and a date"> | |
| 57 | + <rect x="10" y="20" width="135" height="240" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 58 | + <rect x="160" y="20" width="135" height="240" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 59 | + <rect x="310" y="20" width="135" height="240" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 60 | + <rect x="460" y="20" width="135" height="240" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 61 | + <text x="77" y="46" fontSize="16" textAnchor="middle" fill="currentColor">To do</text> | |
| 62 | + <text x="227" y="46" fontSize="16" textAnchor="middle" fill="currentColor">Doing</text> | |
| 63 | + <text x="377" y="46" fontSize="16" textAnchor="middle" fill="currentColor">Waiting</text> | |
| 64 | + <text x="527" y="46" fontSize="16" textAnchor="middle" fill="currentColor">Done</text> | |
| 65 | + <rect x="20" y="62" width="115" height="60" rx="6" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 66 | + <text x="77" y="86" fontSize="14" textAnchor="middle" fill="currentColor">Write texts</text> | |
| 67 | + <text x="77" y="108" fontSize="14" textAnchor="middle" fill="currentColor">Ana, Mar 14</text> | |
| 68 | + <rect x="20" y="132" width="115" height="60" rx="6" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 69 | + <text x="77" y="156" fontSize="14" textAnchor="middle" fill="currentColor">Test booking</text> | |
| 70 | + <text x="77" y="178" fontSize="14" textAnchor="middle" fill="currentColor">Lee, Mar 18</text> | |
| 71 | + <rect x="170" y="62" width="115" height="60" rx="6" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 72 | + <text x="227" y="86" fontSize="14" textAnchor="middle" fill="currentColor">Link calendar</text> | |
| 73 | + <text x="227" y="108" fontSize="14" textAnchor="middle" fill="currentColor">Sam, Mar 11</text> | |
| 74 | + <rect x="320" y="62" width="115" height="60" rx="6" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 75 | + <text x="377" y="86" fontSize="14" textAnchor="middle" fill="currentColor">Site access</text> | |
| 76 | + <text x="377" y="108" fontSize="14" textAnchor="middle" fill="currentColor">Jo, Mar 10</text> | |
| 77 | + <rect x="470" y="62" width="115" height="60" rx="6" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 78 | + <text x="527" y="86" fontSize="14" textAnchor="middle" fill="currentColor">Pick tool</text> | |
| 79 | + <text x="527" y="108" fontSize="14" textAnchor="middle" fill="currentColor">Sam, Mar 6</text> | |
| 80 | + </svg> | |
| 81 | + </Diagram> | |
| 82 | + | |
| 83 | + Start with four columns: | |
| 84 | + | |
| 85 | + - **To do:** planned but not started | |
| 86 | + - **Doing:** someone is actively working on it | |
| 87 | + - **Waiting:** stuck on someone or something outside the task (a reply, a part, an approval). Say what it is waiting on. | |
| 88 | + - **Done:** finished, by the "done means" rule | |
| 89 | + | |
| 90 | + ### Choose a modern tool | |
| 91 | + | |
| 92 | + Any current tool with boards works. Common choices: | |
| 93 | + | |
| 94 | + - **Trello** for very simple boards | |
| 95 | + - **Asana**, **monday.com** or **ClickUp** for teams that need dates, timelines and many projects | |
| 96 | + - **Linear** or **Jira** for software teams | |
| 97 | + - **Notion** or **Microsoft Planner** if your team already lives in those tools | |
| 98 | + | |
| 99 | + Pick what your team will actually open every day. A simple board everyone uses beats a powerful tool nobody updates. | |
| 100 | + | |
| 101 | + <Steps> | |
| 102 | + <Step title="Create the project">Make one board for the project. Paste the scope into the description or a pinned card.</Step> | |
| 103 | + <Step title="Add the columns">To do, Doing, Waiting, Done.</Step> | |
| 104 | + <Step title="Add every task as a card">One card per task, starting with a verb.</Step> | |
| 105 | + <Step title="Assign one owner and a due date to each card">Most tools show the person's picture on the card. Every card should have one.</Step> | |
| 106 | + <Step title="Add a timeline view if dates matter">Asana, monday.com, ClickUp and others can show the same tasks as a timeline (a Gantt-style chart) so you can spot overlaps and dependencies.</Step> | |
| 107 | + <Step title="Share it">Invite the team and anyone who needs to follow along. Turn on notifications for due dates.</Step> | |
| 108 | + </Steps> | |
| 109 | + | |
| 110 | + ### Keep the board honest | |
| 111 | + | |
| 112 | + - **Limit work in progress.** If one person has six cards in Doing, nothing is getting finished. Aim for one to three per person. | |
| 113 | + - **Update cards as you go,** not just before meetings. | |
| 114 | + - **Put conversations on the card.** Comments on the task keep the history in one place instead of scattered across email and chat. | |
| 115 | + | |
| 116 | + ## Common mistakes | |
| 117 | + | |
| 118 | + - No written "out of scope" list, so the project keeps growing | |
| 119 | + - Tasks with two owners, or none | |
| 120 | + - Tasks that are too big to show progress | |
| 121 | + - Dates set for people instead of agreed with them | |
| 122 | + - A board that nobody updates, so it stops being trusted | |
| 123 | + | |
| 124 | + <Resources> | |
| 125 | + <Resource title="What is a Kanban board?" href="https://www.atlassian.com/agile/kanban/boards" source="Atlassian" kind="Guide">A clear explanation of boards and limiting work in progress.</Resource> | |
| 126 | + <Resource title="Asana resources" href="https://asana.com/resources" source="Asana" kind="Guide">Plain-English guides on scope, tasks and timelines.</Resource> | |
| 127 | + </Resources> |
content/lessons/knowledge-work/sales/discovery-questions.mdx added
| 1 | + --- | |
| 2 | + title: "Discovery questions: understanding what the customer needs" | |
| 3 | + description: "Run a discovery conversation that finds the customer's real problem, what it costs them, who decides and when, before you ever pitch." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Good selling is mostly good listening. Before you talk about your product or service, you need to understand the customer's situation, what problem they want solved, and why it matters to them now. This is called **discovery**. It is the difference between pushing something on people and helping them buy what they actually need. | |
| 11 | + | |
| 12 | + This works the same whether you sell software, roofing jobs, insurance, or catering. The questions change. The method does not. | |
| 13 | + | |
| 14 | + ## Why discovery comes first | |
| 15 | + | |
| 16 | + If you pitch too early, you guess at what matters. You talk about features the customer does not care about and miss the one thing they do. When you ask good questions first: | |
| 17 | + | |
| 18 | + - You learn what to talk about, and what to skip. | |
| 19 | + - The customer feels understood, which builds trust. | |
| 20 | + - You find out early if you are a bad fit, which saves everyone time. | |
| 21 | + - The customer often explains, in their own words, why they should buy. That is far more convincing than anything you could say. | |
| 22 | + | |
| 23 | + A good rule: in a discovery conversation, the customer should talk at least twice as much as you. | |
| 24 | + | |
| 25 | + ## The four things to learn | |
| 26 | + | |
| 27 | + <Diagram caption="Discovery moves from the situation, to the problem, to its impact, to how a decision will be made."> | |
| 28 | + <svg viewBox="0 0 600 230" role="img" aria-label="A funnel of four stages: situation, problem, impact, and decision"> | |
| 29 | + <path d="M40 30 L560 30 L500 80 L100 80 Z" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 30 | + <path d="M100 85 L500 85 L450 130 L150 130 Z" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <path d="M150 135 L450 135 L400 180 L200 180 Z" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <path d="M200 185 L400 185 L360 222 L240 222 Z" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 33 | + <text x="300" y="61" fontSize="16" textAnchor="middle" fill="currentColor">Situation: how things work now</text> | |
| 34 | + <text x="300" y="113" fontSize="16" textAnchor="middle" fill="currentColor">Problem: what is not working</text> | |
| 35 | + <text x="300" y="163" fontSize="16" textAnchor="middle" fill="currentColor">Impact: what it costs them</text> | |
| 36 | + <text x="300" y="209" fontSize="15" textAnchor="middle" fill="currentColor">Decision: who, how, when</text> | |
| 37 | + </svg> | |
| 38 | + </Diagram> | |
| 39 | + | |
| 40 | + ### 1. Situation | |
| 41 | + | |
| 42 | + Understand how things work today. Do your homework first: look at their website, LinkedIn and anything they sent. Do not waste their time asking what you could have looked up. | |
| 43 | + | |
| 44 | + - "Walk me through how you handle scheduling today." | |
| 45 | + - "What tools are you using for that now?" | |
| 46 | + - "How many people are involved?" | |
| 47 | + | |
| 48 | + ### 2. Problem | |
| 49 | + | |
| 50 | + Find out what is not working and why they are talking to you now. | |
| 51 | + | |
| 52 | + - "What made you reach out now?" | |
| 53 | + - "What's the hardest part of that process?" | |
| 54 | + - "What have you already tried? How did that go?" | |
| 55 | + | |
| 56 | + The question "why now?" is one of the most useful in sales. Something changed: a new boss, a busy season, a failure, growth. That change tells you how urgent the need really is. | |
| 57 | + | |
| 58 | + ### 3. Impact | |
| 59 | + | |
| 60 | + Help them put a size on the problem. People buy to fix problems that matter, and impact is what makes a problem matter. | |
| 61 | + | |
| 62 | + - "How much time does that take each week?" | |
| 63 | + - "What happens if this stays the same for another six months?" | |
| 64 | + - "How does this affect your customers, or your team?" | |
| 65 | + - "Have you put a number on what it's costing you?" | |
| 66 | + | |
| 67 | + Do not invent the number for them. Let them say it. "We lose maybe two jobs a month because nobody calls back fast enough" is a powerful thing for a customer to hear themselves say. | |
| 68 | + | |
| 69 | + ### 4. Decision | |
| 70 | + | |
| 71 | + Understand how the purchase will actually happen. | |
| 72 | + | |
| 73 | + - "Besides you, who else will be involved in the decision?" | |
| 74 | + - "How have you made decisions like this in the past?" | |
| 75 | + - "Is there a date you need this working by?" | |
| 76 | + - "Is there a budget set aside, or would we need to build the case for one?" | |
| 77 | + | |
| 78 | + Many deals that "go quiet" fail here: a boss, a partner or a finance person nobody met says no. Asking early lets you help your contact make the case to everyone who matters. | |
| 79 | + | |
| 80 | + ## How to ask good questions | |
| 81 | + | |
| 82 | + - **Ask open questions.** Questions that start with what, how, tell me, or walk me through get stories. Questions that can be answered yes or no shut the conversation down. | |
| 83 | + - **Ask one question at a time.** Stacking three questions lets people answer the easiest one. | |
| 84 | + - **Follow up on answers.** The best second question is often "Tell me more about that," or "What do you mean by..." | |
| 85 | + - **Get comfortable with silence.** After a big question, wait. The most useful answers often come after a pause. | |
| 86 | + - **Summarize before you move on.** "So if I've got it right, missed calls are costing about two jobs a month, and you want something running before spring. Is that fair?" This shows you listened and lets them correct you. | |
| 87 | + | |
| 88 | + <Callout type="tip">Write your top five discovery questions down before every call. Take notes during the call in your CRM or a notes app, or use an AI note taker if your company allows it and the customer agrees to the recording. Always ask permission before you record.</Callout> | |
| 89 | + | |
| 90 | + ## Be honest when it is not a fit | |
| 91 | + | |
| 92 | + Sometimes discovery shows that what you sell is not right for them. Say so. "Based on what you've told me, I don't think we're the best fit, and here's why." It costs you one sale and earns you a reputation, referrals and often a future customer when their needs change. | |
| 93 | + | |
| 94 | + ## A simple call plan | |
| 95 | + | |
| 96 | + <Steps> | |
| 97 | + <Step title="Open and agree on the time">"Thanks for the time. We have 30 minutes. I'd like to learn about your situation first, then, if it makes sense, show you how we might help. Sound good?"</Step> | |
| 98 | + <Step title="Ask situation and problem questions">Most of the call. Listen and take notes.</Step> | |
| 99 | + <Step title="Explore the impact">Help them size the problem in their own words.</Step> | |
| 100 | + <Step title="Learn the decision process">Who, how, when and budget.</Step> | |
| 101 | + <Step title="Summarize">Repeat back what you heard and confirm it.</Step> | |
| 102 | + <Step title="Agree on a next step">A specific step with a date, before you hang up. "Can we meet Thursday at 2 with your operations manager so I can show you exactly how this would work?"</Step> | |
| 103 | + </Steps> | |
| 104 | + | |
| 105 | + ## Common mistakes | |
| 106 | + | |
| 107 | + - Pitching in the first five minutes | |
| 108 | + - Asking questions you could have answered with a quick search | |
| 109 | + - Asking only yes or no questions | |
| 110 | + - Never asking about budget, timing or who decides | |
| 111 | + - Ending the call without a specific next step and date | |
| 112 | + - Talking more than the customer | |
| 113 | + | |
| 114 | + <Resources> | |
| 115 | + <Resource title="Discovery call guide" href="https://blog.hubspot.com/sales/discovery-call" source="HubSpot" kind="Guide">Example questions and structure from a major CRM maker.</Resource> | |
| 116 | + <Resource title="Truth in advertising" href="https://www.ftc.gov/news-events/topics/truth-advertising" source="Federal Trade Commission" kind="Guide">The basic U.S. rules for honest claims when you sell.</Resource> | |
| 117 | + </Resources> |
content/lessons/knowledge-work/sales/follow-up-and-a-simple-pipeline.mdx added
| 1 | + --- | |
| 2 | + title: "Honest follow-up and a simple pipeline in a CRM" | |
| 3 | + description: "Follow up in a way that helps instead of nags, and track every deal in a simple CRM pipeline so nothing slips through the cracks." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 10 | |
| 6 | + level: Beginner | |
| 7 | + order: 2 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Most sales do not happen on the first call. People get busy, need to talk to a partner, or are just not ready yet. The seller who follows up well, honestly and on time, wins far more often than the one with the best pitch. A simple pipeline in a CRM is what makes reliable follow-up possible. | |
| 11 | + | |
| 12 | + ## What a CRM is | |
| 13 | + | |
| 14 | + A **CRM** (customer relationship management system) is software that keeps every contact, conversation and deal in one place. Popular choices include HubSpot, Salesforce, Pipedrive, Zoho CRM and the CRM features built into tools like Monday or Copper. Many have free or starter plans for small teams. | |
| 15 | + | |
| 16 | + A CRM answers three questions at a glance: | |
| 17 | + | |
| 18 | + - Who are we talking to? | |
| 19 | + - What did we last say, and what did we promise? | |
| 20 | + - What happens next, and when? | |
| 21 | + | |
| 22 | + If those answers live in your head or your inbox, deals get forgotten. | |
| 23 | + | |
| 24 | + ## The pipeline | |
| 25 | + | |
| 26 | + A **pipeline** is the set of stages a deal moves through, from first contact to won or lost. Most CRMs show it as a board where each deal is a card you drag from stage to stage. | |
| 27 | + | |
| 28 | + <Diagram caption="A simple pipeline. Each deal sits in one stage and always has a next step with a date."> | |
| 29 | + <svg viewBox="0 0 600 240" role="img" aria-label="A sales pipeline with five stages: new lead, discovery, proposal sent, decision, and won or lost"> | |
| 30 | + <rect x="10" y="30" width="105" height="150" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 31 | + <rect x="127" y="30" width="105" height="150" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 32 | + <rect x="244" y="30" width="105" height="150" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 33 | + <rect x="361" y="30" width="105" height="150" rx="8" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 34 | + <rect x="478" y="30" width="110" height="150" rx="8" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 35 | + <text x="62" y="56" fontSize="14" textAnchor="middle" fill="currentColor">New lead</text> | |
| 36 | + <text x="179" y="56" fontSize="14" textAnchor="middle" fill="currentColor">Discovery</text> | |
| 37 | + <text x="296" y="56" fontSize="14" textAnchor="middle" fill="currentColor">Proposal</text> | |
| 38 | + <text x="413" y="56" fontSize="14" textAnchor="middle" fill="currentColor">Decision</text> | |
| 39 | + <text x="533" y="56" fontSize="14" textAnchor="middle" fill="currentColor">Won / Lost</text> | |
| 40 | + <rect x="20" y="72" width="85" height="40" rx="5" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 41 | + <rect x="20" y="122" width="85" height="40" rx="5" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 42 | + <rect x="137" y="72" width="85" height="40" rx="5" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 43 | + <rect x="254" y="72" width="85" height="40" rx="5" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 44 | + <rect x="371" y="72" width="85" height="40" rx="5" className="soft" stroke="currentColor" strokeWidth="1.5" /> | |
| 45 | + <line x1="60" y1="205" x2="540" y2="205" stroke="currentColor" strokeWidth="2" /> | |
| 46 | + <path d="M530 198 L542 205 L530 212" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 47 | + <text x="300" y="230" fontSize="14" textAnchor="middle" fill="currentColor">Deals move right. Every card has a next step and date.</text> | |
| 48 | + </svg> | |
| 49 | + </Diagram> | |
| 50 | + | |
| 51 | + ### Set up your stages | |
| 52 | + | |
| 53 | + Keep it to five or six stages that match how your customers actually buy: | |
| 54 | + | |
| 55 | + | Stage | Means | Move it on when | | |
| 56 | + | --- | --- | --- | | |
| 57 | + | New lead | Someone showed interest | You book a first conversation | | |
| 58 | + | Discovery | You are learning their needs | You both agree a proposal makes sense | | |
| 59 | + | Proposal sent | They have your quote or plan | They are reviewing it with decision makers | | |
| 60 | + | Decision | Final questions, negotiation | They say yes or no | | |
| 61 | + | Won or Lost | Done | Record the reason either way | | |
| 62 | + | |
| 63 | + Define each stage by something the **customer** did, not something you did. "Proposal sent" is fine. "I feel good about it" is not a stage. | |
| 64 | + | |
| 65 | + ## The one rule: every deal has a next step | |
| 66 | + | |
| 67 | + The most important habit in sales: **every open deal has a next step with a date.** Not "follow up sometime". A specific action: "Call Dana Tuesday at 10 to review the quote with her partner." | |
| 68 | + | |
| 69 | + <Steps> | |
| 70 | + <Step title="Log the conversation">Right after every call or meeting, write two or three lines in the CRM: what you learned, what they asked for, what you promised. Many CRMs log emails and calendar meetings automatically when you connect your Gmail or Outlook.</Step> | |
| 71 | + <Step title="Set the next step">Create a task with a due date in the CRM. Most CRMs show your tasks for the day on the home screen.</Step> | |
| 72 | + <Step title="Move the card">Drag the deal to the right stage. Update the expected amount and close date if they changed.</Step> | |
| 73 | + <Step title="Work your task list daily">Start each day by doing the follow-ups due today. This one habit closes more deals than any script.</Step> | |
| 74 | + </Steps> | |
| 75 | + | |
| 76 | + ## How to follow up honestly | |
| 77 | + | |
| 78 | + Following up is not nagging when every message gives the customer something useful. | |
| 79 | + | |
| 80 | + ### Good follow-ups | |
| 81 | + | |
| 82 | + - **Recap and next step.** Send within a day of a meeting: "Thanks for the time today. Here's what I heard, here's what I'll send by Thursday, and here's what you said you'd check with your partner." | |
| 83 | + - **Answer what they asked.** "You asked how long installation takes. For a home your size, it's usually two days." | |
| 84 | + - **Share something useful.** A short case study from a similar customer, or a tip related to their problem. | |
| 85 | + - **Check timing.** "You mentioned deciding after the board meeting on the 12th. Is that still the plan?" | |
| 86 | + | |
| 87 | + ### Rules for honest follow-up | |
| 88 | + | |
| 89 | + - **Never invent urgency.** No fake deadlines or "only two left" unless it is true. Customers figure it out, and in many places misleading sales claims break consumer protection law. | |
| 90 | + - **Do what you said you would, when you said.** Reliability before the sale shows them what you will be like after. | |
| 91 | + - **Space it out.** A common rhythm: one to two days after a meeting, then about a week, then two weeks. Adjust to what the customer told you about their timing. | |
| 92 | + - **Ask a direct question.** "Are you still looking to get this done before spring?" A clear no is better than months of silence. | |
| 93 | + - **Know when to stop.** After several tries with no reply, send a polite closing note: "I haven't heard back, so I'll assume the timing isn't right. If anything changes, I'm here." This often gets a reply. If not, mark the deal Lost with a reason and set a reminder to check back in a few months. | |
| 94 | + | |
| 95 | + <Callout type="note">Follow the rules for contacting people. In the U.S., cold calls, texts and marketing emails are covered by laws like the Telephone Consumer Protection Act and CAN-SPAM. Other countries have their own rules, such as GDPR in Europe. Always honor requests to stop contacting someone, and ask your company about its policy.</Callout> | |
| 96 | + | |
| 97 | + ## Keep the pipeline clean | |
| 98 | + | |
| 99 | + A pipeline is only useful if it is true. | |
| 100 | + | |
| 101 | + - **Review it weekly.** Look for deals with no next step, or past their close date. | |
| 102 | + - **Close out dead deals.** Mark them Lost with a reason (price, timing, chose a competitor, no response). Wishful deals make forecasts wrong. | |
| 103 | + - **Learn from Won and Lost reasons.** After a few months, patterns show where to improve. | |
| 104 | + - **Use AI features carefully.** Modern CRMs can draft follow-up emails and summarize calls. Read every draft and make it personal and accurate before it goes out. | |
| 105 | + | |
| 106 | + ## Common mistakes | |
| 107 | + | |
| 108 | + - Deals with no next step or date | |
| 109 | + - "Just checking in" emails that give the customer nothing | |
| 110 | + - Fake urgency or pressure | |
| 111 | + - Keeping dead deals open so the pipeline looks bigger | |
| 112 | + - Notes kept in your head or a notebook instead of the CRM | |
| 113 | + | |
| 114 | + <Resources> | |
| 115 | + <Resource title="CAN-SPAM Rule" href="https://www.ftc.gov/legal-library/browse/rules/can-spam-rule" source="Federal Trade Commission" kind="Guide">The U.S. rules for commercial email.</Resource> | |
| 116 | + <Resource title="What is a sales pipeline?" href="https://www.pipedrive.com/en/blog/sales-pipeline" source="Pipedrive" kind="Guide">A clear overview of pipeline stages from a CRM maker.</Resource> | |
| 117 | + </Resources> |
content/lessons/knowledge-work/spreadsheets/tables-sorting-and-core-formulas.mdx added
| 1 | + --- | |
| 2 | + title: "Tables, sorting, filtering and core formulas" | |
| 3 | + description: "Set up clean data in Google Sheets or Excel, sort and filter it safely, and use the handful of formulas that do most everyday work." | |
| 4 | + updated: 2026-12-03 | |
| 5 | + minutes: 11 | |
| 6 | + level: Beginner | |
| 7 | + order: 1 | |
| 8 | + --- | |
| 9 | + | |
| 10 | + Most spreadsheet trouble starts with messy data, not hard formulas. If your data is laid out cleanly, sorting, filtering and math become easy. This lesson works the same way in Google Sheets and Microsoft Excel. Where they differ, we say so. | |
| 11 | + | |
| 12 | + ## Lay out data as a clean table | |
| 13 | + | |
| 14 | + A clean table follows a few rules: | |
| 15 | + | |
| 16 | + - **One header row** at the top with a short, clear name for each column: Date, Customer, Item, Qty, Price. | |
| 17 | + - **One row per record.** One sale, one job, one invoice per row. | |
| 18 | + - **One kind of data per column.** Dates only in the Date column. Numbers only in Qty. Do not type "5 boxes" in a number column; type 5 and put "boxes" in the header. | |
| 19 | + - **No blank rows or columns** inside the data. Blanks break sorting and filtering. | |
| 20 | + - **No merged cells** in the data. They look tidy but break almost everything. | |
| 21 | + - **Totals go somewhere else**, not mixed into the rows. | |
| 22 | + | |
| 23 | + <Diagram caption="A clean table: one header row, one record per row, one kind of data per column."> | |
| 24 | + <svg viewBox="0 0 600 250" role="img" aria-label="A grid with a shaded header row reading Date, Customer, Item, Qty and Price, and three data rows"> | |
| 25 | + <rect x="30" y="30" width="540" height="40" className="soft" stroke="currentColor" strokeWidth="2" /> | |
| 26 | + <rect x="30" y="70" width="540" height="120" fill="none" stroke="currentColor" strokeWidth="2" /> | |
| 27 | + <line x1="30" y1="110" x2="570" y2="110" stroke="currentColor" strokeWidth="1" /> | |
| 28 | + <line x1="30" y1="150" x2="570" y2="150" stroke="currentColor" strokeWidth="1" /> | |
| 29 | + <line x1="140" y1="30" x2="140" y2="190" stroke="currentColor" strokeWidth="1" /> | |
| 30 | + <line x1="270" y1="30" x2="270" y2="190" stroke="currentColor" strokeWidth="1" /> | |
| 31 | + <line x1="400" y1="30" x2="400" y2="190" stroke="currentColor" strokeWidth="1" /> | |
| 32 | + <line x1="480" y1="30" x2="480" y2="190" stroke="currentColor" strokeWidth="1" /> | |
| 33 | + <text x="85" y="56" fontSize="15" textAnchor="middle" fill="currentColor">Date</text> | |
| 34 | + <text x="205" y="56" fontSize="15" textAnchor="middle" fill="currentColor">Customer</text> | |
| 35 | + <text x="335" y="56" fontSize="15" textAnchor="middle" fill="currentColor">Item</text> | |
| 36 | + <text x="440" y="56" fontSize="15" textAnchor="middle" fill="currentColor">Qty</text> | |
| 37 | + <text x="525" y="56" fontSize="15" textAnchor="middle" fill="currentColor">Price</text> | |
| 38 | + <text x="85" y="96" fontSize="14" textAnchor="middle" fill="currentColor">3/2</text> | |
| 39 | + <text x="205" y="96" fontSize="14" textAnchor="middle" fill="currentColor">Lopez</text> | |
| 40 | + <text x="335" y="96" fontSize="14" textAnchor="middle" fill="currentColor">Filter</text> | |
| 41 | + <text x="440" y="96" fontSize="14" textAnchor="middle" fill="currentColor">4</text> | |
| 42 | + <text x="525" y="96" fontSize="14" textAnchor="middle" fill="currentColor">12.50</text> | |
| 43 | + <text x="85" y="136" fontSize="14" textAnchor="middle" fill="currentColor">3/2</text> | |
| 44 | + <text x="205" y="136" fontSize="14" textAnchor="middle" fill="currentColor">Chen</text> | |
| 45 | + <text x="335" y="136" fontSize="14" textAnchor="middle" fill="currentColor">Valve</text> | |
| 46 | + <text x="440" y="136" fontSize="14" textAnchor="middle" fill="currentColor">1</text> | |
| 47 | + <text x="525" y="136" fontSize="14" textAnchor="middle" fill="currentColor">48.00</text> | |
| 48 | + <text x="85" y="176" fontSize="14" textAnchor="middle" fill="currentColor">3/3</text> | |
| 49 | + <text x="205" y="176" fontSize="14" textAnchor="middle" fill="currentColor">Lopez</text> | |
| 50 | + <text x="335" y="176" fontSize="14" textAnchor="middle" fill="currentColor">Hose</text> | |
| 51 | + <text x="440" y="176" fontSize="14" textAnchor="middle" fill="currentColor">2</text> | |
| 52 | + <text x="525" y="176" fontSize="14" textAnchor="middle" fill="currentColor">9.75</text> | |
| 53 | + <text x="300" y="228" fontSize="15" textAnchor="middle" fill="currentColor">Header row, then one record per row, no blanks</text> | |
| 54 | + </svg> | |
| 55 | + </Diagram> | |
| 56 | + | |
| 57 | + ### Turn it into a real table | |
| 58 | + | |
| 59 | + Both apps can mark a range as a table, which keeps formatting, sorting and formulas tidy as you add rows. | |
| 60 | + | |
| 61 | + - **Excel:** click any cell in the data and press Ctrl+T (Cmd+T on a Mac), or choose Insert, then Table. Check "My table has headers". | |
| 62 | + - **Google Sheets:** click a cell in the data and choose Format, then Convert to table (or press Ctrl+Alt+T). | |
| 63 | + | |
| 64 | + Tables grow automatically when you add a row at the bottom, and formulas copy down by themselves. | |
| 65 | + | |
| 66 | + <Callout type="tip">Freeze the header row so it stays on screen as you scroll. In both apps it is under View, then Freeze.</Callout> | |
| 67 | + | |
| 68 | + ## Sort safely | |
| 69 | + | |
| 70 | + Sorting puts rows in order, like newest date first or largest amount first. | |
| 71 | + | |
| 72 | + The big danger: sorting one column by itself. If you sort only the Price column, prices get separated from their customers and your data is ruined. Always sort the whole table. | |
| 73 | + | |
| 74 | + - In a table, click the arrow on a column header and choose Sort A to Z or Z to A. | |
| 75 | + - For two levels, like Customer then Date, use Data, then Sort (Excel) or Data, then Sort range, then Advanced (Sheets) and add a second sort rule. | |
| 76 | + | |
| 77 | + If you make a mistake, undo right away with Ctrl+Z (Cmd+Z on a Mac). Sheets also keeps full version history under File, then Version history, and Excel files saved in OneDrive or SharePoint have version history too. | |
| 78 | + | |
| 79 | + ## Filter to see only what you need | |
| 80 | + | |
| 81 | + Filtering hides rows you do not want to see without deleting them. Click the arrow on a header and pick values, like only "Lopez", or a condition, like Price greater than 20. | |
| 82 | + | |
| 83 | + In Google Sheets, a **filter view** lets you filter for yourself without changing what your coworkers see in a shared sheet. Excel has a similar feature called Sheet View, under the View tab. Use these when others are working in the same file. | |
| 84 | + | |
| 85 | + Clear filters when you are done, so the next person does not think rows are missing. | |
| 86 | + | |
| 87 | + ## The core formulas | |
| 88 | + | |
| 89 | + Every formula starts with an equals sign. Cell references like `B2` point to a cell. A range like `B2:B100` means every cell from B2 to B100. | |
| 90 | + | |
| 91 | + | Formula | What it does | Example | | |
| 92 | + | --- | --- | --- | | |
| 93 | + | `=SUM(range)` | Adds numbers | `=SUM(E2:E100)` | | |
| 94 | + | `=AVERAGE(range)` | Average of numbers | `=AVERAGE(E2:E100)` | | |
| 95 | + | `=COUNT(range)` | Counts cells with numbers | `=COUNT(D2:D100)` | | |
| 96 | + | `=COUNTA(range)` | Counts cells that are not empty | `=COUNTA(B2:B100)` | | |
| 97 | + | `=MIN` and `=MAX` | Smallest and largest | `=MAX(E2:E100)` | | |
| 98 | + | `=IF(test, yes, no)` | Chooses one of two results | `=IF(D2>=10, "Bulk", "Normal")` | | |
| 99 | + | `=SUMIF(range, rule, sum_range)` | Adds only matching rows | `=SUMIF(B2:B100, "Lopez", E2:E100)` | | |
| 100 | + | `=COUNTIF(range, rule)` | Counts only matching rows | `=COUNTIF(C2:C100, "Valve")` | | |
| 101 | + | |
| 102 | + Basic math works too: `=D2*E2` multiplies quantity by price to get a line total. | |
| 103 | + | |
| 104 | + ### Copying formulas and the dollar sign | |
| 105 | + | |
| 106 | + When you copy a formula down, the cell references move with it. `=D2*E2` in row 2 becomes `=D3*E3` in row 3. That is usually what you want. | |
| 107 | + | |
| 108 | + Sometimes you want one reference to stay fixed, like a tax rate in cell H1. Add dollar signs: `=D2*E2*$H$1`. The `$` locks the column and row so it does not move when copied. Press F4 (Windows) or Cmd+T (Mac Excel) while editing to add the dollar signs for you. | |
| 109 | + | |
| 110 | + <Steps> | |
| 111 | + <Step title="Add a line total column">In F2 type `=D2*E2` and press Enter.</Step> | |
| 112 | + <Step title="Fill it down">Double-click the small square at the bottom right of the cell. In a table it fills automatically.</Step> | |
| 113 | + <Step title="Total it">Below or beside the table, type `=SUM(F2:F100)`.</Step> | |
| 114 | + <Step title="Total one customer">Type `=SUMIF(B2:B100, "Lopez", F2:F100)`.</Step> | |
| 115 | + <Step title="Check it">Filter for Lopez and look at the sum shown in the status bar at the bottom of the window. The two numbers should match.</Step> | |
| 116 | + </Steps> | |
| 117 | + | |
| 118 | + ## Get help writing formulas | |
| 119 | + | |
| 120 | + Both apps now include AI help. Excel has Copilot and Google Sheets has Gemini, depending on your plan. You can also ask Claude or ChatGPT: "In Google Sheets, write a formula that totals column F only for rows where column B is Lopez." Always test the formula on a few rows you can check by hand. | |
| 121 | + | |
| 122 | + ## Common mistakes | |
| 123 | + | |
| 124 | + - Numbers stored as text (they line up on the left and will not add). Fix with Data, then Split text to columns, or retype them. | |
| 125 | + - Sorting one column instead of the whole table | |
| 126 | + - Blank rows that cut the table in two | |
| 127 | + - Typing totals by hand instead of using a formula | |
| 128 | + - Forgetting to clear a filter and thinking data is gone | |
| 129 | + | |
| 130 | + <Resources> | |
| 131 | + <Resource title="Overview of Excel tables" href="https://support.microsoft.com/en-us/office/overview-of-excel-tables-7ab0bb7d-3a9e-4b56-a3c9-6c94334e492c" source="Microsoft" kind="Help">How tables work in Excel and why they help.</Resource> | |
| 132 | + <Resource title="Sort and filter your data" href="https://support.google.com/docs/answer/3540681" source="Google" kind="Help">Official steps for sorting, filtering and filter views in Google Sheets.</Resource> | |
| 133 | + <Resource title="Google Sheets function list" href="https://support.google.com/docs/table/25273" source="Google" kind="Reference">Every function in Sheets with short explanations.</Resource> | |
| 134 | + </Resources> |
700 more files changed.