project-pulse
Copilot instructions9 starsChanged 14 months agoMITView on GitHub
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
26 rules. About 0 are common, 16 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Create, manage, and delete workspaces.
- Distinctive: line 12
Create, manage, and delete agents within workspaces.
- Distinctive: line 13
Create, manage, and delete tasks associated with agents.
- Distinctive: line 14
Start, stop, and monitor the status of agents.
- Very specific: line 19
Ensure you have Node.js 22 and npm installed on your machine.
- Very specific: line 20
Run npm install to install all dependencies.
- Very specific: line 21
Run npm run build to compile the TypeScript code.
- Very specific: line 24
Run npm test to execute the test suite.
- Very specific: line 27
Place notes as markdown files in the docs folder.
- Very specific: line 33
Consistent Naming: Use PascalCase for components (UserProfile) and camelCase for props/variables (isLoading, userData).
- Very specific: line 34
File Organization: Place components in dedicated folders with descriptive filenames (components/UserProfile/UserProfile.tsx).
- Distinctive: line 37
TypeScript First: Always use TypeScript with proper interface definitions for props and state.
- Very specific: line 38
Descriptive Prop Names: Use clear, self-documenting prop names (onUserSelect instead of onClick, isSubmitting instead of loading).
- Distinctive: line 40
Avoid Inline Styles: Use CSS modules, styled-components, or Tailwind classes instead of inline styles.
- Distinctive: line 44
Responsive Design: Use mobile-first approach with proper breakpoints and flexible layouts.
- Distinctive: line 45
Loading States: Always provide feedback for async operations with loading spinners, skeletons, or progress indicators.
- Distinctive: line 47
Consistent Spacing: Use design system tokens or Tailwind's spacing scale for consistent margins and padding.
- Very specific: line 50
Memoization: Use React.memo, useMemo, and useCallback appropriately to prevent unnecessary re-renders.
- Distinctive: line 52
Optimize Bundle Size: Avoid importing entire libraries when only specific functions are needed.
- Distinctive: line 55
Local vs Global State: Keep state as local as possible, only lift up when necessary.
- Distinctive: line 56
Immutable Updates: Always update state immutably, especially with arrays and objects.
- Distinctive: line 57
Form Handling: Use controlled components with proper validation and error states.
- Distinctive: line 60
When generating React code, follow these patterns:
- Distinctive: line 89
Testable Components: Write components that are easy to test with clear inputs and outputs.
- Distinctive: line 90
Mock External Dependencies: Ensure components can be tested in isolation.
- Very specific: line 97
Use window.electronAPI.getAzureToken(resource) to retrieve an access token for a specified resource.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Overview
Key terminology
- Workspaces: A workspace is a logical grouping of related agents and tasks. It serves as a container for organizing and managing your development environments.
- Agents: Agents are individual development environments or containers that run specific tasks. Each agent can be configured with different settings and resources.
- Tasks: Tasks are specific actions or jobs that agents perform. They can include running scripts, building applications, or any other automated processes.
Features
- Create, manage, and delete workspaces.
- Create, manage, and delete agents within workspaces.
- Create, manage, and delete tasks associated with agents.
- Start, stop, and monitor the status of agents.
- View logs and outputs from tasks executed by agents.
Instructions
Build
- Ensure you have Node.js 22 and npm installed on your machine.
- Run
npm installto install all dependencies. - Run
npm run buildto compile the TypeScript code.
Testing
- Run
npm testto execute the test suite.
Notes
- Place notes as markdown files in the
docsfolder.
React UI/UX Code Guidelines
Component Structure & Organization
- Single Responsibility: Each component should have one clear purpose. Break down complex components into smaller, focused ones.
- Consistent Naming: Use PascalCase for components (
UserProfile) and camelCase for props/variables (isLoading,userData). - File Organization: Place components in dedicated folders with descriptive filenames (
components/UserProfile/UserProfile.tsx).
Code Readability & Maintainability
- TypeScript First: Always use TypeScript with proper interface definitions for props and state.
- Descriptive Prop Names: Use clear, self-documenting prop names (
onUserSelectinstead ofonClick,isSubmittinginstead ofloading). - Extract Custom Hooks: Move complex logic to custom hooks for reusability and testability.
- Avoid Inline Styles: Use CSS modules, styled-components, or Tailwind classes instead of inline styles.
UI/UX Best Practices
- Accessibility: Include proper ARIA labels, semantic HTML, keyboard navigation, and screen reader support.
- Responsive Design: Use mobile-first approach with proper breakpoints and flexible layouts.
- Loading States: Always provide feedback for async operations with loading spinners, skeletons, or progress indicators.
- Error Handling: Implement user-friendly error messages and fallback UI states.
- Consistent Spacing: Use design system tokens or Tailwind's spacing scale for consistent margins and padding.
Performance Considerations
- Memoization: Use
React.memo,useMemo, anduseCallbackappropriately to prevent unnecessary re-renders. - Lazy Loading: Implement code splitting for large components using
React.lazyandSuspense. - Optimize Bundle Size: Avoid importing entire libraries when only specific functions are needed.
State Management
- Local vs Global State: Keep state as local as possible, only lift up when necessary.
- Immutable Updates: Always update state immutably, especially with arrays and objects.
- Form Handling: Use controlled components with proper validation and error states.
Code Examples & Patterns
When generating React code, follow these patterns:
// Good component structure
interface UserCardProps {
user: User;
onSelect: (userId: string) => void;
isSelected?: boolean;
}
export const UserCard: React.FC<UserCardProps> = (props) => {
const { user, onSelect, isSelected = false } = props;
// Implementation
};
// Good hook usage
const useUserData = (userId: string) => {
const [user, setUser] = useState<User | null>(null);
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
// Implementation
return { user, isLoading, error };
};Testing Considerations
- Testable Components: Write components that are easy to test with clear inputs and outputs.
- Mock External Dependencies: Ensure components can be tested in isolation.
- Accessibility Testing: Include tests for keyboard navigation and screen reader compatibility.
Patterns
Retrieving access token
- Use
window.electronAPI.getAzureToken(resource)to retrieve an access token for a specified resource. This function calls into the main process to get the token using Azure CLI, so it assumes the user is logged in.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

