Skip to content

For developers and AI agents who want to build PatternFly applications using the latest best practices, with AI assistance (Cursor, Copilot, ChatGPT, etc.).

Notifications You must be signed in to change notification settings

patternfly/patternfly-ai-coding

Repository files navigation

PatternFly AI Coding Support

Who is this for?

This repository is for individuals and AI agents who want to prototype PatternFly applications using the latest best practices, with AI assistance (Cursor, Copilot, ChatGPT, etc.).

Quick Start (TL;DR)

  1. Clone or copy this repo (or at least the .pf-ai-documentation/ directory and .cursor/rules/ files) into your project.
  2. Open your project in Cursor or your preferred AI coding tool.
  3. (Optional) Set up context7 MCP for always-up-to-date PatternFly docs.

Goal

The primary aim is to offer a comprehensive, AI-friendly knowledge base and starting point for prototyping PatternFly applications. By indexing relevant documentation and providing context files, this repo ensures that any AI model can deliver accurate, consistent, and best-practice guidance while you code.

Core Components

The core components of this repository are the README and markdown files found throughout the project. These files provide indexed documentation, guidelines, and best practices to support AI-assisted PatternFly development, regardless of which AI coding tool you use.

Using This Documentation with Cursor and AI Tools

Important: Simply providing a link to this repository is not enough for Cursor (or most AI tools) to load all the context and instructions. These tools only index files that are present in your local project workspace.

Best Practice: Add Documentation Locally

To get the full benefit of these docs and rules:

  1. Clone or copy this repository (or at least the .pf-ai-documentation/ directory and .cursor/rules/ files) into your project.
  2. Open your project in Cursor (or your preferred AI coding tool).
  3. Keep your local docs up to date by pulling changes from this repo as it evolves.

Why Local Files Matter

  • Cursor and similar tools only use files present in your local workspace for context and code search.
  • If the documentation and rules are not present locally, the AI will not "see" them, even if you provide a link.

For Maximum Effectiveness

  • Use context7 or another MCP server to supplement your local docs with the latest upstream PatternFly documentation.
  • Encourage your team to read and follow the local documentation and rules for consistent, best-practice PatternFly development.

Setting Up context7 MCP for Latest Docs (Optional)

How to set up context7 MCP server:

  1. Ensure you have Node.js v18+ and an MCP-compatible client (e.g., Cursor, VS Code with MCP extension, Windsurf, Claude Desktop).
  2. Add context7 as an MCP server in your client's configuration. For example, in Cursor, add this to your ~/.cursor/mcp.json:
    {
      "mcpServers": {
        "context7": {
          "command": "npx",
          "args": ["-y", "@upstash/context7-mcp@latest"]
        }
      }
    }
  3. Save and restart your client/editor.
  4. For more details and setup instructions for other editors, see the official guide: https://github.com/upstash/context7#installation

Reference Documentation

For all rules and examples, consult both PatternFly.org and the official GitHub repository. When using AI tools, leverage context7 to fetch the latest docs from these sources.

About

For developers and AI agents who want to build PatternFly applications using the latest best practices, with AI assistance (Cursor, Copilot, ChatGPT, etc.).

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •