Generate Project Documentation project-documentation
The Experience Modernization Agent writes guides for the people who work on your site: authors, developers, and administrators. It builds them from the project’s code and, with your permission, from the site’s configuration, and delivers them as PDFs that you can give to a team that takes over the project.
What the Guides Cover project-handovers
- Project walkthrough: How the project is set up and structured, and the conventions it follows
- Code organization: How the blocks, modules, and components are organized and how they relate to each other
- Role-based guides: A guide each for authors, developers, and administrators
The guides describe what the agent can read: the code in your console workspace and, with permission to use your Adobe credentials, the site configuration from the admin API. Systems that it can’t read, such as integration or CDN configuration, aren’t covered.
Prerequisites prerequisites
-
Your project is checked out in your console workspace.
-
The project documentation capability is active.
- Project documentation is an optional capability.
- If it isn’t on for your project, the agent offers to turn it on when you ask for documentation, and asks you to confirm.
-
To include the site configuration, you need admin access to the site, and Allow LLM to use my Adobe credentials for admin.hlx.page, Document Authoring, and repositories hosted outside GitHub turned on in Settings.
- The permission covers the admin API and Experience Workspace, not the Java Content Repository (JCR) of an author instance.
- Without it, the agent documents the code only.
- Ask it to list the configuration and content that it couldn’t inspect, so that readers know what the guides leave out.
Create the Documentation creating-documentation
-
Ask the agent
Create documentation for this project. Say who the guides are for, where authors edit content (Experience Workspace or the Universal Editor), and what you know about the project that the code doesn’t show. -
Provide the project’s organization name if the agent asks for it.
-
When the agent asks which documentation to create, select All, or the guides that you need.
-
The agent places the guides in your console workspace. Select one to view its description, then select its link to download the PDF.
Before you share a guide, check its setup steps, content locations, commands, authoring steps, and stated limitations against the project. For document-based projects, you can also upload the PDFs with the other content in Experience Workspace.
Retain Context for People and Agents portable-handoff
The PDFs describe the project at one point in time. To keep the context that the next person or conversation needs, keep a short markdown handover file in the project’s Git repository. The console doesn’t generate this file. You and the agent write it.
Include the following information in the markdown handover file:
For Experience Manager authoring, also record model and configuration changes, the site and DAM destinations, package import results, and what you checked in the Universal Editor. For document-based content, record where the documents are stored and any decisions about transferring or overwriting them.
Reference the file from AGENTS.md, so that the agent finds it when a task needs it. See Use AGENTS.md as the Entry Point. Never include tokens, passwords, or other secrets.
Date the file and update it when the code, models, content, or deployment change. Generated PDFs and earlier conversations go stale. Neither shows what is currently live.
Troubleshooting troubleshooting
The following are some common errors when generating documentation. Fix the cause and then generate the affected guide again and check it.
“Access Denied”, “Unauthorized”, or “Config API Error” unauthorized
The agent can’t read the site configuration through the admin API. Check that you have admin access to the site and that the credentials setting in the prerequisites is on. If you don’t need the configuration, ask for code-only guides instead.
“Project Not Found” not-found
The project’s repository isn’t checked out in your console workspace. Connect it as described in Connect Your Site.