# Review and publish a Template

## Before starting review

At least one file and a category are required. Save all current changes, then
select **Review** from the Template workspace.

The review page presents the details and file structure being prepared for
publication. Read the complete draft as a visitor would see it.

## Automated publication review

Memside runs an automated safety review before publication. The review is
designed to detect material that can be easy to miss during editing, including:

- exposed passwords, API keys, access tokens, private keys, or similar secrets;
- unsafe or misleading links;
- suspicious file names or paths;
- instructions that request credentials or private information;
- prompt injection or instructions that attempt unsafe external actions;
- risks spread across several files.

Findings identify the affected file and line when that information is
available. The scan helps reduce accidental publication of unsafe material, but
it is not a guarantee. Creator review remains necessary before publication.

The review does not make private Memories public. It evaluates the submitted
Template draft for publication readiness.

## Review states

| State | Meaning | Next action |
| --- | --- | --- |
| **Draft in progress** | The current draft has not completed review. | Finish editing and start review. |
| **Review in progress** | Automated checks are running. | Wait for the result. |
| **Ready to publish** | The reviewed draft can be published. | Complete the final confirmation and select **Publish**. |
| **Review needed** | One or more findings require attention. | Read the findings, edit the affected files, and run review again. |
| **Review failed** | The current content cannot be published. | Correct the reported problem before another review. |
| **Review delayed** | Review is temporarily unavailable. | Retry without discarding unchanged work. |

Changing a reviewed draft makes the previous result stale. Run review again so
the result covers the current files.

## Address a finding

1. Read the finding and note the file and line when shown.
2. Select **Edit files**.
3. Remove or rewrite the unsafe content.
4. Save the draft.
5. Return to review and submit the updated draft.

Example: if an example file contains a realistic-looking API key, replace it
with an obvious placeholder such as `example_api_key` and run review again.

## Publish

After the status becomes **Ready to publish**:

1. Review the Template name, description, category, license, and files.
2. Confirm that the material can be published and shared.
3. Select **Publish**.

Publication creates an immutable numbered version and makes the Template
discoverable through the public Library. A publication notification records the
Template name, version, and destination.

## What visitors can see

Public visitors can open the Template page, read the description, inspect the
file tree, and view published content. A signed-in account is required for
actions such as copying, downloading, starring, reporting, or adding content to
Memside.

## After publication

Open the public Template page to verify the README, file order, rendered
content, license, category, tags, creator details, and version number. Content
corrections require a new reviewed version; eligible metadata-only corrections
can be published without a file-version change.

## Next step

[Edit, version, and unpublish Templates](/library/maintain-templates/)
