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.).
- Clone or copy this repo (or at least the
.pf-ai-documentation/
directory and.cursor/rules/
files) into your project. - Open your project in Cursor or your preferred AI coding tool.
- (Optional) Set up context7 MCP for always-up-to-date PatternFly docs.
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.
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.
- Table of Contents: See
.pf-ai-documentation/README.md
for a full table of contents and navigation to all rules, guides, and best practices.
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.
To get the full benefit of these docs and rules:
- Clone or copy this repository (or at least the
.pf-ai-documentation/
directory and.cursor/rules/
files) into your project. - Open your project in Cursor (or your preferred AI coding tool).
- Keep your local docs up to date by pulling changes from this repo as it evolves.
- 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.
- 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.
How to set up context7 MCP server:
- Ensure you have Node.js v18+ and an MCP-compatible client (e.g., Cursor, VS Code with MCP extension, Windsurf, Claude Desktop).
- 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"] } } }- Save and restart your client/editor.
- For more details and setup instructions for other editors, see the official guide: https://github.com/upstash/context7#installation
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.