Codex – Prompt Muse https://promptmuse.com A.I Tutorials, News, Reviews and Community Tue, 10 Nov 2026 14:39:52 +0000 en-US hourly 1 https://promptmuse.com/wp-content/uploads/2022/11/cropped-channels4_profile-32x32.jpeg Codex – Prompt Muse https://promptmuse.com 32 32 How to fix a WordPress mobile layout with Codex https://promptmuse.com/codex-fix-wordpress-mobile-css/ Tue, 10 Nov 2026 14:39:52 +0000 https://promptmuse.com/codex-fix-wordpress-mobile-css/ Give Codex a reproducible layout bug, review a small CSS change and verify the result at desktop, tablet and mobile widths.

<p>The post How to fix a WordPress mobile layout with Codex first appeared on Prompt Muse.</p>

]]>
“Make the site responsive” is too vague for a dependable coding task. A better starting point is one visible failure, a reproducible route and a clear target. This walkthrough uses a four-column article grid that overflows on mobile as the example.

Checked: 10 November 2026. Features and menu labels can vary by plan, workspace and rollout.

Before you start

A recoverable local or staging copy of the WordPress code, Codex access to the relevant project and a way to open the site in a browser. Keep production credentials out of prompts. The example below describes a testing method; it does not assume your theme uses a particular selector.

An original example showing the intended desktop, tablet and phone grid behaviour; verify your real theme rather than copying selectors blindly.
An original example showing the intended desktop, tablet and phone grid behaviour; verify your real theme rather than copying selectors blindly.

1. Describe the failure precisely

Provide the affected URL or template, viewport width and what goes wrong. Include a screenshot when useful. State the expected result: four columns on desktop, two on a tablet and one on a narrow phone, with long titles wrapping inside each card.

2. Ask Codex to inspect first

Have it locate the template and styles that actually control the grid. Ask for a likely cause and a short plan before editing. Common causes include fixed child widths, grid tracks that cannot shrink and inherited margins, but the agent should establish which one applies to your implementation.

3. Set the scope

Limit the change to the affected archive and shared rules that genuinely govern it. Ask it to preserve links, keyboard focus, image ratios and existing content. State which generated or vendor files should not be edited. Put durable repository rules in AGENTS.md if the project uses one.

4. Review the proposed patch

Inspect the actual diff. Check that selectors are scoped and that a breakpoint does not accidentally change every grid on the site. For a CSS Grid implementation, minmax(0, 1fr) and min-width: 0 can be appropriate ways to allow shrinking, but they are not universal fixes.

5. Open the rendered result

Check representative widths such as 1440, 768 and 390 pixels, plus any width where the original failure occurred. Look at the actual content, not only a grid outline. Test a long title, a missing image and several cards. Confirm that the document has no horizontal overflow.

6. Finish with evidence

Run checks relevant to the code changed and review the browser result. Ask Codex to report the files changed, behaviour verified and anything still uncertain. Deploy only after reviewing the patch and keeping a recovery path. A code change that looks plausible is not a verified live fix.

A prompt to adapt

Inspect this WordPress archive layout before editing. At [URL and width], [observed failure]. Expected: [behaviour]. Find the controlling template and CSS, explain the cause and propose the smallest coherent fix. Keep changes scoped. After editing, inspect desktop, tablet and mobile renders, long titles, missing images and keyboard focus. Report the actual checks and any limits. Do not deploy to production.

Check the result

Compare before and after at the same width and with the same posts. Read the diff for unrelated changes. If a test cannot run, preserve that uncertainty in the handover. Do not let a successful build substitute for opening the affected page.

Common questions

Should I add another mobile-only override?

Only after understanding the existing rules. Layers of overrides can hide the cause and produce failures at intermediate widths. Prefer a coherent rule in the component or template that owns the layout.

How much testing is enough?

Test the behaviour the change can affect. A small archive CSS fix usually needs meaningful visual and interaction checks rather than a large suite of tests that simply repeats the new CSS values.

Official references

Keep going

Write useful AGENTS.md instructions so the next coding task starts with the same project rules. You can also build a first brief with our free prompt generator.

<p>The post How to fix a WordPress mobile layout with Codex first appeared on Prompt Muse.</p>

]]>
How to write AGENTS.md instructions Codex can use https://promptmuse.com/codex-agents-md-project-instructions/ Tue, 10 Nov 2026 14:39:51 +0000 https://promptmuse.com/codex-agents-md-project-instructions/ Create a concise AGENTS.md with real project commands, scope rules and verification steps, then check how Codex applies it.

<p>The post How to write AGENTS.md instructions Codex can use first appeared on Prompt Muse.</p>

]]>
An AGENTS.md file is useful when it saves the agent from rediscovering the same project facts. It works best as a compact working guide: where the code lives, how to check a change and which boundaries matter. A long collection of slogans is less useful than three commands that actually run.

Checked: 10 November 2026. Features and menu labels can vary by plan, workspace and rollout.

Before you start

A repository or project folder you can edit, a working example task and Codex. Back up or commit the starting state. Keep credentials and personal information out of project instructions, especially when the repository is shared.

An original AGENTS.md example with specific project commands, scope boundaries and completion checks.
An original AGENTS.md example with specific project commands, scope boundaries and completion checks.

1. Start at the project root

Create AGENTS.md beside the project’s main files. Briefly explain what the project does and identify the important directories. Use paths that exist in this checkout. If the repository already has instructions, update the relevant guidance instead of creating competing copies without understanding their scope.

2. Record real commands

Add the commands that install dependencies, start a preview and check relevant behaviour. Verify them yourself or have Codex run them. A guessed test command wastes time and can encourage the agent to claim a check happened when it did not. Explain any setup prerequisite that would otherwise be easy to miss.

3. State the boundaries

Name generated files, vendor code and other areas that should not be changed during ordinary tasks. Explain what requires a separate decision, such as a production deployment or a database migration. Keep these rules concrete and tied to the project.

4. Define completion

Describe the evidence a task should leave behind. A frontend change may need browser inspection at relevant widths. A logic change may need a meaningful test. Ask for a concise report of what changed, what was checked and what could not be verified.

5. Use narrower instructions carefully

Codex can discover guidance along the directory path, with more local instructions applying to that area. Add a nested file only when a subproject genuinely needs different commands or conventions. Avoid restating the root file in every directory; duplicated rules drift.

6. Test the instructions on a small task

Ask Codex to identify the project guidance it loaded and explain the planned checks before making a low-risk change. Compare the behaviour with the file. Correct ambiguous instructions based on the result, then keep the instructions with the code they describe.

A prompt to adapt

Before editing, read the applicable project instructions. Tell me which guidance applies to this directory, which commands you will use and what evidence will show the task is complete. If instructions conflict or a command does not work, report the specific issue rather than inventing a replacement result.

Check the result

A useful file should answer a new contributor’s practical questions without requiring the whole chat history. Remove stale commands and unrelated preferences. Keep it short enough to inspect. Project instructions influence behaviour, but permissions, credentials and approval controls enforce access; do not treat prose as a security boundary.

Common questions

Should I put every preference in AGENTS.md?

Put recurring project rules there. Keep one-off task requirements in the task prompt. Reusable multi-step procedures may fit a skill better than an expanding instruction file.

Why did Codex follow a different rule?

Check for more specific instructions in the working directory’s path and for configured global guidance. Confirm the directory in which the task actually ran. The filename alone does not establish which guidance was loaded.

Official references

Keep going

Move a repeated procedure into a reusable Codex skill once the procedure works. You can also build a first brief with our free prompt generator.

<p>The post How to write AGENTS.md instructions Codex can use first appeared on Prompt Muse.</p>

]]>
How to create a reusable Codex skill from a successful workflow https://promptmuse.com/create-reusable-codex-skill/ Tue, 10 Nov 2026 14:39:50 +0000 https://promptmuse.com/create-reusable-codex-skill/ Turn a working Codex task into a small reusable skill with clear triggers, source examples and validation that checks the result.

<p>The post How to create a reusable Codex skill from a successful workflow first appeared on Prompt Muse.</p>

]]>
A reusable skill should preserve a workflow that has earned its place. Start with a task that already produced a useful result, such as an article audit or a release checklist. Then capture the decisions, source material and checks that made it work, instead of saving a large prompt full of assumptions.

Checked: 10 November 2026. Features and menu labels can vary by plan, workspace and rollout.

Before you start

A successful example, permission to reuse its source material and Codex with skill creation available. Use a fictional or sanitised example when the original contains client details. Decide whether the skill belongs to one repository or should be available across your projects.

An original skill outline separates its trigger, required inputs, procedure and evidence of completion.
An original skill outline separates its trigger, required inputs, procedure and evidence of completion.

1. Choose one repeated job

Define a narrow result, such as “audit a draft against approved product documentation”. Avoid an all-purpose “make everything better” skill. List the input it needs and the output a colleague would recognise as finished.

2. Gather the useful evidence

Provide an accepted output, the instructions behind it and any commands or references that should be reused. Include a case that went wrong and the correction that fixed it. Those examples help distinguish a real process from a stylistic imitation of the final answer.

3. Ask skill-creator to scaffold it

Use the $skill-creator available in your Codex setup and describe the workflow, source material and destination. Ask it to keep the main SKILL.md concise and move longer reference material or helper scripts into appropriate supporting files.

4. Review the trigger and boundaries

The skill’s description should make it clear when to use it and when it does not apply. Check that it does not silently authorise sending messages, publishing changes or accessing unrelated accounts. A reusable procedure still needs to operate within the current task’s permissions.

5. Validate with representative inputs

Run the skill on a normal example, an incomplete input and an awkward edge case. Judge whether the result is useful, sourced and reviewable. If a helper script exists, verify its actual behaviour. A valid file structure alone does not prove the workflow works.

6. Improve it from a real correction

Invoke the new $skill-name on the next suitable task. When it uses a wrong command or misses an important condition, update the skill with the reason and a small example. Keep repository-specific procedures with the repository; keep genuinely general procedures in the appropriate personal skills location.

A prompt to adapt

Use $skill-creator to create a skill for [one repeated workflow]. Use this successful example: [example]. Required inputs: [list]. Good output: [example or criteria]. Reuse these verified commands and references: [list]. Keep SKILL.md concise, state when the skill should trigger, and validate it against a normal case, a missing-input case and an edge case. Do not add permissions beyond the task.

Check the result

Ask someone unfamiliar with the original chat to follow the skill. If they need unstated background knowledge, add the missing context or narrow the trigger. Remove copied material that does not change the result. Keep an accepted example so future edits can be compared with the original standard.

Common questions

Where does the skill live?

OpenAI’s current workflow guidance describes personal skills in ~/.codex/skills and repository skills that can be shared with the code. Follow the locations supported by your installed Codex setup.

Is a skill the same as project instructions?

They overlap, but serve different purposes. Project instructions describe the working environment and recurring rules. A skill packages a particular procedure and the resources needed to carry it out.

Official references

Keep going

Use AGENTS.md for the project’s everyday working rules. You can also build a first brief with our free prompt generator.

<p>The post How to create a reusable Codex skill from a successful workflow first appeared on Prompt Muse.</p>

]]>