agentleFS
MicrosoftKnown publishermicrosoft/project-pulse/.github/copilot-instructions.md

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
  1. Distinctive:

    Create, manage, and delete workspaces.

    line 11
  2. Distinctive:

    Create, manage, and delete agents within workspaces.

    line 12
  3. Distinctive:

    Create, manage, and delete tasks associated with agents.

    line 13
  4. Distinctive:

    Start, stop, and monitor the status of agents.

    line 14
  5. Very specific:

    Ensure you have Node.js 22 and npm installed on your machine.

    line 19
  6. Very specific:

    Run npm install to install all dependencies.

    line 20
  7. Very specific:

    Run npm run build to compile the TypeScript code.

    line 21
  8. Very specific:

    Run npm test to execute the test suite.

    line 24
  9. Very specific:

    Place notes as markdown files in the docs folder.

    line 27
  10. Very specific:

    Consistent Naming: Use PascalCase for components (UserProfile) and camelCase for props/variables (isLoading, userData).

    line 33
  11. Very specific:

    File Organization: Place components in dedicated folders with descriptive filenames (components/UserProfile/UserProfile.tsx).

    line 34
  12. Distinctive:

    TypeScript First: Always use TypeScript with proper interface definitions for props and state.

    line 37
  13. Very specific:

    Descriptive Prop Names: Use clear, self-documenting prop names (onUserSelect instead of onClick, isSubmitting instead of loading).

    line 38
  14. Distinctive:

    Avoid Inline Styles: Use CSS modules, styled-components, or Tailwind classes instead of inline styles.

    line 40
  15. Distinctive:

    Responsive Design: Use mobile-first approach with proper breakpoints and flexible layouts.

    line 44
  16. Distinctive:

    Loading States: Always provide feedback for async operations with loading spinners, skeletons, or progress indicators.

    line 45
  17. Distinctive:

    Consistent Spacing: Use design system tokens or Tailwind's spacing scale for consistent margins and padding.

    line 47
  18. Very specific:

    Memoization: Use React.memo, useMemo, and useCallback appropriately to prevent unnecessary re-renders.

    line 50
  19. Distinctive:

    Optimize Bundle Size: Avoid importing entire libraries when only specific functions are needed.

    line 52
  20. Distinctive:

    Local vs Global State: Keep state as local as possible, only lift up when necessary.

    line 55
  21. Distinctive:

    Immutable Updates: Always update state immutably, especially with arrays and objects.

    line 56
  22. Distinctive:

    Form Handling: Use controlled components with proper validation and error states.

    line 57
  23. Distinctive:

    When generating React code, follow these patterns:

    line 60
  24. Distinctive:

    Testable Components: Write components that are easy to test with clear inputs and outputs.

    line 89
  25. Distinctive:

    Mock External Dependencies: Ensure components can be tested in isolation.

    line 90
  26. Very specific:

    Use window.electronAPI.getAzureToken(resource) to retrieve an access token for a specified resource.

    line 97

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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

  1. Ensure you have Node.js 22 and npm installed on your machine.
  2. Run npm install to install all dependencies.
  3. Run npm run build to compile the TypeScript code.

Testing

  1. Run npm test to execute the test suite.

Notes

  • Place notes as markdown files in the docs folder.

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 (onUserSelect instead of onClick, isSubmitting instead of loading).
  • 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, and useCallback appropriately to prevent unnecessary re-renders.
  • Lazy Loading: Implement code splitting for large components using React.lazy and Suspense.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.